在路由器上使用IPV6(中)--RIP和OSPF的应用
版权声明:原创作品,谢绝转载!否则将追究法律责任。 |
初始配置见http://matthewyin.blog.51cto.com/blog/49294/17194
配置RIP协议
R1
conf t
ipv6 router rip cisco /*cisco是启用此RIP协议所特指的进程
exit
int s2/0
ipv6 rip cisco enable /*在s2/0上启用ipv6的rip协议
exit
int l0
ipv6 rip cisco enable /*在loopback0上启用ipv6的rip协议
end
R2
conf t
ipv6 router rip cisco
exit
int s2/0
ipv6 rip cisco enable
exit
int l0
ipv6 rip cisco enable
end
R3
conf t
ipv6 router rip cisco
int s2/0
ipv6 rip cisco enable
exit
int l 0
ipv6 rip cisco enable
end
校验
R1#sh ipv6 route IPv6 Routing Table - 10 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 L FE80::/10 [0/0] via ::, Null0 C FEC0::/64 [0/0] via ::, Loopback0 L FEC0::1:0:0:1/128 [0/0] via ::, Loopback0 C FEC0:0:0:1::/64 [0/0] via ::, Loopback0 L FEC0:0:0:1::1/128 [0/0] via ::, Loopback0 R FEC0:0:0:2::/64 [120/2] via FE80::C800:DFF:FE44:0, Serial2/0 R FEC0:0:0:3::/64 [120/2] via FE80::C800:AFF:FE80:0, Serial2/0 C FEC0:0:0:123::/64 [0/0] via ::, Serial2/0 L FEC0:0:0:123::1/128 [0/0] via ::, Serial2/0 L FF00::/8 [0/0] via ::, Null0 R2#sh ipv6 route IPv6 Routing Table - 8 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 L FE80::/10 [0/0] via ::, Null0 R FEC0::/64 [120/2] via FE80::C800:8FF:FE90:0, Serial2/0 R FEC0:0:0:1::/64 [120/2] via FE80::C800:8FF:FE90:0, Serial2/0 C FEC0:0:0:2::/64 [0/0] via ::, Loopback0 L FEC0:0:0:2::2/128 [0/0] via ::, Loopback0 C FEC0:0:0:123::/64 [0/0] via ::, Serial2/0 L FEC0:0:0:123::2/128 [0/0] via ::, Serial2/0 L FF00::/8 [0/0] via ::, Null0 R3#sh ipv route IPv6 Routing Table - 8 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 L FE80::/10 [0/0] via ::, Null0 R FEC0::/64 [120/2] via FE80::C800:8FF:FE90:0, Serial2/0 R FEC0:0:0:1::/64 [120/2] via FE80::C800:8FF:FE90:0, Serial2/0 C FEC0:0:0:3::/64 [0/0] via ::, Loopback0 L FEC0:0:0:3::3/128 [0/0] via ::, Loopback0 C FEC0:0:0:123::/64 [0/0] via ::, Serial2/0 L FEC0:0:0:123::3/128 [0/0] via ::, Serial2/0 L FF00::/8 [0/0] via ::, Null0 配置OSPF
R1
conf t
int l 0
ip ad 1.1.1.1 255.255.255.255
exit
ipv6 router ospf 1
exit
int s2/0
ipv6 ospf priority 1
ipv6 ospf nei FE80::C800:DFF:FE44:0 /*配置邻居时,需要link-local地址
ipv6 ospf nei FE80::C800:AFF:FE80:0
ipv6 ospf 1 area 0
int l 0
ipv6 ospf 1 area 0
end
R2
conf t
int l 0
ip ad 2.2.2.2 255.255.255.255
exit
ipv6 router ospf 1
exit
int l0
ipv6 ospf 1 area 0
exit
int s2/0
ipv6 ospf nei FE80::C800:8FF:FE90:0
ipv6 ospf priority 0
ipv6 ospf 1 area 0
end
R3
conf t
int l 0
ip ad 3.3.3.3 255.255.255.255
exit
ipv6 router ospf 1
exit
int l 0
ipv6 ospf 1 area 0
exit
int s2/0
ipv6 ospf priority 0
ipv6 ospf nei FE80::C800:8FF:FE90:0
ipv6 ospf 1 area 0
end
校验
R1#sh ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 0 FULL/DROTHER 00:01:54 4 Serial2/0 2.2.2.2 0 FULL/DROTHER 00:01:32 4 Serial2/0 R1#sh ipv route ospf IPv6 Routing Table - 8 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 FEC0:0:0:2::2/128 [110/64] via FE80::C800:DFF:FE44:0, Serial2/0 O FEC0:0:0:3::3/128 [110/64] via FE80::C800:AFF:FE80:0, Serial2/0 R2#sh ipv route ospf IPv6 Routing Table - 8 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 FEC0:0:0:1::1/128 [110/64] via FE80::C800:8FF:FE90:0, Serial2/0 O FEC0:0:0:3::3/128 [110/64] via FE80::C800:AFF:FE80:0, Serial2/0 R3#sh ipv6 route ospf IPv6 Routing Table - 8 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 FEC0:0:0:1::1/128 [110/64] via FE80::C800:8FF:FE90:0, Serial2/0 O FEC0:0:0:2::2/128 [110/64] via FE80::C800:DFF:FE44:0, Serial2/0 本文出自 “穿过地狱去看海” 博客,谢绝转载! 本文出自 51CTO.COM技术博客 |



cj231210
博客统计信息
热门文章
最新评论
友情链接

