A SERVICE OF

logo

724-746-5500 | blackbox.com
Page 99
Chapter 7: Command-Line Management
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)#
Default Gateway:
1. Command Mode: Configure mode
Logon to Configure Mode (Configure Terminal Mode).
The switch_a(config)# prompt will show on the screen.
switch_a(config)#
2. Usage:
Use ip default-gateway command to set the IP address of the default gateway.
Use the no ip default-gateway command to remove the IP address of the default gateway.
3. Command Syntax:
ip default-gateway IP-ADDRESS
no ip default-gateway
IP-ADDRESS A.B.C.D specifies the IP address of the default gateway.
4. Example:
The following example sets the default gateway 192.168.1.254 to switch:
switch_a(config)#ip default-gateway 192.168.1.254
switch_a(config)#