2018软考网络工程师《华为基础实验》-实验十二 实施和配置 RIPv2

前 言

1. 软考网络工程师在 2018 年 2 月 1 日出版教程《网络工程师教程 第 5 版》,其中网络设备从原来的思科改为华为。

2. 根据教程第 10 章组网技术的内容,并根据以往历年的真题考试 分析,编写这本实验指导书。


实施和配置 RIPv2

实验要求

n 在各路由器上启动 RIP 进程,在 RIP 进程中发布网段信息

n 启用 RIPv2,确保所有路由器收到正确的子网信息 网络拓扑图

实验步骤:

1、按照拓扑图,配置 R1 的接口参数(1 个 G0/0/0 口和 4 个 Loopback 接口)

<Huawei>system-view

Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1

[R1]interface GigabitEthernet 0/0/0 [R1-GigabitEthernet0/0/0]ip address 12.0.0.1 8 [R1-GigabitEthernet0/0/0]quit

[R1]interface LoopBack 0 [R1-LoopBack0]ip address 172.16.0.1 24 [R1-LoopBack0]quit

[R1]interface LoopBack 1 [R1-LoopBack1]ip address 172.16.1.1 24 [R1-LoopBack1]quit

[R1]interface LoopBack 2 [R1-LoopBack2]ip address 172.16.2.1 24 [R1-LoopBack2]quit

[R1]interface LoopBack 3 [R1-LoopBack3]ip address 172.16.3.1 24 [R1-LoopBack3]quit

[R1]display ip interface brief *down: administratively down ^down: standby

(l): loopback (s): spoofing

The number of interface that is UP in Physical is 6

The number of interface that is DOWN in Physical is 2

The number of interface that is UP in Protocol is 6

The number of interface that is DOWN in Protocol is 2

2、按照拓扑图,配置 R2的接口参数(2 个 G0/0/x 口和 1个 Loopback接口),并确认 R2和 R1 之间的直连是互通的

[Huawei]sysnameR2

[R2]interface GigabitEthernet 0/0/0

[R2-GigabitEthernet0/0/0]ip address 12.0.0.2 8

[R2-GigabitEthernet0/0/0]quit

[R2]interface GigabitEthernet 0/0/1

[R2-GigabitEthernet0/0/1]ip address 23.0.0.2 8

[R2-GigabitEthernet0/0/1]quit

[R2]interface LoopBack 0

[R2-LoopBack0]ip address 2.0.0.2 8

[R2-LoopBack0]quit

[R2]display ip interface brief *down: administratively down ^down: standby

(l): loopback (s): spoofing

The number of interface that is UP in Physical is 4

The number of interface that is DOWN in Physical is 1

The number of interface that is UP in Protocol is 4

The number of interface that is DOWN in Protocol is 1

[R2]ping 12.0.0.1

PING 12.0.0.1: 56 data bytes, press CTRL_C to break

Reply from 12.0.0.1: bytes=56 Sequence=1 ttl=255 time=120 ms

Reply from 12.0.0.1: bytes=56 Sequence=2 ttl=255 time=30 ms

Reply from 12.0.0.1: bytes=56 Sequence=3 ttl=255 time=10 ms

Reply from 12.0.0.1: bytes=56 Sequence=4 ttl=255 time=20 ms

Reply from 12.0.0.1: bytes=56 Sequence=5 ttl=255 time=10 ms

--- 12.0.0.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 10/38/120 ms

3、按照拓扑图,配置 R1 的接口参数(1 个 G0/0/0 口和 4 个 Loopback 接口),并确认 R2

和 R3 的直连是互通的

<Huawei>system-view [Huawei]sysname R3

[R3]interface GigabitEthernet 0/0/0

[R3-GigabitEthernet0/0/0]ip address 23.0.0.3 8

[R3-GigabitEthernet0/0/0]quit

[R3]interface LoopBack 0

[R3-LoopBack0]ip address 192.168.0.1 255.255.255.0

[R3-LoopBack0]quit

[R3]interface LoopBack 1

[R3-LoopBack1]ip address 192.168.1.1 255.255.255.0

[R3-LoopBack1]quit

[R3]interface LoopBack 2

[R3-LoopBack2]ip address 192.168.2.1 255.255.255.0

[R3-LoopBack2]quit

[R3]interface LoopBack 3

[R3-LoopBack3]ip address 192.168.3.1 255.255.255.0

[R3-LoopBack3]qui

[R3]display ip interface brief *down: administratively down

^down: standby (l): loopback (s): spoofing

The number of interface that is UP in Physical is 6

The number of interface that is DOWN in Physical is 2

The number of interface that is UP in Protocol is 6

The number of interface that is DOWN in Protocol is 2

[R3]ping 23.0.0.2

PING 23.0.0.2: 56 data bytes, press CTRL_C to break

Reply from 23.0.0.2: bytes=56 Sequence=1 ttl=255 time=70 ms

Reply from 23.0.0.2: bytes=56 Sequence=2 ttl=255 time=20 ms

Reply from 23.0.0.2: bytes=56 Sequence=3 ttl=255 time=10 ms

Reply from 23.0.0.2: bytes=56 Sequence=4 ttl=255 time=10 ms

