单臂路由设置

虚拟子接口
[R1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q terMination vid 10
[R1-GigabitEthernet0/0/0.1]ip add 192.168.10.254 24
[R1-GigabitEthernet0/0/0.1]arp broaDCast enaBLe
[R1-GigabitEthernet0/0/0.1]q

设置思绪:
1.终端设备PC设置
2.交流机设置
-pc和交流机之间的接口设置ACCES
-交流机和路由器之间接口设置trunk 而且通过所有vlan
3.设置路由器
-子接口0.1设置
-子接口0.2设置
4.验证与测试

[S1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1]int e0/0/1
[S1-Ethernet0/0/1]q
[S1]port-group 1
[S1-port-group-1]group-member e0/0/1 e0/0/2
[S1-port-group-1]port link-type acces
[S1-Ethernet0/0/1]port link-type acces
[S1-Ethernet0/0/2]port link-type acces
[S1]int e0/0/1
[S1-Ethernet0/0/1]port default vlan 10
[S1-Ethernet0/0/1]q
[S1]int e0/0/2
[S1-Ethernet0/0/2]port default vlan 20
[S1-Ethernet0/0/2]q
[S1]int e0/0/3
[S1-Ethernet0/0/3]port link-type trunk
[S1-Ethernet0/0/3]port trunk allow-pass vlan all

[R1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 10
[R1-GigabitEthernet0/0/0.1]ip add 192.168.10.254 24
[R1-GigabitEthernet0/0/0.1]arp broadcast enable
[R1-GigabitEthernet0/0/0.1]q
[R1]int g 0/0/0.2
[R1-GigabitEthernet0/0/0.2]dot1q termination vid 20
[R1-GigabitEthernet0/0/0.2]arp broadcast enable
[R1-GigabitEthernet0/0/0.2]ip add 192.168.20.254 24