ip ospf 相关配置

Ip作业:ipv4 & ipv6 ospf 配置(学号后两位26

Ipv4:实验拓扑

帧中继配置:FR(config)#frame-relay switching

FR(config)#int s0/2

FR(config-if)#no shutdown

FR(config-if)#clock rate 128000

FR(config-if)#encapsulation frame-relay

FR(config)#int s0/0

FR(config-if)#no shutdown

FR(config-if)#clock rate 128000

FR(config-if)#encapsulation frame-relay

FR(config)#int s0/1

FR(config-if)#no shutdown

FR(config-if)#clock rate 128000

FR(config-if)#encapsulation frame-relay

FR(config)#int s0/2

FR(config-if)#frame-relay lmi-type cisco

FR(config-if)#frame-relay intf-type dce

FR(config)#int s0/0

FR(config-if)#frame-relay lmi-type cisco

FR(config-if)#frame-relay intf-type dce

FR(config)#int s0/1

FR(config-if)#frame-relay lmi-type cisco

FR(config-if)#frame-relay intf-type dce

FR(config)#int s0/2

FR(config-if)#frame-relay route 103 interface s1/1 301

FR(config-if)#frame-relay route 104 int s1/0 401

FR(config)#int s0/0

FR(config-if)#frame-relay route 301 int s1/2 103

FR(config)#int s0/1

FR(config-if)#frame-relay route 401 int s1/2 104

FR#show frame-relay rou

FR#show frame-relay route

Input Intf      Input Dlci      Output Intf     Output Dlci     Status

Serial0/0       401             Serial0/2       104             inactive

Serial0/1       301             Serial0/2       103             inactive

Serial0/2       103             Serial0/0       301             inactive

Serial0/2       104             Serial0/1       401             inactive

 配置动态映射

R3(config)#int s0/2

R3(config-if)#ip address 10.26.10.3 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#encapsulation frame-relay

R3(config-if)#frame-relay lmi-type cisco

R3(config-if)#end

R5(config)#int s0/0

R5(config-if)#ip address 10.26.10.5 255.255.255.0

R5(config-if)#no shutdown

R5(config-if)#encapsulation frame-relay

R5(config-if)#end

R6(config)#int s0/1

R6(config-if)#ip address 10.26.10.6 255.255.255.0

R6(config-if)#no shutdown

R6(config-if)#encapsulation frame-relay

R6(config-if)#end

检验

R3#ping 10.26.10.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.26.10.5, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/59/172 ms

R3#ping 10.26.10.6

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.26.10.6, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/23/44 ms

FR(config)#int s0/1

FR(config-if)#frame-relay route 403 int s1/1 304

FR(config)#int s0/0

FR(config-if)#frame-relay route 304 int s1/0 403

R6#ping 10.26.10.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.26.10.5, timeout is 2 seconds:

!!!!!

ospf配置:以R2为例

R2(config)#int f0/0

R2(config-if)#ip address 10.26.20.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#int s0/0

R2(config-if)#ip address 10.26.30.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#int loopback 0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

R2(config-if)#exit

R2(config)#int loopback 0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#router ospf 1

R2(config-router)#router-id 2.2.2.2

R2(config-router)#network 10.26.50.0 0.0.0.255 are

R2(config-router)#network 10.26.50.0 0.0.0.255 area 0

R2(config-router)#network 10.26.20.0 0.0.0.255 area 0

R2(config-router)#network 2.2.2.2 0.0.0.255 area 0

 

网络ping通测试

查看ospf配置

 

查看邻居接口配置

Ipv6:实验拓扑

 

ospf配置:

R8为例:R8(config)#ipv6 unicast-routing

           R8(config)#int loopback 0

           R8(config)#ip address 8.8.8.8 255.255.255.0

           R8(config)#int f0/0

           R8(config)#ipv6 address 2087::26:8/64

           R8(config)#no shutdown

           R8(config)#ipv6 ospf 1 area 0

网络Ping通测试

查看邻居配置

      

总结:

这次实验我学到了很多东西,并加深巩固了有关于ospf的知识。其中我觉得难点在于帧中继的配置,一开始我没有做通但是后来在询问同学的帮助下我搞懂了它的原理。这次作业并不仅仅是简单的作业,它同时也锻炼了我的实践能力以及对知识的理解和归纳并且锻炼了我解决困难的能力希望在以后的学习中也可以继续努力争取有更大的进步。

猜你喜欢

转载自www.cnblogs.com/23ysx/p/10759132.html