实现跨VLAN通信、以及RIP路由协议的配置

2023-12-13 08:08:11

一、如下图片:

1.?按照拓扑图所示,将8台计算机分别配置到相应的VLAN中。(20分)
2.?配置实现同一VLAN中的计算机可以通信。(22分)
3.?配置实现PC1,PC2,PC3,PC4可以互相通信,PC5,PC6,PC7,PC8可以互相通信。(8分)
4.?按照拓扑图所示,为LSW1,LSW2,AR1,AR2配置IP地址,线路左侧使用小地址,右侧用大地址,交换机中使用的管理VLAN编号是99(12分)
5.?LSW1,LSW2,AR1,AR2配置RIP动态路由
协议2号版本,完成全网数据流的路由转发。(38分)
以上功能全部实现后,8台计算机可以相互Ping通。

?

两个路由器的配法:

注意:首先给每两个路由器之间要在相同的网段,每个路由器不同接口要在不同的网段。

配路由协议时,要注意给出的是A类地址、B类地址还是C类地址,因为它们对应的网络号的位数:前面的8位、16位以及24位。所以配的时候不一样

AR1

The device is running!
####################
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 10.22.123.130 30
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 211.22.23.33 30
[Huawei-GigabitEthernet0/0/0]q
[Huawei]rip
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 10.0.0.0
[Huawei-rip-1]net 211.22.23.0
[Huawei-rip-1]q
[Huawei]

AR2:?

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 211.22.23.34 30
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.66.98 30
[Huawei-GigabitEthernet0/0/0]q
[Huawei]rip
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 211.22.23.0
[Huawei-rip-1]net 172.16.0.0
[Huawei-rip-1]q
[Huawei]

LSW1

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 13
[Huawei-vlan13]q
[Huawei]vlan 24
[Huawei-vlan24]q


[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-t tr
[Huawei-GigabitEthernet0/0/2]port tr al vlan all
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-t tr
[Huawei-GigabitEthernet0/0/3]port tr al vlan all
[Huawei-GigabitEthernet0/0/3]q


[Huawei]vlan 99
[Huawei-vlan99]q
[Huawei]int vlan 99
[Huawei-Vlanif99]ip add 10.22.123.129 30
[Huawei-Vlanif99]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-t acc
[Huawei-GigabitEthernet0/0/1]port def vlan 99
[Huawei-GigabitEthernet0/0/1]q

[Huawei]int vlan 13
[Huawei-Vlanif13]ip add 192.168.13.254 24
[Huawei-Vlanif13]q
[Huawei]int vlan 24
[Huawei-Vlanif24]ip add 192.168.24.254 24
[Huawei-Vlanif24]q

(最后配路由协议)

[Huawei]rip
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 10.0.0.0
[Huawei-rip-1]net 192.168.13.0
[Huawei-rip-1]net 192.168.24.0
[Huawei-rip-1]q
[Huawei]

LSW2

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 57
[Huawei-vlan57]q
[Huawei]vlan 68
[Huawei-vlan68]q


[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-t tr
[Huawei-GigabitEthernet0/0/1]port tr al vlan all
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-t tr
[Huawei-GigabitEthernet0/0/3]port tr al vlan all
[Huawei-GigabitEthernet0/0/3]q


[Huawei]int vlan 57
[Huawei-Vlanif57]ip add 192.168.57.254 24
[Huawei-Vlanif57]q
[Huawei]int vlan 68
[Huawei-Vlanif68]ip add 192.168.68.254 24
[Huawei-Vlanif68]q

(这里按题目要求配)
[Huawei]vlan 99
[Huawei-vlan99]q
[Huawei]int vlan 99
[Huawei-Vlanif99]ip add 172.16.66.97 30
[Huawei-Vlanif99]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-t acc
[Huawei-GigabitEthernet0/0/2]port def vlan 99
[Huawei-GigabitEthernet0/0/2]q

(最后配路由协议)

[Huawei]rip?
[Huawei-rip-1]ver 2
[Huawei-rip-1]net 172.16.0.0
[Huawei-rip-1]net 192.168.57.0
[Huawei-rip-1]net 192.168.68.0
[Huawei-rip-1]q
[Huawei]

LSW3:?

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 13
[Huawei-vlan13]q
[Huawei]vlan 24
[Huawei-vlan24]q


[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-t acc
[Huawei-Ethernet0/0/2]port def vlan 13
[Huawei-Ethernet0/0/2]q
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-t acc
[Huawei-Ethernet0/0/3]port def vlan 24
[Huawei-Ethernet0/0/3]q
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-t tr
[Huawei-Ethernet0/0/1]port tr al vlan all
[Huawei-Ethernet0/0/1]q
[Huawei]

LSW4

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 13
[Huawei-vlan13]q
[Huawei]vlan 24
[Huawei-vlan24]q


[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-t acc
[Huawei-Ethernet0/0/1]port def vlan 13
[Huawei-Ethernet0/0/1]q
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-t acc
[Huawei-Ethernet0/0/2]port def vlan 24
[Huawei-Ethernet0/0/2]q
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-t tr
[Huawei-Ethernet0/0/3]port tr al vlan all
[Huawei-Ethernet0/0/3]q

[Huawei]

LSW5

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 57
[Huawei-vlan57]q
[Huawei]vlan 68
[Huawei-vlan68]q


[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-t acc
[Huawei-Ethernet0/0/3]port def vlan 57
[Huawei-Ethernet0/0/3]q
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-t acc
[Huawei-Ethernet0/0/1]port def vlan 68
[Huawei-Ethernet0/0/1]q
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-t tr
[Huawei-Ethernet0/0/2]port tr al vlan all
[Huawei-Ethernet0/0/2]q
[Huawei]

LSW6

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info en
Info: Information center is disabled.
[Huawei]vlan 57
[Huawei-vlan57]q
[Huawei]vlan 68
[Huawei-vlan68]q


[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-t acc
[Huawei-Ethernet0/0/1]port def vlan 57
[Huawei-Ethernet0/0/1]q
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-t acc
[Huawei-Ethernet0/0/2]port def vlan 68
[Huawei-Ethernet0/0/2]q
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-t tr
[Huawei-Ethernet0/0/3]port tr al vlan all
[Huawei-Ethernet0/0/3]q
[Huawei]

最后1~8主机能互相ping通就OK了!

文章来源:https://blog.csdn.net/m0_74363339/article/details/134867405
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。