December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to connect an 802.1Q VLAN trunk directly to your router.
To connect an 802.1Q trunk to your router, use the following set of commands:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interface FastEthernet1/0Router2(config-if)#no ip addressRouter2(config-if)#speed 100Router2(config-if)#full-duplexRouter2(config-if)#exitRouter2(config)#interface FastEthernet1/0.1Router2(config-subif)#encapsulation dot1Q 1nativeRouter2(config-subif)#ip addressRouter2(config-subif)#172.25.1.47 255.255.255.0exitRouter2(config)#interface FastEthernet1/0.2Router2(config-subif)#encapsulation dot1Q 2Router2(config-subif)#ip addressRouter2(config-subif)#172.25.22.4 255.255.255.0exitRouter2(config)#interface FastEthernet1/0.3Router2(config-subif)#encapsulation dot1Q 548Router2(config-subif)#ip addressRouter2(config-subif)#172.20.1.1 255.255.255.0exitRouter2(config)#endRouter2#
Please note that to support 802.1Q features, your router must have an IOS level of at least 12.0(5)T, with the IP Plus feature set.
The configuration for 802.1Q trunks is almost identically to the ISL configuration we discussed in Recipe 16.12. Please refer to that recipe for a more detailed discussion of trunking in general.
The most important difference between ISL and 802.1Q trunks is that 802.1Q is an IEEE open standard. If all of your switches and routers were manufactured by Cisco, you ...
Read now
Unlock full access