Route
使用 子接口
配置 fa0/0无IP并激活
interface FastEthernet0/0
no ip address
no shut
配置子接口1 fa0/0.1
interface FastEthernet0/0.1
encapsulation dot1Q 2(VLAN2)
ip address 10.10.10.1 255.255.255.0
no shut
配置子接口2 fa0/0.2
interface FastEthernet0/0.2
encapsulation dot1Q 3 (VLAN3)
ip address 20.20.20.1 255.255.255.0
no shut
SW 配置:
创建vlan2与vlan3
vlan database
vlan 2
vlan database
vlan 3
配置与路由器相连接的端口
int fa 0/1
switch mode trunk
switch trunk encapsulation dot1q
ROUTE+ 2 layer Switch (多VLAN),布布扣,bubuko.com
原文:http://kenhuan.blog.51cto.com/3192362/1541839