IPV6配置
原创guofuqiangboy ©著作权
©著作权归作者所有:来自51CTO博客作者guofuqiangboy的原创作品,请联系作者获取转载授权,否则将追究法律责任
IPV6实验报告
一、实验目的
在路由器接口上配置IPv6地址,配置RIP路由,实现全网互通
二、实验拓扑
三、 实验步骤
路由器R1的配置如下:
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho R1
R1(config)#no ip domain-lookup
R1(config)#ipv6 unicast-routing 开启IPV6流量转发功能
R1(config)#int f0/0
R1(config-if)#ipv6 add FEC0:0:0:1001::1/64 配置f0/0的接口IP
R1(config-if)#int lo0
R1(config-if)#ipv6 add 1::1/64 配置loopback 0 的IP
R1(config-if)#no sh
R1(config-if)#int f0/0
R1(config-if)#no sh
R1(config-if)#ipv6 router rip bbb 指定IPV6的RIP路由器名为bbb
R1(config-rtr)#int f0/0
R1(config-if)#ipv6 rip bbb enable 在接口上应用IPV6的RIP路由协议
R1(config-if)#int lo0
R1(config-if)#ipv6 rip bbb enable 在接口上应用IPV6的RIP路由协议
R1(config-if)#exit
R1#sh ipv6 interface bri 查看IPV6的接口摘要信息
FastEthernet0/0 [up/up] 线路开启,协议开启
FE80::CE00:4FF:FEEC:0 自动配置的链路本地地址
FEC0:0:0:1001::1 手动配置的站点本地地址
FastEthernet1/0 [administratively down/down]
Loopback0 [up/up]
FE80::CE00:4FF:FEEC:0
1::1
R1#sh ipv6 ro
IPv6 Routing Table - 9 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 1::/64 [0/0]
via ::, Loopback0
L 1::1/128 [0/0]
via ::, Loopback0
R 2::/64 [120/2]
via FE80::CE00:FFF:FEB0:0, FastEthernet0/0
R 3::/64 [120/3]
via FE80::CE00:FFF:FEB0:0, FastEthernet0/0
L FE80::/10 [0/0]
via ::, Null0
C FEC0:0:0:1001::/64 [0/0]
via ::, FastEthernet0/0
L FEC0:0:0:1001::1/128 [0/0]
via ::, FastEthernet0/0
R FEC0:0:0:1002::/64 [120/2]
via FE80::CE00:FFF:FEB0:0, FastEthernet0/0
L FF00::/8 [0/0]
via ::, Null0
路由器R2的配置如下
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho R2
R2(config)#no ip domain-lo
R2(config)#ipv6 unicast-routing 开启IPV6流量转发功能
R2(config)#int f0/0
R2(config-if)#ipv6 add FEC0:0:0:1001::2/64
R2(config-if)#no sh
R2(config-if)#int f1/0
R2(config-if)#ipv6 add FEC0:0:0:1002::1/64
R2(config-if)#no sh
R2(config)#ipv6 router rip ccc 指定IPV6的RIP路由器名为ccc
R2(config-rtr)#int f0/0
R2(config-if)#ipv6 rip ccc enable
R2(config-if)#int f1/0
R2(config-if)#ipv6 rip ccc enable 在接口上应用IPV6的RIP路由协议
R2(config-if)#int lo0
R2(config-if)#ipv6 add 2::1/64
R2(config-if)#no sh
R2(config-if)#ipv6 rip ccc enable
R2(config-if)#exit
R2#sh ipv6 ro
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
R 1::/64 [120/2]
via FE80::CE00:4FF:FEEC:0, FastEthernet0/0
C 2::/64 [0/0]
via ::, Loopback0
L 2::1/128 [0/0]
via ::, Loopback0
R 3::/64 [120/2]
via FE80::CE00:EFF:FE7C :0, FastEthernet1/0
L FE80::/10 [0/0]
via ::, Null0
C FEC0:0:0:1001::/64 [0/0]
via ::, FastEthernet0/0
L FEC0:0:0:1001::2/128 [0/0]
via ::, FastEthernet0/0
C FEC0:0:0:1002::/64 [0/0]
via ::, FastEthernet1/0
L FEC0:0:0:1002::1/128 [0/0]
via ::, FastEthernet1/0
R2#sh ipv6 interface bri
FastEthernet0/0 [up/up]
FE80::CE00:FFF:FEB0:0
FEC0:0:0:1001::2
FastEthernet1/0 [up/up]
FE80::CE00:FFF:FEB0:10
FEC0:0:0:1002::1
Loopback0 [up/up]
FE80::CE00:FFF:FEB0:0
2::1
R2#
路由器R3的配置如下
R3>ter#conf t
R3>er configuration commands, one per line. End with CNTL/Z.
R3>ter(config)#ho R3
R3>config)#no ip domain-lookup
R3>config)#ipv6 unicast-routing 开启IPV6流量转发功能
R3>config)#ipv6 router rip aaa 指定IPV6的RIP路由器名为aaa
R3>config-rtr)#int f0/0
R3>config-if)#ipv6 add FEC0:0:0:1002::2/64
R3>config-if)#no sh
R3>config-if)#ipv6 rip aaa enable 在接口上应用IPV6的RIP路由协议
R3>config-if)#int lo0
R3>config-if)#ipv6 add 3::1/64
R3>config-if)#no sh
R3>config-if)#ipv6 rip aaa enable 在接口上应用IPV6的RIP路由协议
R3>config-if)#exit
R3#sh ipv6 ro
IPv6 Routing Table - 9 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 1::/64 [120/3]
via FE80::CE00:FFF:FEB0:10, FastEthernet0/0
R 2::/64 [120/2]
via FE80::CE00:FFF:FEB0:10, FastEthernet0/0
C 3::/64 [0/0]
via ::, Loopback0
L 3::1/128 [0/0]
via ::, Loopback0
L FE80::/10 [0/0]
via ::, Null0
R FEC0:0:0:1001::/64 [120/2]
via FE80::CE00:FFF:FEB0:10, FastEthernet0/0
C FEC0:0:0:1002::/64 [0/0]
via ::, FastEthernet0/0
L FEC0:0:0:1002::2/128 [0/0]
via ::, FastEthernet0/0
L FF00::/8 [0/0]
via ::, Null0
R3# FEC0:0:0:1002::2
FastEthernet1/0 [administratively down/down]
Loopback0 [up/up]
FE80::CE00:EFF:FE7C :0
3::1
测试路由器的连通性
R3#ping 1::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 356/358/360 ms
R3#ping 2::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/171/280 ms
R3#
四、实验结果
各路由器之间可以相互通信
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
IPv6配置
IPv6配置..
职场 IPv6 休闲 -
ipv6地址概述——配置ipv6
目录配置命令: 1.配置ip地址 在R1上:在R2上:在R3上:2.启用rip在R1上:在R2上:在R
网络 运维 R3 ip地址 连通性