RIP协议组网实验

一、实验拓扑图 RIP协议组网实验
文章图片

二、实验配置 【RIP协议组网实验】1.配置各主机IP地址、子网掩码和网关
2.配置交换机LSW1和LSW2
交换机LSW1的配置如下:

sys [Huawei]sysname S1 [S1]vlan batch 10 20 30 [S1]int vlan20 [S1-Vlanif20]ip address 192.168.2.1 24 [S1-Vlanif20]quit [S1]int vlan10 [S1-Vlanif10]ip address 192.168.1.2 24 [S1-Vlanif10]quit [S1]int vlan30 [S1-Vlanif30]ip address 192.168.3.1 24 [S1-Vlanif30]quit [S1]int GigabitEthernet 0/0/2 [S1-GigabitEthernet0/0/2]port link-type access [S1-GigabitEthernet0/0/2]port default vlan 20 [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 30 [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 10 [S1-GigabitEthernet0/0/1]quit [S1]rip [S1-rip-1]version 2 [S1-rip-1]network 192.168.2.0 [S1-rip-1]network 192.168.3.0 [S1-rip-1]network 192.168.1.0 [S1-rip-1]quit [S1]quit save

交换机LSW2和LSW1的配置类似。
3.配置路由器R1
sys [Huawei]sysname R1 [R1]int Ethernet 0/0/0 [R1-Ethernet0/0/0]ip address 192.168.1.1 24 [R1-Ethernet0/0/0]quit [R1]int Ethernet 0/0/1 [R1-Ethernet0/0/1]ip address 192.168.6.1 24 [R1-Ethernet0/0/1]quit [R1]rip [R1-rip-1]version 2 [R1-rip-1]network 192.168.1.0 [R1-rip-1]network 192.168.6.0 [R1-rip-1]quit [R1]quit save

4.实验测试
RIP协议组网实验
文章图片

RIP协议组网实验
文章图片

RIP协议组网实验
文章图片

    推荐阅读