单臂路由配置

image

1、配置路由器AR1

[Huawei]sysname  RouterA
[RouterA]int g0/0/0.200
[RouterA-GigabitEthernet0/0/0.200]dot1q termination vid 200
[RouterA-GigabitEthernet0/0/0.200]ip address 192.168.20.1 24
[RouterA-GigabitEthernet0/0/0.200]arp broadcast enable
[RouterA-GigabitEthernet0/0/0.200]int g 0/0/0.100
[RouterA-GigabitEthernet0/0/0.100]dot1q termination vid 100
[RouterA-GigabitEthernet0/0/0.100]ip address 192.168.10.1 24

2、配置交换机

[SWA]int e0/0/1
[SWA-Ethernet0/0/1]port link-type access
[SWA-Ethernet0/0/1]port default vlan 200
[SWA-Ethernet0/0/1]int e0/0/2
[SWA-Ethernet0/0/2]port link-type access
[SWA-Ethernet0/0/2]port default vlan 100
[SWA-Ethernet0/0/2]int e0/0/3
[SWA-Ethernet0/0/3]port link-type trunk
[SWA-Ethernet0/0/3]port trunk allow-pass vlan 100 200
[SWA-Ethernet0/0/3]dis port vlan active
posted @ 2022-10-18 23:08  xl4ng  阅读(132)  评论(0编辑  收藏  举报