C122-E003-02EN 8-43
GSWB
8.2 Configuration Definition Commands
8.2.6 Host functions (address definition)
8.2.6.1 ip host
This command specifies an IP address or how to acquire it. Only one IP address can
be specified for the device.
If no VLAN is specified, the default VLAN (vlan id 1) is set. The default ip-address
is 0.0.0.0, and the default subnet mask is 0.0.0.0.
The IP address cannot be reset to the default value while ip default-gateway is set.
If you specify ip host bootp/dhcp, you need to execute ip dhcp restart.
(1) Synopsis
• Specifies an IP address or how to acquire the address
• Sets an IP address to the default value
(2) Options
z {<ip-address> <subnet-mask> | bootp/dhcp}
- <ip-address>: Sets the IP address statically.
- <subnet-mask>: Specifies the subnet mask.
- bootp/dhcp: Sets the dynamic IP address automatically by DHCP.
z vlan <vlan-id> (optional): Specifies a VLAN.
If this option is omitted, VLAN(vlanid1) is assumed by default.
(3) Command mode
Global
(4) See also
ip dhcp restart
ip default-gateway
vlan
ip host {<ip-address> <subnet-mask> | bootp/dhcp} [vlan <vlan-id>]
no ip host