多臂路由配置

image

1、配置路由器

[Huawei]sysname AR1
[AR1]int g 0/0/1
[AR1-GigabitEthernet0/0/1]ip add 192.168.200.1 24
[AR1-GigabitEthernet0/0/0]int g 0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.100.1 24
[AR1]display ip routing-table protocol direct

2、配置交换机

[Huawei]sysname SW1
[SW1]vlan batch 100 200
[SW1]int e 0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 200
[SW1-Ethernet0/0/1]int e 0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 100
[SW1]int e 0/0/4
[SW1-Ethernet0/0/4]port link-type access
[SW1-Ethernet0/0/4]port default vlan 200
[SW1-Ethernet0/0/4]int e 0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 100
posted @ 2022-10-18 15:06  xl4ng  阅读(385)  评论(0编辑  收藏  举报