IPv6 OSPFv3路由协议(续六)

3.1.9 OSPFv3 网络类型的配置 3.1.9.1 OSPFv3 point-to-point环境下配置
clip_image002
具体配置如下所示:
路由器 R1 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:1::1/64
ipv6 ospf 10 area 0
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.1 point-to-point
ipv6 address 2001:DB2:1::1/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 100 CISCO
!
interface Serial1/0.2 point-to-point
ipv6 address 2001:DB2:2::1/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 110 CISCO
!
interface Serial1/0.3 point-to-point
ipv6 address 2001:DB2:3::1/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 120 CISCO
!
logging alarm informational
ipv6 router ospf 10
router-id 1.1.1.1
log-adjacency-changes
路由器 R2 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:2::1/64
ipv6 ospf 10 area 0
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.1 point-to-point
ipv6 address 2001:DB2:1::2/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 200 CISCO
!
logging alarm informational
ipv6 router ospf 10
router-id 2.2.2.2
log-adjacency-changes
!
路由器 R3 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:3::1/64
ipv6 ospf 10 area 0
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.1 point-to-point
ipv6 address 2001:DB2:2::2/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 300
!
logging alarm informational
ipv6 router ospf 10
router-id 3.3.3.3
log-adjacency-changes
!
路由器 R4 配置
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001:DB:4::1/64
ipv6 ospf 10 area 0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.1 point-to-point
ipv6 address 2001:DB2:3::2/64
ipv6 ospf 10 area 0
frame-relay interface-dlci 400 CISCO
!
logging alarm informational
ipv6 router ospf 10
router-id 4.4.4.4
log-adjacency-changes
!
使用show命令查看状态信息
R1#sh ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
4.4.4.4 1 FULL/ - 00:00:36 17 Serial1/0.3
3.3.3.3 1 FULL/ - 00:00:37 16 Serial1/0.2
2.2.2.2 1 FULL/ - 00:00:31 16 Serial1/0.1
R1#sh ipv6 ospf interface serial 1/0.1
Serial1/0.1 is up, line protocol is up
Link Local Address FE80::C800:84FF:FE6C:0, Interface ID 16
Area 0, Process ID 10, Instance ID 0, Router ID 1.1.1.1
Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 1/2/2, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 2
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
R4#sh ipv6 route
IPv6 Routing Table - 11 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
O 2001:DB:1::/64 [110/65]
via FE80::C800:84FF:FE6C:0, Serial1/0.1
O 2001:DB:2::/64 [110/129]
via FE80::C800:84FF:FE6C:0, Serial1/0.1
O 2001:DB:3::/64 [110/129]
via FE80::C800:84FF:FE6C:0, Serial1/0.1
C 2001:DB:4::/64 [0/0]
via ::, Loopback0
L 2001:DB:4::1/128 [0/0]
via ::, Loopback0
O 2001:DB2:1::/64 [110/128]
via FE80::C800:84FF:FE6C:0, Serial1/0.1
O 2001:DB2:2::/64 [110/128]
via FE80::C800:84FF:FE6C:0, Serial1/0.1
C 2001:DB2:3::/64 [0/0]
via ::, Serial1/0.1
L 2001:DB2:3::2/128 [0/0]
via ::, Serial1/0.1
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
3.1.9.2 OSPFv3 point-to-multipoint环境下配置
本实验拓扑图,如下图所示:
clip_image002[1]
在本配置本实验之前需要注意以下几点:
1、在配置帧中继链路时,需要使用命令:
frame-relay map ipv6 ipv6-address dlci broadcast
这里ipv6-address是对端接口的本地链路地址。
2、在配置OSPF时,需要在接口下配置OSPF的网络类型
ipv6 ospf network point-to-multipoint
3、在此环境下可以指定邻居,也可以不指定邻居
ipv6 ospf neighbor ipv6-address
具体配置如下:
路由器 R1 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:1::1/64
ipv6 ospf 10 area 10
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::1/64
ipv6 ospf network point-to-multipoint
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 100 broadcast
frame-relay map ipv6 FE80::C800:80FF:FED4:0 110 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 120 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 1.1.1.1
log-adjacency-changes
路由器 R2 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:2::1/64
ipv6 ospf 10 area 20
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::2/64
ipv6 ospf network point-to-multipoint
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:80FF:FED4:0 210 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 220 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 200 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 2.2.2.2
log-adjacency-changes
路由器 R3 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:3::1/64
ipv6 ospf 10 area 30
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::3/64
ipv6 ospf network point-to-multipoint
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 310 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 320 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 300 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 3.3.3.3
log-adjacency-changes
路由器 R4 配置
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001:DB:4::1/64
ipv6 ospf 10 area 40
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::4/64
ipv6 ospf network point-to-multipoint
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 410 broadcast
frame-relay map ipv6 FE80::C800:80FF:FED4:0 420 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 400 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 4.4.4.4
log-adjacency-changes
使用show命令查看状态信息,如下所示:
R1#sh ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
4.4.4.4 1 FULL/ - 00:01:33 18 Serial1/0.10
3.3.3.3 1 FULL/ - 00:01:43 17 Serial1/0.10
2.2.2.2 1 FULL/ - 00:01:44 17 Serial1/0.10
R1#sh ipv6 route
IPv6 Routing Table - 12 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C 2001:DB:1::/64 [0/0]
via ::, FastEthernet0/0
L 2001:DB:1::1/128 [0/0]
via ::, FastEthernet0/0
OI 2001:DB:2::/64 [110/65]
via FE80::C800:4CFF:FE78:0, Serial1/0.10
OI 2001:DB:3::/64 [110/65]
via FE80::C800:80FF:FED4:0, Serial1/0.10
OI 2001:DB:4::1/128 [110/64]
via FE80::C800:80FF:FE70:0, Serial1/0.10
C 2001:DB2:1::/64 [0/0]
via ::, Serial1/0.10
L 2001:DB2:1::1/128 [0/0]
via ::, Serial1/0.10
O 2001:DB2:1::2/128 [110/64]
via FE80::C800:4CFF:FE78:0, Serial1/0.10
O 2001:DB2:1::3/128 [110/64]
via FE80::C800:80FF:FED4:0, Serial1/0.10
O 2001:DB2:1::4/128 [110/64]
via FE80::C800:80FF:FE70:0, Serial1/0.10
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
R1#sh ipv6 ospf interface serial 1/0.10
Serial1/0.10 is up, line protocol is up
Link Local Address FE80::C800:84FF:FE6C:0, Interface ID 19
Area 0, Process ID 10, Instance ID 0, Router ID 1.1.1.1
Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
Hello due in 00:00:17
Index 1/1/2, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 3
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 3, Adjacent neighbor count is 3
Adjacent with neighbor 4.4.4.4
Adjacent with neighbor 3.3.3.3
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
3.1.9.3 OSPFv3 point-to-multipoint non-broadcast环境下配置
本实验拓扑图,如下图所示:
clip_image002[2]
在本配置本实验之前需要注意以下几点:
1、在配置帧中继链路时,需要使用命令:
frame-relay map ipv6 ipv6-address dlci broadcast
——这里ipv6-address是对端接口的本地链路地址。
2、在配置OSPF时,需要在接口下配置OSPF的网络类型
ipv6 ospf network point-to-multipoint non-broadcast
3、在此环境下可以指定邻居,也可以不指定邻居
ipv6 ospf neighbor ipv6-address
——这里ipv6-address是对端接口的本地链路地址。
具体配置如下:
路由器 R1 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:1::1/64
ipv6 ospf 10 area 10
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::1/64
ipv6 ospf network point-to-multipoint non-broadcast
ipv6 ospf neighbor FE80::C800:80FF:FED4:0
ipv6 ospf neighbor FE80::C800:4CFF:FE78:0
ipv6 ospf neighbor FE80::C800:80FF:FE70:0
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 100 broadcast
frame-relay map ipv6 FE80::C800:80FF:FED4:0 110 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 120 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 1.1.1.1
log-adjacency-changes
路由器 R2 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:2::1/64
ipv6 ospf 10 area 20
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::2/64
ipv6 ospf network point-to-multipoint non-broadcast
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:80FF:FED4:0 210 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 220 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 200 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 2.2.2.2
log-adjacency-changes
路由器 R3 配置
ipv6 unicast-routing
!
interface FastEthernet0/0
no ip address
duplex half
ipv6 address 2001:DB:3::1/64
ipv6 ospf 10 area 30
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::3/64
ipv6 ospf network point-to-multipoint non-broadcast
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 310 broadcast
frame-relay map ipv6 FE80::C800:80FF:FE70:0 320 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 300 broadcast
!
logging alarm informational
ipv6 router ospf 10
router-id 3.3.3.3
log-adjacency-changes
路由器 R4 配置
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2001:DB:4::1/64
ipv6 ospf 10 area 40
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
no ip address
encapsulation frame-relay
ipv6 enable
serial restart-delay 0
no dce-terminal-timing-enable
!
interface Serial1/0.10 multipoint
ipv6 address 2001:DB2:1::4/64
ipv6 ospf network point-to-multipoint non-broadcast
ipv6 ospf 10 area 0
frame-relay map ipv6 FE80::C800:4CFF:FE78:0 410 broadcast
frame-relay map ipv6 FE80::C800:80FF:FED4:0 420 broadcast
frame-relay map ipv6 FE80::C800:84FF:FE6C:0 400 broadcast
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
no dce-terminal-timing-enable
!
logging alarm informational
ipv6 router ospf 10
router-id 4.4.4.4
log-adjacency-changes
使用show命令查看状态信息
R1#sh ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
3.3.3.3 1 FULL/ - 00:01:49 17 Serial1/0.10
2.2.2.2 1 FULL/ - 00:01:49 17 Serial1/0.10
4.4.4.4 1 FULL/ - 00:01:49 18 Serial1/0.10
R2#sh ipv6 ospf interface s1/0.10
Serial1/0.10 is up, line protocol is up
Link Local Address FE80::C800:4CFF:FE78:0, Interface ID 17
Area 0, Process ID 10, Instance ID 0, Router ID 2.2.2.2
Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
Hello due in 00:00:26
Index 1/1/1, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 3
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 1.1.1.1
Suppress hello for 0 neighbor(s)
R4#sh ipv6 route
IPv6 Routing Table - 12 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
OI 2001:DB:1::/64 [110/65]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
OI 2001:DB:2::/64 [110/129]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
OI 2001:DB:3::/64 [110/129]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
C 2001:DB:4::/64 [0/0]
via ::, Loopback0
L 2001:DB:4::1/128 [0/0]
via ::, Loopback0
C 2001:DB2:1::/64 [0/0]
via ::, Serial1/0.10
O 2001:DB2:1::1/128 [110/64]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
O 2001:DB2:1::2/128 [110/128]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
O 2001:DB2:1::3/128 [110/128]
via FE80::C800:84FF:FE6C:0, Serial1/0.10
L 2001:DB2:1::4/128 [0/0]
via ::, Serial1/0.10
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值