2.12. Configure, verify, and troubleshoot interVLAN routing
By default, only hosts that are members of the same VLAN can communicate. To change this and allow inter-VLAN communication, you need a router or a layer 3 switch. I'm going to start with the router approach.
To support ISL or 802.1Q routing on a Fast Ethernet interface, the router's interface is divided into logical interfaces—one for each VLAN. These are called subinterfaces. From a Fast Ethernet or Gigabit interface, you can set the interface to trunk with the encapsulation command:
ISR#config t ISR(config)#int f0/0.1 ISR(config-subif)#encapsulation ? dot1Q IEEE 802.1Q Virtual LAN ISR(config-subif)#encapsulation dot1Q ? <1-4094> IEEE 802.1Q VLAN ID
Notice that my 2811 router (named ...
Get CCNA®: Cisco® Certified Network Associate: Fast Pass, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.