Friday, May 29, 2009

Cisco switch: 802.1q trunk to router (router-on-a-stick)

Switch Config:
vlan 100
name data
state active

vlan 200
name data
state active

interface fastethernet 1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk

Router Config:
interface fastethernet 0/0
no ip address

interface fastethernet 0/0.1
encapsulation dot1q 1 native (native vlan on switch is vlan 1)

interface fastethernet 0/0.100
encapsulation dot1q 100
ip address 192.168.100.1 255.255.255.0

interface fastethernet 0/0.200
encapsulation dot1q 200
ip address 192.168.200.1 255.255.255.0


No comments:

Post a Comment