1.配置LSW [LSW1]vlan 10 [LSW1-GigabitEthernet0/0/2]port link-type access [LSW1-GigabitEthernet0/0/2]port default vlan 10 [LSW1-GigabitEthernet0/0/1]port link-type trunk [LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 [LSW2]vlan 20 [LSW2-GigabitEthernet0/0/2]port link-type access [LSW2-GigabitEthernet0/0/2]port default vlan 20 [LSW2-GigabitEthernet0/0/1]port link-type trunk [LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 20 2.配置AR1 [AR1-GigabitEthernet0/0/1]int g0/0/1.1 [AR1-GigabitEthernet0/0/1.1]dot1q termination vid 10 [AR1-GigabitEthernet0/0/1.1]ip add 10.1.1.1 24 [AR1-GigabitEthernet0/0/1.1]arp broadcast enable [AR1]int g0/0/2.1 [AR1-GigabitEthernet0/0/2.1]dot1q termination vid 20 [AR1-GigabitEthernet0/0/2.1]ip add 10.1.2.1 24 [AR1-GigabitEthernet0/0/2.1]arp broadcast enable 3.配置PC 4.验证配置