To configure a trunk connection on a Cisco router to connect one or more vlans, you have to define sub-interfaces. For each vlan a sub-interface is needed.
For example you want to connect vlan 1, 100 and 101 to a Cisco router.
Example configuration:
interface FastEthernet 0/0
speed 1000
duplex full
!
interface FastEthernet 0/0.1
encapsulation dot1q 1 native
ip address 10.10.1.1 255.255.255.0
!
interface FastEthernet 0/0.101
encapsulation dot1q 101
ip address 10.10.101.1 255.255.255.0
!
interface FastEthernet 0/0.102
encapsulation dot1q 102
ip address 10.10.102.1 255.255.255.0
vlan 1 is untagged native Ethernet.
|