70
Command: ip address <ip-address> <mask> [secondary]
no ip address [
<ip-address> <mask>
] [secondary]
Function:
Set the IP address and mask for the specified VLAN interface; the “
no ip
address <ip address> <mask> [secondary]”
command deletes the specified IP
address setting.
Parameter: <ip-address>
is the IP address in dot decimal format;
<mask>
is the subnet
mask in dot decimal format;
[secondary]
indicates the IP configured is a secondary IP
address.
Default:
No IP address is configured upon switch shipment.
Command mode:
Interface Mode
Usage Guide:
A VLAN interface must be created first before the user can assign an IP
address to the switch.
Example:
Set 10.1.128.1/24 as the IP address of VLAN1 interface.
Switch(Config)#interface vlan 1
Switch(Config-If-Vlan1)#ip address 10.1.128.1 255.255.255.0
Switch(Config-If-Vlan1)#exit
2.3.2.2 ip address bootp-client
Command
:
ip address bootp-client
no ip address bootp-client
Function:
Enable the switch to be a BootP client and obtain IP address and gateway
address through BootP negotiation; the “
no ip address bootp-client
” command disables
the BootP client function and releases the IP address obtained in BootP .
Default:
BootP client function is disabled by default.
Command mode:
Interface Mode
Usage Guide:
Obtaining IP address through BootP, Manual configuration and DHCP are
mutually exclusive, enabling any 2 methods for obtaining IP address is not allowed. Note:
To obtain IP address via DHCP, a DHCP server or a BootP server is required in the
network.
Example:
Get IP address through BootP.
Switch(Config)#interface vlan 1
Switch(Config-If-Vlan1)#ip address bootp-client
Switch (Config-If-Vlan1)#exit
2.3.2.3 ip address dhcp-client
Command: ip address dhcp-client
no ip address dhcp-client