CONFIG NETWORK INTERFACE ADDRESS ADD

Level

network+modify

History

Appears in 6 0 0
RequestDNS Appears in 6 1 0

Description

Add an address/mask to an interface

Usage

ifname=<interface name> (address=<address> mask=<mask> [addresscomment=<comment>] |address=DHCP [dhcpleasetime=<lease time>] [DHCPHostName=<name>] [RequestDNS=<0|1>])

Returns

Error code

Remark

All existing interface addresses and all existing DHCP options will be deleted if address=DHCP specified
Mask must not be specified if address=DHCP
DHCP options will NOT be parsed if address=DHCP is not specified (even if already in DHCP mode)

Example

CONFIG NETWORK INTERFACE ADDRESS ADD ifname=bridge5 address=192 168 1 1 mask=255 255 255 0
CONFIG NETWORK INTERFACE ADDRESS ADD ifname=bridge5 address=192 168 1 1 mask=255 255 255 0 addresscomment="My Address"
CONFIG NETWORK INTERFACE ADDRESS ADD ifname=bridge5 address=DHCP DHCPLeaseTime=3600 DHCPHostname=stormshield
CONFIG NETWORK INTERFACE ADDRESS ADD ifname=GreTun0 address=192 168 1 1 mask=255 255 255 252