OSPFv3配置作业

OSPFv3配置

实验目的

1. 掌握 OSPFv3 的配置方法

2. 掌握在帧中继环境下 OSPFv3 的配置方法

3. 掌握 OSPFv3 NSSA 的配置方法

4. 掌握外部路由汇总的配置

5. 掌握区域间路由的汇总配置

拓扑图(同OSPF)

 

IPv6地址表

Device

Interface

IPv6 Address

R1

F 0/0

2123::65:1/64

S 1/0.1

2356::65:1/64

Loopback 0

2011::1/128

R3

S 1/0.1

2356::65:3/64

 

Loopback 0

2033::1/128

R4

S 1/0.1

2356::65:4/64

 

Loopback 0

2044::1/128

R5

F 0/0

2123::65:5/64

S 1/0

2027::65:5/64:

Loopback 0

2055::1/128

R6

F 0/0

2123::65:6/64

Loopback 0

2066::1/128

R7

S 1/0

2027::65:7/64:

Loopback 0

2077::1/128

Device

Interface

IPv6 Address

帧中继R2配置与ospfv2相同。

1.完成接口 IPv6 地址的配置,注意不要忘记配置 loopback0:

R1(config)#ipv6 unicast-routing ―――全局打开 IPv6 路由功能

R1config)#interface loopback 0

R1(config-if)#ipv6 enable

R1(config-if)#ipv6 address 2011::1/128―――配置 loopback0 接口地址

R1(config-if)#int f 0/0

R1(config-if)#ipv6 enable

R1(config-if)# ipv6 address 2123::65:1/64

R1(config-if)#no shut

R1(config-if)#int s 1/0

R1(config-if)#ipv6 enable

R1(config-if)# encapsulation frame-relay

R1(config-if)#no shut

R1(config)#interface serial 1/0.1 multipoint

R1(config-subif)#ipv6 address 2356::65:1/64

R1(config-subif)#frame-relay map ipv6 2356::65:3 103 broadcast  

R1(config-subif)#frame-relay map ipv6 2356::65:4 104 broadcast

R1(config-subif)#frame-relay map ipv6 2356::65:1 104 broadcast

R1(config-subif)#frame-relay map ipv6 FE80::C804:1CFF:FE48:8 104 broadcast

R1(config-subif)#frame-relay map ipv6 FE80::C803:1CFF:FE48:8 103 broadcast

R3(config)#ipv6 unicast-routing

R3(config)#interface loopback 0

R3(config-if)#ipv6 address 2033::1/128

R3(config-if)#int s 1/0

R3(config-if)#ipv6 enable

R3(config-if)# encapsulation frame-relay

R3(config-if)#no shutdown

R3(config)#interface serial 1/0.1 multipoint

R3(config-subif)#ipv6 address 2356::65:3/64

R3(config-subif)#frame-relay map ipv6 2356::65:1 301 broadcast  (R4用401)

R3(config-subif)#frame-relay map ipv6 2356::65:4 301 broadcast    (R4用401)

R3(config-subif)#frame-relay map ipv6 2356::65:3 301 broadcast   (R4用401)

R3(config-subif)#frame-relay map ipv6 FE80::C804:1CFF:FE48:8 304 broadcastR4用C803,403)

R3(config-subif)#frame-relay map ipv6 FE80::C801:1CFF:FE48:8 301 broadcast R4用401)

R1ping通 R3.R4

 

用show frame-relay pvc命令查看,帧中继配置完成

 

2. 按实验拓扑图标识的区域,完成 OSPFv3 的基本配置。区域 1 为 NSSA 区域。

R6(config)#ipv6 unicast-routing

