TABLE 5 . 3
Command and Meaning
Command Meaning
enable
Takes you to privileged mode
config t
Takes you to global configuration mode
interface vlan
Enter VLAN configuration mode to configure parameters such
as the IP address and mask
ip default-gateway
Configures a default gateway on a switch
Remember, you do not need an IP address on a switch, but here is an example of setting an
IP address, mask and default-gateway on a switch:
Core>
enable
Core#
config t
Core(config)#
int vlan 1
Core(config-if)#
ip address 192.168.10.19 255.255.255.240
Core(config-if)#
no shut
Core#
config t
Core(config)#
ip default-gateway 192.168.10.30
Core(config)#
exit
Core#