Chapter 6: Routing between VLANs

Commands:

6.2.1 Configuring inter-VLAN routing

IOS

CLI

Switch> (enable) show module mod-number

 

6.2.2 Accessing the RSM

Switch> (enable) session module-number

Router(config)#hostname name

Router#copy running-config startup-config

 

6.2.3 Configuring a routing protocol on the RSM

Router(config)#ip routing

Router(config)#router routing-protocol

Router(config-router)#network network

 

6.2.4 Configuring RSM interfaces

Router(config)#interface vlan-interface-number

Router(config-if)#ip address ip-address subnet-mask

Router(config)#interface port-channel channel_number

Router(config)#interface [g3 | g4]
Router(config-if)#channel-group channel_number

Router(config)#interface port-channel channel_number.vlan_id Router(config-subif)#encapsulation dot1Q vlan_id
Router(config-subif)#ip address ip_address subnet_mask

Router(config)#interface port-channel channel_number.vlan_id Router(config-subif)#encapsulation dot1Q vlan_id native Router(config-subif)#ip address ip_address subnet_mask

Switch> (enable) set port channel mod_num/ports on | off | auto | desirable.

Switch> (enable) set trunk mod_num/port_num

 

6.2.5 Configure a default gateway on a switch

IOS

Switch(config)#ip default-gateway ip-address

CLI

Switch> (enable) set ip route destination gateway metric

 

6.3.1 Configuring external routers

Router(config)#interface ethernet slot-number / port-number. subinterface-number

Router(config-if)#encapsulation isl vlan-number

Router(config-if)#ip address ip-address subnet-mask