一、实验拓扑图
二、触发更新实验过程
1.配置各主机IP地址、子网掩码和网关
2.配置交换机LSW1和LSW2
交换机LSW1的配置如下:
<Huawei>sys
[Huawei]sysname S1
[S1]vlan 2
[S1]int vlan2
[S1-Vlanif20]ip address 192.168.2.1 24
[S1-Vlanif20]quit
[S1]int GigabitEthernet 0/0/2
[S1-GigabitEthernet0/0/2]port link-type access
[S1-GigabitEthernet0/0/2]port default vlan 2
[S1-GigabitEthernet0/0/2]quit
[S1]int GigabitEthernet 0/0/3
[S1-GigabitEthernet0/0/3]port link-type access
[S1-GigabitEthernet0/0/3]port default vlan 2
[S1-GigabitEthernet0/0/2]quit
[S1]int GigabitEthernet 0/0/1
[S1-GigabitEthernet0/0/1]port link-type access
[S1-GigabitEthernet0/0/1]port default vlan 2
[S1-GigabitEthernet0/0/1]quit
[S1]int Loop1
[S1-Loop1]ip add 192.168.1.1 24
[S1-Loop1]quit
[S1]rip
[S1-rip-1]version 2
[S1-rip-1]network 192.168.2.0
[S1-rip-1]networ