OSPFV3配置redis
1、ipv6地址規劃oop
路由學習 |
接口測試 |
地址spa |
Loopback03d |
R1router
|
F0/0blog |
2001:db8:102:3::1/64接口 |
2001:cf:102:1::1/64ip |
F0/1 |
2001:db8:102:4::1/64 |
|
|
R2 |
F0/1 |
2001:db8:102:3::2/64 |
2001:cf:102:2::1/64 |
F0/0 |
2001:db8:102:5::1/64 |
|
|
R3 |
S1/2 |
2001:db8:102:1::3/64 |
2001:cf:102:3::1/64 |
F0/0 |
2001:db8:102:3::3/64 |
|
|
R4 |
|
|
2001:cf:102:4::1/64 |
R5 |
S1/0 |
2001:db8:102:1::1/64 |
2001:cf:102:5::1/64 |
R6 |
S1/1 |
2001:db8:102:1::2/64 |
2001:cf:102:6::1/64 |
R7 |
F2/0 |
2001:db8:102:5::2/64 |
|
F0/1 |
2001:db8:102:4::2/64 |
2001:cf:102:7::1/64 |
|
F0/0 |
2001:db8:102:2::2/64 |
|
|
R8 |
F0/0 |
2001:db8:102:2::1/64 |
2001:cf:102:8::1/64 |
2、配置步驟
採用幀中繼鏈接,R4做爲幀中繼交換機,幀中繼路由R3,R5,R6靜態配置dlci
R3#configure terminal
R3(config)#ipv6 unicast-routing
R3(config)#interface Serial4/2
R3(config-if)# frame-relay map ipv6 2001:DB8:102:1::1 402 broadcast
R3(config-if)# frame-relay map ipv6 2001:DB8:102:1::2 401 broadcast
R3(config-if)#frame-relay map ipv6 FE80::CE01:1EFF:FE28:0 401 broadcast
R3(config-if)# frame-relay map ipv6 FE80::CE02:EFF:FE60:0 402 broadcast
R3(config-if)#exit
R5#configure terminal
R5(config)#ipv6 unicast-routing
R5(config)interface Serial1/0
R5(config-if)#frame-relay map ipv6 2001:DB8:102:1::3 202 broadcast
R5(config-if)#frame-relay map ipv6 2001:DB8:102:1::2 201 broadcast
R5(config-if)# frame-relay map ipv6 FE80::CE01:1EFF:FE28:0 201 broadcast
R5(config-if)# frame-relay map ipv6 FE80::CE04:19FF:FE18:0 202 broadcast
R5(config-if)#exit
R6#configure terminal
R6(config)#ipv6 unicast-routing
R6(config)interface Serial1/1
R6(config-if)# frame-relay map ipv6 2001:DB8:102:1::3 102 broadcast
R6(config-if)# frame-relay map ipv6 2001:DB8:102:1::1 101 broadcast
R6(config-if)#frame-relay map ipv6 FE80::CE04:19FF:FE18:0 102 broadcast
R6(config-if)#frame-relay map ipv6 FE80::CE02:EFF:FE60:0 101 broadcast
R6(config-if)#exit
測試連通性:
R6 ping R3
R6#ping 2001:db8:102:1::3 ok
幀中繼環境下配置ospf
R3#configure terminal
R3(config)#ipv6 router ospf 1
R3(config-rtr)#router-id 3.3.3.3 配置路由id
R3(config-rtr)# area 0 range 2001:DB8::/32
R3(config-rtr)# exit
R3(config)#interface Serial1/2
R3(config-if)#ipv6 ospf 1 area 2
R3(config-if)# ipv6 enable
R3(config-if)# ipv6 ospf neighbor FE80::CE02:EFF:FE60:0 priority 1 手動配置鄰居
R3(config-if)# ipv6 ospf neighbor FE80::CE01:1EFF:FE28:0 priority 1
R3(config-if)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 ospf 1 area 0
R6配置參考下面R5配置
R5#configure terminal
R5(config)#ipv6 router ospf 1
R5(config-rtr)#router-id 5.5.5.5 路由id
R5(config-rtr)# exit
R5(config)#interface Serial1/0
R5(config-if)# ipv6 ospf 1 area 2
R5(config-if)# ipv6 enable
R5(config-if)#exit
配置其餘區域的OSPFV3
R2參考R1配置
R1#configure terminal
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#area 1 nssa 定義區域1爲nssa區域
R1(config-rtr)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#interface fastEthernet 0/1
R1(config-if)#ipv6 enable
R1(config-if)# ipv6 ospf 1 area 1
R1(config-if)#exit
配置路由重發布
R7#configure terminal
R7(config)#ipv6 unicast-routing
R7(config)#ipv6 router rip ys
R7(config-rtr)#redistribute ospf 1 metric 4 將ospfv3重發布到RIP中 R7(config-rtr)# redistribute connected
R7(config-rtr)#exit
R7(config)#ipv6 router ospf 1
R7(config-rtr)# router-id 7.7.7.7
R7(config-rtr)#area 1 nssa
R7(config-rtr)# redistribute rip 將rip重發布到ospfv3中
R7(config-rtr)# redistribute connected 把鏈接 R8 的網段重分佈到 OSPFv3
R7(config-rtr)# exit
測試連通性
R8 ping R3
R8#ping 2001:db8:102:1::3
查看R5的鄰居:
R5#show ipv6 ospf neighbor
實驗總結:
經過這次做業,讓我對於上學期學的ospf知識有了更深的理解,同時結合幀中繼等,動手操做讓目前學習的內容瞭解有了更深的層次。這做業作了兩天半時間,從一開始配置錯誤致使沒法ping通,到後面地址配置錯誤,算錯致使後期排錯排了好久。相信此次做業能對於實操有很是重要的意義。