很久没有更新了,不过还好没老在家里宅着,出去玩了两天,今天把ipv6的CCNP内容整理一下。
一、OSPFv3
1.配置
r2#sh run
ipv6 unicast-routing
!
!没别的,开启ipv6单播转发
!
!
interface Loopback0
no ip address
ipv6 address 2002:4FFE::1/128
ipv6 ospf 11 area 2
!
!ipv6中,只有在端口下开ospf这一种方式(据我所知哈)
!
interface Ethernet0/0
no ip address
half-duplex
ipv6 address 2002:3FFE::2/64
ipv6 ospf 11 area 0
!
ipv6 router ospf 11
router-id 2.2.2.2
log-adjacency-changes
!
!router-id还是需要点分十进制表示,否则报错
r1#sh run
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2002:2FFE::2/128
ipv6 ospf 11 area 1
!
interface Ethernet0/0
no ip address
half-duplex
ipv6 address 2002:3FFE::1/64
ipv6 ospf 11 area 0
!
ip http server
no ip http secure-server
!
!
!
ipv6 router ospf 11
router-id 1.1.1.1
log-adjacency-changes
2.验证
r1#p ipv 2002:4ffe::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:4FFE::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/171/460 ms
r2#sh ipv6 os nei
Neighbor ID Pri State Dead Time Interface ID Interface
1.1.1.1 1 FULL/DR 00:00:32 4 Ethernet0/0
二、RIPng
1.配置
r2#sh run
ipv6 unicast-routing
!
!
interface Loopback0
no ip address
ipv6 address 2002:4FFE::1/128
ipv6 rip loneblog enable
!
interface Ethernet0/0
no ip address
half-duplex
ipv6 address 2002:3FFE::2/64
ipv6 rip loneblog enable
!
ip http server
no ip http secure-server
!
!
!
ipv6 router rip loneblog
!
!和v4不同的是需要指定一个进程名
r1#sh run
ipv6 unicast-routing
!
!
interface Loopback0
no ip address
ipv6 address 2002:2FFE::2/128
ipv6 rip loneblog enable
!
interface Ethernet0/0
no ip address
half-duplex
ipv6 address 2002:3FFE::1/64
ipv6 rip loneblog enable
!
ip http server
no ip http secure-server
!
!
!
ipv6 router rip loneblog
2.验证
r2#sh ipv6 route
IPv6 Routing Table – 6 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
R 2002:2FFE::2/128 [120/2]
via FE80::CE00:7FF:FE7C:0, Ethernet0/0
C 2002:3FFE::/64 [0/0]
via ::, Ethernet0/0
L 2002:3FFE::2/128 [0/0]
via ::, Ethernet0/0
LC 2002:4FFE::1/128 [0/0]
via ::, Loopback0
L FE80::/10 [0/0]
via ::, Null0
L FF00::/8 [0/0]
via ::, Null0
r2#ping ipv 2002:2ffe::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002:2FFE::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/168/396 ms
r2#sh ipv6 rip dat
r2#sh ipv6 rip database
RIP process "loneblog", local RIB
2002:2FFE::2/128, metric 2, installed
Ethernet0/0/FE80::CE00:7FF:FE7C:0, expires in 154 secs
2002:3FFE::/64, metric 2
Ethernet0/0/FE80::CE00:7FF:FE7C:0, expires in 154 secs




评论