華為路由器rip靜態共存案例優先順序

2021-10-12 20:07:58 字數 4847 閱讀 2029

華為路由器rip靜態共存案例優先順序

同乙個區域網裡同時有rip與靜態

華為路由器rip靜態共存案例優先順序

第一步
[ar1]inte***ce gigabitethernet 0/0/0

[ar1-gigabitethernet0/0/0]ip address 192.168.12.1 24

[ar1]inte***ce gigabitethernet 0/0/1

[ar1-gigabitethernet0/0/1]ip address 192.168.13.1 24

[ar2]inte***ce gigabitethernet 0/0/0

[ar2-gigabitethernet0/0/0]ip address 192.168.12.2 24

//建議做完每一步,可以ping一下同端介面檢測一下

[ar2-gigabitethernet0/0/0]ping 192.168.12.1

ping 192.168.12.1: 56 data bytes, press ctrl_c to break

reply from 192.168.12.1: bytes=56 sequence=1 ttl=255 time=90 ms

reply from 192.168.12.1: bytes=56 sequence=2 ttl=255 time=20 ms

reply from 192.168.12.1: bytes=56 sequence=3 ttl=255 time=30 ms

reply from 192.168.12.1: bytes=56 sequence=4 ttl=255 time=20 ms

reply from 192.168.12.1: bytes=56 sequence=5 ttl=255 time=30 ms

[ar2]inte***ce gigabitethernet 0/0/1

[ar2-gigabitethernet0/0/1]ip address 192.168.24.2 24

[ar4]inte***ce gigabitethernet 0/0/0

[ar4-gigabitethernet0/0/0]ip address 192.168.24.4 24

[ar4-gigabitethernet0/0/0]ping 192.168.24.2

ping 192.168.24.2: 56 data bytes, press ctrl_c to break

reply from 192.168.24.2: bytes=56 sequence=1 ttl=255 time=110 ms

reply from 192.168.24.2: bytes=56 sequence=2 ttl=255 time=20 ms

reply from 192.168.24.2: bytes=56 sequence=3 ttl=255 time=20 ms

reply from 192.168.24.2: bytes=56 sequence=4 ttl=255 time=30 ms

reply from 192.168.24.2: bytes=56 sequence=5 ttl=255 time=20 ms

— 192.168.24.2 ping statistics —

[ar4]inte***ce gigabitethernet 0/0/1

[ar4-gigabitethernet0/0/1]ip address 192.168.34.4 24

[ar3]inte***ce gigabitethernet 0/0/0

[ar3-gigabitethernet0/0/0]ip address 192.168.13.3 24

[ar3-gigabitethernet0/0/0]ping 192.168.13.1

ping 192.168.13.1: 56 data bytes, press ctrl_c to break

reply from 192.168.13.1: bytes=56 sequence=1 ttl=255 time=70 ms

reply from 192.168.13.1: bytes=56 sequence=2 ttl=255 time=10 ms

reply from 192.168.13.1: bytes=56 sequence=3 ttl=255 time=30 ms

— 192.168.13.1 ping statistics —

[ar3]inte***ce gigabitethernet 0/0/1

[ar3-gigabitethernet0/0/1]ip address 192.168.34.3 24

[ar3-gigabitethernet0/0/1]ping 192.168.34.4

ping 192.168.34.4: 56 data bytes, press ctrl_c to break

reply from 192.168.34.4: bytes=56 sequence=1 ttl=255 time=80 ms

reply from 192.168.34.4: bytes=56 sequence=2 ttl=255 time=30 ms

reply from 192.168.34.4: bytes=56 sequence=3 ttl=255 time=20 ms

reply from 192.168.34.4: bytes=56 sequence=4 ttl=255 time=20 ms

reply from 192.168.34.4: bytes=56 sequence=5 ttl=255 time=10 ms

— 192.168.34.4 ping statistics —

第二部配置loopback
[ar1]inte***ce loopback 0

[ar1-loopback0]ip address 1.1.1.1 32

[ar4]inte***ce loopback 0

[ar4-loopback0]ip address 4.4.4.4 32

第三部配置ar1,ar2.ar4的rip

enter system view, return user view with ctrl+z.

[ar1]rip

[ar1-rip-1]version 2

[ar1-rip-1]network 192.168.12.0

[ar1-rip-1]network 1.0.0.0

[ar2]rip

[ar2-rip-1]version 2

[ar2-rip-1]network 192.168.12.0

[ar2-rip-1]network 192.168.23.0

[ar4]rip

[ar4-rip-1]version 2

[ar4-rip-1]network 192.168.24.0

[ar4-rip-1]network 4.0.0.0

//檢查連通性

ping -a 1.1.1.1 4.4.4.4

ping 4.4.4.4: 56 data bytes, press ctrl_c to break

reply from 4.4.4.4: bytes=56 sequence=1 ttl=254 time=40 ms

reply from 4.4.4.4: bytes=56 sequence=2 ttl=254 time=20 ms

reply from 4.4.4.4: bytes=56 sequence=3 ttl=254 time=30 ms

reply from 4.4.4.4: bytes=56 sequence=4 ttl=254 time=20 ms

reply from 4.4.4.4: bytes=56 sequence=5 ttl=254 time=30 ms

//指定1.1.1.1去ping4.4.4.4

tracert -a 1.1.1.1 4.4.4.4

traceroute to 4.4.4.4(4.4.4.4), max hops: 30 ,packet length: 40,press ctrl_c t

o break

1 192.168.12.2 30 ms 20 ms 20 ms

2 192.168.24.4 30 ms 10 ms 20 ms

//檢查訪問路勁

第四部配置靜態a1,a3,a4
[ar1]ip route-static 4.4.4.4 32 gigabitethernet 0/0/1 192.168.13.3

[ar3]ip route-static 4.4.4.4 32 gigabitethernet 0/0/1 192.168.34.4

[ar3]ip route-static 1.1.1.1 32 gigabitethernet 0/0/0 192.168.13.1

[ar4]ip route-static 1.1.1.1 32 gigabitethernet 0/0/1 192.168.34.3

[ar1]tracert -a 1.1.1.1 4.4.4.4

traceroute to 4.4.4.4(4.4.4.4), max hops: 30 ,packet length: 40,press ctrl_c t

o break

1 192.168.13.3 30 ms 20 ms 10 ms

2 192.168.34.4 20 ms 20 ms 20 ms

//由於靜態優先順序比rip高,所以優先選擇靜態,

the end

RIP協議特性與配置 (事例 華為路由器)

rip協議特性與配置 事例 華為路由器 ripv2癿配置方式 預設情況下彙總關閉 rip 1 version 2 network 廣播的網路 network 10.0.0.0 quit 彙總 inte ce g0 0 0 rip summary address 10.1.0.0 255.255.25...

路由器RIP動態路由的配置

路由器rip動態路由的配置 實驗目的 掌握rip動態路由選擇協議的配置方法 掌握路由選擇表中的rip路由描述 熟悉路由選擇和分組 的原理及過程 實驗背景 公司通過一台三層交換機連到企業網的出口路由器上,路由器再與網際網路服務提供商isp的另一台路由器連線。現要企業網裝置上做適當配置,實現企業網內部主...

路由器基礎配置之rip

我們將以上面的拓撲圖進行實驗,用rip協議來進行實驗,目的是實現三颱不同網段的pc機之間實現互相通訊 首先為pc機配置好ip位址和閘道器,配置完ip位址後在配置路由器 router1 enable 進入特權模式 config t 進入全域性配置模式 inte ce g0 0 進入介面模式 ip ad...