IPv6 基本配置

IPv6 基本配置
5.1 问题
如图配置IPv6地址
查看并测试IPv6接口和连通性
确保 PC-1 和 PC-2 互通
5.2 方案
搭建实验环境,如图-5所示。

IPv6 基本配置_第1张图片
图-5

5.3 步骤
实现此案例需要按照如下步骤进行。

1)配置终端设备

PC-1:
   2001:11::1 
   64
   2001:11::254
PC-2:
   2001:22::1 
   64
   2001:22::254

2)配置网络设备

>undo terminal monitor 
>system-view 
[Huawei]sysname R1
[R1]ipv6
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable 
[R1-GigabitEthernet0/0/0]ipv6 address 2001:12::1 64
[R1-GigabitEthernet0/0/0]quit
[R1]interface GigabitEthernet 0/0/2
[R1-GigabitEthernet0/0/2]ipv6 enable 
[R1-GigabitEthernet0/0/2]ipv6 address 2001:11::254 64
[R1-GigabitEthernet0/0/2]quit
>undo terminal monitor 
>system-view 
[Huawei]sysname R2
[R2]ipv6
[R2]interface GigabitEthernet 0/0/01
[R2-GigabitEthernet0/0/1]ipv6 enable 
[R2-GigabitEthernet0/0/1]ipv6 address 2001:12::2 64
[R2-GigabitEthernet0/0/1]quit
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ipv6 enable 
[R2-GigabitEthernet0/0/0]ipv6 address 2001:23::2 64
[R2-GigabitEthernet0/0/0]quit
>undo terminal monitor 
>system-view 
[Huawei]sysname R3
[R3]ipv6
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ipv6 enable 
[R3-GigabitEthernet0/0/0]ipv6 address 2001:23::3 64
[R3-GigabitEthernet0/0/0]quit
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]ipv6 enable 
[R3-GigabitEthernet0/0/2]ipv6 address 2001:22::254 64
[R3-GigabitEthernet0/0/2]quit

3)配置IPv6路由条目

[R1]ipv6 route-static  :: 0 2001:12::2
[R3]ipv6 route-static  :: 0 2001:23::2
[R2] ipv6 route-static 2001:11:: 64  2001:12::1
[R2] ipv6 route-static 2001:22:: 64  2001:23::3

4)测试 PC-1 与 PC2 的连通性

PC-1>ping 2001:22::1
Ping 2001:22::1: 32 data bytes, Press Ctrl_C to break
From 2001:22::1: bytes=32 seq=1 hop limit=254 time<1 ms
From 2001:22::1: bytes=32 seq=2 hop limit=254 time=15 ms
From 2001:22::1: bytes=32 seq=3 hop limit=254 time=16 ms
From 2001:22::1: bytes=32 seq=4 hop limit=254 time=15 ms
From 2001:22::1: bytes=32 seq=5 hop limit=254 time=16 ms
--- 2001:22::1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 0/12/16 ms
PC-2>ping 2001:11::1
Ping 2001:11::1: 32 data bytes, Press Ctrl_C to break
From 2001:11::1: bytes=32 seq=1 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=2 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=3 hop limit=254 time=15 ms
From 2001:11::1: bytes=32 seq=4 hop limit=254 time=16 ms
From 2001:11::1: bytes=32 seq=5 hop limit=254 time=15 ms
--- 2001:11::1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 15/15/16 ms

你可能感兴趣的:(操作实例,理论,华为路由器)