CONFIG NETWORK INTERFACE ADDRESS ADD

Level

network,modify

History

Appears in Netasq 6.0.0
RequestDNS Appears in Netasq 6.1.0
DHCPVendorClassId, DHCPUserClass, DHCPAuthsend appear in 4.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>]
[DHCPVendorClassId=<DHCP vendor class identifier>] [DHCPUserClass=<DHCP user class>]
[DHCPAuthsend=<DHCP authsend>] [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