实验要求
1. 使用单臂路由策略使PC1和PC2之间互联。
实验结构
实验步骤
1. 配置 AR2 创建VLAN 配置IP
<Huawei>system-view
[Huawei]vlan batch 10 20
[Huawei]interface g0/0/0.10
[Huawei-GigabitEthernet0/0/0.10]dot1q termination vid 10
[Huawei-GigabitEthernet0/0/0.10]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.10]ip address 1.1.1.254 255.255.255.0
[Huawei-GigabitEthernet0/0/0.10]q
[Huawei]interface g0/0/0.20
[Huawei-GigabitEthernet0/0/0.20]dot1q termination vid 20
[Huawei-GigabitEthernet0/0/0.20]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.20]ip address 2.2.2.254 255.255.255.0
[Huawei-GigabitEthernet0/0/0.20]q
2. LSW 创建VLAN
<Huawei>system-view
[Huawei]vlan batch 10 20
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 10
[Huawei-GigabitEthernet0/0/2]q
[Huawei]interface g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 20
[Huawei-GigabitEthernet0/0/3]q
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
3. PC1 PC2 配置IP GW
测试
实验目的
1. 了解单臂路由策略
2. 了解子接口
3. 了解 arp协议