标签:ast net for operation 通过 lin efault 路由器 交换
单臂路由配置虚拟子接口
[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
标签:ast net for operation 通过 lin efault 路由器 交换
原文地址:https://blog.51cto.com/14806008/2503479