Home‎ > ‎cisco‎ > ‎IOS Switch Configs‎ > ‎

Enabling routing or default routes

if the switch is not forwarding packets (not in router mode)

ip default-gateway

If the switch should forward packets (should become a router)
! enable routing
ip routing

! create two interfaces: 
int vlan 10
 ip address
int vlan 11
 ip address

! set a default route
ip route