IPv6实验

1.1 实验任务
在路由器接口上配置 IPv6 地址,配置 RIP 路由
 
1.2 实验环境和网络拓扑
IPv6 地址规划
 
R1
R2
R3
F0/0
FEC0:0:0:1001::1/64
FEC0:0:0:1001::2/64
--
F1/1
--
FEC0:0:0:1002::1/64
FEC0:0:0:1002::2/64
Loopback 0
1111:1:1:1111::1/64:
--
--
 
1.3 完成标准
(1)    按照拓扑图要求连接路由器,配置路由器接口 IPv6 地址,检查 IPv6 路由表
(2)    在路由器上配置 IPv6 RIP 协议,检查连通性
 
 
2 .详细操作步骤
 
Step 1: 配置路由器接口 IPv6 地址并检查路由表
 
路由器 R1 配置如下:
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ho R1
R1(config)#int lo 0
R1(config-if)#ipv6 address 1111:1:1:1111::1/64                   //Loopback 0 IPv6 地址
R1(config-if)#int f0/0
R1(config-if)#ipv6 address FEC0:0:0:1001::1/64                // 接口 F0/0 IPv6 地址
R1(config-if)#no shut
*Jan  1 16:37:38.135: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jan  1 16:37:39.135: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)#do show ipv6 interface brief                           // 显示配置了 IPv6 的接口概要信息
FastEthernet0/0            [up/up]                              //F0/0      [ 线路开启 / 协议开启 ]
    FE80::C800:BFF:FE40:0                                    // 自动配置的链路本地地址
    FEC0:0:0:1001::1                                                     // 手动配置的站点本地地址
FastEthernet1/0            [administratively down/down]
    unassigned
FastEthernet1/1            [administratively down/down]
    unassigned
Loopback0                  [up/up]
    FE80::C800:BFF:FE40:0
    1111:1:1:1111::1
 
路由器 R2 配置如下:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ho R2
R2(config)#int f0/0
R2(config-if)#ipv6 add FEC0:0:0:1001::2/64
R2(config-if)#no shut
*Jan  1 16:38:22.731: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Jan  1 16:38:23.731: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#int f1/1
R2(config-if)#ipv6 add FEC0:0:0:1002::1/64
R2(config-if)#no shut
*Jan  1 16:38:57.743: %LINK-3-UPDOWN: Interface FastEthernet1/1, changed state to up
*Jan  1 16:38:58.743: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed state to up
R2(config-if)#exit
 
路由器 R3 配置如下:
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ho R3
R3(config)#int f1/1
R3(config-if)#ipv6 add FEC0:0:0:1002::2/64
R3(config-if)#no shut
*Jan  1 16:39:40.271: %LINK-3-UPDOWN: Interface FastEthernet1/1, changed state to up
*Jan  1 16:39:41.271: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed state to up
R3(config-if)#exit
 
Step 2: 配置路由器 IPv6 RIP
       (1) 在路由器 R1 R2 R3 上配置 IPv6 RIP 路由
 
路由器 R1 配置如下:
R1(config)#ipv6 unicast-routing                                       // 启动路由器上 IPv6 RIP 路由协议
R1(config)#ipv6 router rip r1                                           // 指定 IPv6 RIP 路由名为 r1
R1(config-rtr)#exit
R1(config)#int lo 0
R1(config-if)#ipv6 rip r1 enable                                       // 在接口上应用 IPv6 RIP 协议
R1(config-if)#int f0/0
R1(config-if)#ipv6 rip r1 enable
R1(config-if)#exit
 
路由器 R2 配置如下:
R2(config)#ipv6 uni
R2(config)#ipv6 router rip r2
R2(config-rtr)#exit
R2(config)#int f0/0
R2(config-if)#ipv6 rip r2 enable
R2(config-if)#int f1/1
R2(config-if)#ipv6 rip r2 enable
R2(config-if)#exit
R2(config)#do show ipv6 route                                       // 查看 IPv6 的路由表
IPv6 Routing Table - 7 entries                                          //IPv6 路由表 �C 7 条记录
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   1111:1:1:1111::/64 [120/2]                                         // R1 Loopback 0 RIP 路由
     via FE80::C800:BFF:FE40:0, FastEthernet0/0            // 通过链路本地地址 FE90::C800:BFF:FF40:0, F0/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/1
L   FEC0:0:0:1002::1/128 [0/0]
     via ::, FastEthernet1/1
L   FF00::/8 [0/0]
     via ::, Null0
R2(config)#
 
路由器 R3 配置如下:
R3(config)#ipv6 router rip r3
R3(config-rtr)#exit
R3(config)#int f1/1
R3(config-if)#ipv6 rip r3 enable
R3(config-if)#exit
 
(3)    检查网络连通性
 
路由器 R1 连通性如下:
R1(config)#do ping FEC0:0:0:1002::2
//R3 的站点本地地址
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FEC0:0:0:1002::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/64/164 ms
 
路由器 R3 连通性如下:
R3(config)#do ping FEC0:0:0:1001::1
//R1 的站点本地地址
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FEC0:0:0:1001::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/53/104 ms
R3(config)#do ping 1111:1:1:1111::1
//R1 Loopback 0 地址
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1111:1:1:1111::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 18/62/112 ms

你可能感兴趣的:(职场,ipv6,休闲,实验)