一、如下图片:
按照拓扑图所示,为LSW1,LSW2,AR1,AR2配置IP地址,线路左侧使用小地址,右侧用大地址,交换机中使用的管理VLAN编号是99。
两个路由器的配法:
注意:首先给每两个路由器之间要在相同的网段,每个路由器不同接口要在不同的网段。
配路由协议时,要注意给出的是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:(这下面明天补充)