H3CSE路由实验手册(2)

2019-03-10 22:46

[RT3-ospf-1]quit [RT3]

在RT4上的配置: [H3C]sysname RT4

[RT4]interface LoopBack 1

[RT4-LoopBack1]ip address 4.4.4.4 32 [RT4-LoopBack1]quit [RT4]interface Serial 0/2/0

[RT4-Serial0/2/0]ip address 20.1.1.2 24 [RT4]ospf router-id 4.4.4.4 [RT4-ospf-1]area 1

[RT4-ospf-1-area-0.0.0.1]network 20.1.1.0 0.0.0.255 [RT4-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0 [RT4-ospf-1-area-0.0.0.1]quit [RT4-ospf-1]quit [RT4]

配置好之后在RT2上分别ping RT3和RT4的loopback接口ip地址,看是否可以ping通。

[RT2]ping -a 2.2.2.2 4.4.4.4

PING 4.4.4.4: 56 data bytes, press CTRL_C to break Request time out

Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=254 time=4 ms

Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=254 time=1 ms Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=254 time=10 ms Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=254 time=16 ms

--- 4.4.4.4 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss

round-trip min/avg/max = 1/7/16 ms [RT2]ping -a 2.2.2.2 3.3.3.3

PING 3.3.3.3: 56 data bytes, press CTRL_C to break Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=255 time=20 ms

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

Request time out

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

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

--- 3.3.3.3 ping statistics ---

5 packet(s) transmitted 4 packet(s) received 20.00% packet loss

round-trip min/avg/max = 5/16/30 ms 在RT3上查看OSPF的邻居: [RT3]display ospf peer

OSPF Process 1 with Router ID 3.3.3.3 Neighbor Brief Information

Area: 0.0.0.0

Router ID Address Pri Dead-Time Interface State

2.2.2.2 10.1.1.1 1 39 S0/2/0 Full/ -

Area: 0.0.0.1

Router ID Address Pri Dead-Time Interface State

4.4.4.4 20.1.1.2 1 38 S0/2/2 Full/ -

发现两个对端邻居都是full的状态,那么配置就成功了。

3. OSPF虚链接的配置:

如图所示,RT2和RT3在区域0,RT3和RT4在区域1,RT4和RT5在区域2当中,这是发现区域2没有和区域0互连,通过我们学到的理论,区域1和区域2不能通信,这样相互之间不能进行网段的学习。通过在区域1配置虚链接,保证通信。 [H3C]sysname RT2

[RT2]interface Serial 0/2/2

[RT2-Serial0/2/2]ip address 10.1.1.1 24 [RT2-Serial0/2/2]quit [RT2]interface LoopBack 1

[RT2-LoopBack1]ip address 2.2.2.2 32 [RT2-LoopBack1]quit [RT2]ospf router-id 2.2.2.2

[RT2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255 [RT2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0 [RT2-ospf-1-area-0.0.0.0]quit [RT2-ospf-1]quit [RT2]

在RT3上的配置: [H3C]sysname RT3

[RT3]interface LoopBack 1

[RT3-LoopBack1]ip address 3.3.3.3 32 [RT3-LoopBack1]quit [RT3]interface Serial 0/2/0

[RT3-Serial0/2/0]ip address 10.1.1.2 24 [RT3-Serial0/2/0]quit [RT3]interface Serial 0/2/2

[RT3-Serial0/2/2]ip address 20.1.1.1 24 [RT3-Serial0/2/2]quit [RT3]ospf router-id 3.3.3.3 [RT3-ospf-1]area 0

[RT3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255 [RT3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0 [RT3-ospf-1-area-0.0.0.0]quit [RT3-ospf-1]area 1

[RT3-ospf-1-area-0.0.0.1]network 20.1.1.0 0.0.0.255 [RT3-ospf-1-area-0.0.0.1]quit [RT3-ospf-1]quit [RT3]

在RT4上的配置:


H3CSE路由实验手册(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:家具与室内毕业设计和论文选题说明

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: