实现全网互通(一)

实验环境:三台路由器R1、R2、R3两两互连,每台路由器上都配置了Loopback地址模拟网络环境需求描述:1.需要在三台路由器上配置静态路由,以实现各网段之间的互通2.若要实现全网互通,必须明确如下两个问题(1)数据包被路由器转发或丢弃,取决于是否能够在路由表中找到数据包的目标地址所对应的条目(2)路由器可以自动生成所有直连网段的路由条目,对于那些非直连网段就需要通过静态路...
摘要由CSDN通过智能技术生成

实验环境:

三台路由器R1、R2、R3两两互连,每台路由器上都配置了Loopback地址模拟网络环境

需求描述:

1.需要在三台路由器上配置静态路由,以实现各网段之间的互通

2.若要实现全网互通,必须明确如下两个问题
(1)数据包被路由器转发或丢弃,取决于是否能够在路由表中找到数据包的目标地址所对应的条目
(2)路由器可以自动生成所有直连网段的路由条目,对于那些非直连网段就需要通过静态路由指定了

3.因此,要想实现全网互通,就必须为每台路由器指定所有非直连网段的路由条目
 

拓扑图:

具体操作:

1.R1配置

​​​​The device is running!

<Huawei>
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]
Oct 22 2019 19:14:26-08:00 R1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 1, the ch
ange loop count is 0, and the maximum number of records is 4095.

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[R1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 13.0.0.1 24
[R1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R1-GigabitEthernet0/0/1]dis ip int b
*down: administratively down
!down: FIB overload down
^down: standby
(l): loopback
(s): spoofing
(d): Dampening Suppressed
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 8
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 8

Interface                         IP Address/Mask      Physical   Protocol  
Ethernet0/0/0                     unassigned           down       down  
  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值