Reply from 23.0.0.2: bytes=56 Sequence=5 ttl=255 time=20 ms

--- 23.0.0.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 10/26/70 ms

4、配置三台路由的 RIP 协议,版本为 version2,并关闭自动汇总,通告所有的直连接口

[R1]rip

[R1-rip-1]network 12.0.0.0

[R1-rip-1]network 172.16.0.0

[R1-rip-1]version 2

[R1-rip-1]undo summary

[R2]rip

[R2-rip-1]network 12.0.0.0

[R2-rip-1]network 23.0.0.0

[R2-rip-1]network 2.0.0.0

[R2-rip-1]version 2

[R2-rip-1]undo summary

[R3]rip

[R3-rip-1]network 23.0.0.0

[R3-rip-1]network 192.168.0.0

[R3-rip-1]network 192.168.1.0

[R3-rip-1]network 192.168.2.0

[R3-rip-1]network 192.168.3.0

[R3-rip-1]version 2

[R3-rip-1]undo summary

[R3-rip-1]quit

5、检查每台路由器的 RIP 工作状态,确认工作版本、network 等参数

[R1]display rip

Public VPN-instance

RIP process : 1

RIP version : 2

Preference : 100

Checkzero : Enabled

Default-cost : 0

Summary : Disabled

Host-route : Enabled

Maximum number of balanced paths : 8

Update time : 30 sec Age time : 180 sec

Garbage-collect time : 120 sec

Graceful restart : Disabled

BFD : Disabled

Silent-interfaces : None

Default-route : Disabled

Verify-source : Enabled

Networks :

172.16.0.0 12.0.0.0

Configured peers : None

Number of routes in database : 12

Number of interfaces enabled : 5

Triggered updates sent : 1

Number of route changes : 12

Number of replies to queries : 2

6、检查 3 台路由器的路由表,确认他们都能收到所有子网路由

[R1]display ip routing

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Routing Tables: Public

[R2]display ip routing protocol rip

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------------

Public routing table : RIP

RIP routing table status : <Inactive>

Destinations : 0 Routes : 0

[R3]display ip routing-table protocol rip

Route Flags: R - relay, D - download to fib

------------------------------------------------------------------------------

Public routing table : RIP

RIP routing table status : <Inactive>

Destinations : 0 Routes : 0

7、测试 R3 能 ping 通 R1 的 Loopback 接口

[R3]ping 172.16.0.1

PING 172.16.0.1: 56 data bytes, press CTRL_C to break

Reply from 172.16.0.1: bytes=56 Sequence=1 ttl=254 time=20 ms

Reply from 172.16.0.1: bytes=56 Sequence=2 ttl=254 time=20 ms

Reply from 172.16.0.1: bytes=56 Sequence=3 ttl=254 time=20 ms

Reply from 172.16.0.1: bytes=56 Sequence=4 ttl=254 time=20 ms

Reply from 172.16.0.1: bytes=56 Sequence=5 ttl=254 time=40 ms

--- 172.16.0.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/24/40 ms

[R3]ping 172.16.1.1

PING 172.16.1.1: 56 data bytes, press CTRL_C to break

Reply from 172.16.1.1: bytes=56 Sequence=1 ttl=254 time=20 ms

Reply from 172.16.1.1: bytes=56 Sequence=2 ttl=254 time=20 ms

Reply from 172.16.1.1: bytes=56 Sequence=3 ttl=254 time=10 ms

Reply from 172.16.1.1: bytes=56 Sequence=4 ttl=254 time=10 ms

Reply from 172.16.1.1: bytes=56 Sequence=5 ttl=254 time=20 ms

--- 172.16.1.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 10/16/20 ms

[R3]ping 172.16.2.1

PING 172.16.2.1: 56 data bytes, press CTRL_C to break

Reply from 172.16.2.1: bytes=56 Sequence=1 ttl=254 time=20 ms

Reply from 172.16.2.1: bytes=56 Sequence=2 ttl=254 time=20 ms

Reply from 172.16.2.1: bytes=56 Sequence=3 ttl=254 time=20 ms

Reply from 172.16.2.1: bytes=56 Sequence=4 ttl=254 time=20 ms

Reply from 172.16.2.1: bytes=56 Sequence=5 ttl=254 time=20 ms

--- 172.16.2.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/20/20 ms

[R3]ping 172.16.3.1

PING 172.16.3.1: 56 data bytes, press CTRL_C to break

Reply from 172.16.3.1: bytes=56 Sequence=1 ttl=254 time=20 ms

Reply from 172.16.3.1: bytes=56 Sequence=2 ttl=254 time=30 ms

Reply from 172.16.3.1: bytes=56 Sequence=3 ttl=254 time=20 ms

Reply from 172.16.3.1: bytes=56 Sequence=4 ttl=254 time=30 ms

Reply from 172.16.3.1: bytes=56 Sequence=5 ttl=254 time=30 ms

--- 172.16.3.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/26/30 ms


上期回顾

2018软考网络工程师《华为基础实验》-实验十一 配置默认路由

发表评论
留言与评论(共有 0 条评论)
   
验证码:

相关文章

推荐文章

'); })();