|
Cisco Config Cookbook
Setting an interface to trunking (dot1q)
interface FastEthernet0/0
no ip address
!
interface FastEthernet0/0.1
description Default VPN
encapsulation dot1Q 1 native
ip address 10.0.0.1 255.255.255.0
!
interface FastEthernet0/0.2
description VPN number 2
encapsulation dot1Q 2 native
ip address 10.0.1.1 255.255.255.0
!
interface FastEthernet0/0.3
description trunked interface to router
switchport mode trunk
switchport trunk allowed vlan 1,2,1002-1005
!
|