Assign IP address to an interface, switch or router
enable
configure terminal
interface FastEthernet0/1 of interface gigabitethernet 0/0/1 of interface serial 0/0/0
duplex auto
speed auto
mdix auto
ip address 192.168.10.2 255.255.255.0
description Link to LAN 1
no shutdown
end
copy running-config startup-config
Configure the default gateway for the switch
enable
configure terminal
ip default-gateway 192.168.10.1
Assign IP address to an interface, switch or router enable configure terminal interface FastEthernet0/1 of interface gigabitethernet 0/0/1 of interface serial 0/0/0 duplex auto speed auto mdix auto ip address 192.168.10.2 255.255.255.0 description Link to LAN 1 no shutdown end copy running-config startup-config
Configure the default gateway for the switch
enable configure terminal ip default-gateway 192.168.10.1