IPV6静态路由与RIPng配置

实验拓扑:

R1(s2/1)-(s2/1)R2(s2/2)-(s2/1)R3

一:静态路由配置:

R1#

ipv6 unicast-routing//启用IPv6的单播路由,默认关闭

interface Serial2/1

ipv6 address 12::1/64

ipv6 route 23::/64 Serial2/1//配置一条到23网段的静态路由

R2#

ipv6 unicast-routing

interface Serial2/1

ipv6 address 12::2/64

interface Serial2/2

ipv6 address 23::2/64

R3#

ipv6 unicast-routing

interface Serial2/1

ipv6 address 23::3/64

ipv6 route 12::/64 Serial2/1

R1#show ipv route

IPv6 Routing Table - 5 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

C12::/64 [0/0]

via ::, Serial2/1

L12::1/128 [0/0]

via ::, Serial2/1

S23::/64 [1/0]//收到了R3上的静态路由

via ::, Serial2/1

LFE80::/10 [0/0]

via ::, Null0

LFF00::/8 [0/0]

via ::, Null0

R2#show ipv 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

C12::/64 [0/0]

via ::, Serial2/1

L12::2/128 [0/0]

via ::, Serial2/1

C23::/64 [0/0]

via ::, Serial2/2

L23::2/128 [0/0]

via ::, Serial2/2

LFE80::/10 [0/0]

via ::, Null0

LFF00::/8 [0/0]

via ::, Null0

R3#show ipv route

IPv6 Routing Table - 5 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

S12::/64 [1/0]//收到了R1上的静态路由

via ::, Serial2/1

C23::/64 [0/0]

via ::, Serial2/1

L23::3/128 [0/0]

via ::, Serial2/1

LFE80::/10 [0/0]

via ::, Null0

LFF00::/8 [0/0]

via ::, Null0

R1#ping ipv6 23::3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 23::3, timeout is 2 seconds:

!!!!!//通了

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/76/112 ms

RIPng配置

实验配置:

R1#

ipv6 unicast-routing//启用IPV6的单播路由功能

interface Serial2/1

ipv6 address 12::1/64//在接口下配置IPV6地址

ipv6 rip A1 enable//在接口下启用RIPng,IPV4下配置RIP的区别

R2#

ipv6 unicast-routing

interface Serial2/1

ipv6 address 12::2/64

ipv6 rip A1 enable

interface Serial2/2

ipv6 address 23::2/64

ipv6 rip A1 enable

R3#

ipv6 unicast-routing

interface Serial2/1

ipv6 address 23::3/64

ipv6 rip A1 enable

R1#ping ipv6 23::3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 23::3, timeout is 2 seconds:

!!!!!//通了

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/76/112 ms