R6(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R6(config-rtr)#router-id 6.6.6.6

R6(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R6(config-rtr)#int f 0/0

R6(config-if)#ipv6 enable

R6(config-if)# ipv6 ospf 1 area 0

R6(config-if)#no shutdown

R6(config-if)#int loopback 0

R6(config-if)#ipv6 enable

R6(config-if)#ipv6 address 2066::1/128

R6(config-if)# ipv6 ospf 1 area 0

R6(config-if)#int f 0/1

R6(config-if)#ipv6 enable

R6(config-if)# ipv6 ospf 1 area 1

R6(config-if)#no shutdown

R5(config)#ipv6 unicast-routing

R5(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R5(config-rtr)#router-id 5.5.5.5

R5(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R5(config-rtr)#int f 0/0

R5(config-if)#ipv6 enable

R5(config-if)# ipv6 ospf 1 area 0

R5(config-if)#no shutdown

R5(config-if)#int loopback 0

R5(config-if)#ipv6 enable

R5(config-if)#ipv6 address 2055::1/128

R5(config-if)# ipv6 ospf 1 area 0

R5(config-if)#int s 1/0

R5(config-if)#ipv6 enable

R5(config-if)# ipv6 ospf 1 area 1

R5(config-if)#no shutdown

R1(config)#ipv6 unicast-routing

R1(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R1(config-rtr)#router-id 1.1.1.1

R1(config-rtr)#int f 0/0

R1(config-if)#ipv6 enable

R1(config-if)# ipv6 ospf 1 area 0

R1(config-if)#no shutdown

R1(config-if)#int loopback 0

R1(config-if)#ipv6 enable

R1(config-if)#ipv6 address 2011::1/128

R1(config-if)# ipv6 ospf 1 area 0

R1(config-if)#int s 1/0.1

R1(config-subif)#ipv6 enable

R1(config-subif)# ipv6 ospf 1 area 2

R1(config-subif)#ipv6 ospf neighbor FE80::C803:1CFF:FE48:8

R1(config-subif)#ipv6 ospf neighbor FE80::C804:1CFF:FE48:8

R3(config)#ipv6 router ospf 1

R3(config-rtr)#router-id 3.3.3.3

R3(config-rtr)#int loopback 0

R3(config-if)#ipv6 enable

R3(config-if)#ipv6 address 2033::1/128

R3(config-if)# ipv6 ospf 1 area 2

R3(config-if)#int s 1/0.1

R3(config-subif)#ipv6 enable

R3(config-subif)# ipv6 ospf 1 area 2

R3(config-subif)# ipv6 ospf priority 0

R3(config-subif)# ipv6 address FE80::C803:1CFF:FE48:8 link-local

R4config)#ipv6 router ospf 1

R4config-rtr)#router-id 4.4.4.4

R4config-rtr)#int loopback 0

R4config-if)#ipv6 enable

R4(config-if)#ipv6 address 2044::1/128

R4(config-if)# ipv6 ospf 1 area 2

R4(config-if)#int s 1/0.1

R4(config-subif)#ipv6 enable

R4(config-subif)# ipv6 ospf 1 area 2

R4(config-subif)# ipv6 ospf priority 0

R4(config-subif)# ipv6 address FE80::C804:1CFF:FE48:8 link-local

R7(config)#ipv6 unicast-routing

R7(config)#ipv6 router ospf 1―――启动 OSPFv3 进程

R7(config-rtr)#router-id 7.7.7.7

R7(config-rtr)#area 1 nssa――配置区域 1 为 NSSA 区域

R7(config-rtr)#int s 1/0

R7(config-if)#ipv6 enable

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#no shutdown

R7(config-if)#int loopback 0

R7(config-if)#ipv6 enable

R7(config-if)#ipv6 address 2077::1/128

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#int f 0/1

R7(config-if)#ipv6 enable

R7(config-if)# ipv6 ospf 1 area 1

R7(config-if)#no shutdown

3.检查 OSPFv3 的邻居关系

在 R31上检查,可以看到邻居的 Router-ID 都是用 IPv4 的地址格式标识

R1#show ipv6 ospf neighbor

 

4.测试路由通断情况在R3测试。Ospfv3配置成功。

 

本实验步骤引入外部路由类型 5 和外部路由类型 7

1) 在 R6 上新增加一个 loopback1 接口,地址为 2166::1/128,然后重分布进入 OSPFv3

R6(config)#interface loopback 1

R6(config-if)#ipv6 address 2166::1/128

R6(config-if)#exit

R6(config)#ipv6 router ospf 1

R6(config-rtr)#redistribute connected

配置 R7 和 R8 的 RIPng,然后重分布 RIPng 到 OSPFv3

R7(config)#ipv6 router rip yeslab

R7(config-rtr)#exit

R7(config)#interface fastEthernet 0/0

R7(config-if)#ipv6 rip yeslab enable

R7(config-if)#exit

R8(config)#ipv6 router rip yeslab

R8(config-rtr)#exit

R8(config)#interface fastEthernet 0/0

R8(config-if)#ipv6 rip yeslab enable

R8(config-if)#exit

R8(config)#ipv6 router ospf 1

R8(config-rtr)#redistribute rip yeslab―――重分布 RIPng 到 OSPFv3

R8(config-rtr)#redistribute connected―――由于重分布 RIPng,不能把连接 R8 的接口网段重分布进入OSPFv3,因此重分布直连,把连接 R8 的网段重分布到 OSPFv3

 

 

作业总结

  

本次的作业难度较高,花费了相对比较长的时间才做出来。再配置帧中继过程中由于有同学指导并未遇到太大的问题。而后在ospf的配置中多次由于手误或未能发现文档错误而进行错误配置,幸好在多次进行排错后成功配置。

猜你喜欢

转载自www.cnblogs.com/atombomb/p/10941426.html