IP ADDRESS
IP Address/IP Subnet Mask:
1.
Command Mode: Interface mode
Logon to Configure Mode (Configure Terminal Mode).
Then logon to Interface mode.
vlan1.1 means vlan 1.
The switch_a(config-if)# prompt will show on the screen.
switch_a(config)#interface vlan1.1
switch_a(config-if)#
2.
Usage:
Use ip address command to set the IP address of an interface.
Use the no ip address command to remove the IP address from an interface.
3.
Command Syntax:
ip address IP-ADDRESS
no ip address IP-ADDRESS
no ip address
IP-ADDRESS A.B.C.D/M specifies the IP address and prefix length of an interface.
M specifies IP subnet mask, 8: 255.0.0.0, 16:255.255.0.0, 24: 255.255.255.0.
4.
Example:
The following example sets the new IP address 192.168.1.10 and new IP subnet mask 255.255.255.0 to
switch:
switch_a(config)#interface vlan1.1
switch_a(config-if)#ip address 192.168.1.10/24
switch_a(config-if)#
DHCP CLIENT:
1.
Command Mode: Interface mode
Logon to Configure Mode (Configure Terminal Mode).
Then logon to Interface mode.
vlan1.1 means vlan 1.
The switch_a(config-if)# prompt will show on the screen.
switch_a(config)#interface vlan1.1
switch_a(config-if)#
2.
Usage:
Use get ip dhcp enable command to get IP address through DHCP server.
Use the no get ip dhcp enable command to cancel the IP address which got through DHCP server.
3.
Command Syntax:
(no) get ip dhcp enable
4.
Example:
The following example gets IP address through DHCP server:
switch_a(config)#interface vlan1.1
switch_a(config-if)#get ip dhcp enable
switch_a(config-if)#
PAGE 122
OSD2700SFP OPERATOR MANUAL
OPTICAL SYSTEMS DESIGN
DOC ID: 10112704