
56
configure configure terminal
This command changes the mode to config
mode.
configure interface eth0
This command changes the mode to eth0
mode.
eth0
show
This command displays the eth0
configurations.
eth0
ip address A.B.C.D/M
This command configures a static IP and
subnet mask for the system.
eth0
ip address default-gateway
A.B.C.D
This command configures the system default
gateway.
eth0
ip dhcp client
(disable|enable|renew)
This command configures a DHCP client
function for the system.
Disable: Use a static IP address on the switch.
Enable & Renew: Use DHCP client to get an
IP address from DHCP server.
Example:
The procedures to configure an IP address for the Switch.
To enter the configure node.
L2SWITCH#configure terminal
L2SWITCH(config)#
To enter the ETH0 interface node.
L2SWITCH(config)#interface eth0
L2SWITCH(config-if)#
To get an IP address from a DHCP server.
L2SWITCH(config-if)#ip dhcp client enable
To configure a static IP address and a gateway for the Switch.
L2SWITCH(config-if)#ip address 192.168.202.111/24
L2SWITCH(config-if)#ip address default-gateway 192.168.202.1
Содержание NGI-S04C2
Страница 1: ...1...