IPv6实验配置步骤

实验拓扑图:

IPv6实验配置步骤_第1张图片

实验配置思路:

  1. 在路由器上全局开启IPv6功能
  2. 在路由器接口上开启IPv6功能
  3. 配置IPv6地址
  4. 运行静态路由、缺省路由使两台PC通信

实验摘要重点命令:

[R1]ipv6     //开启IPv6  
[R1]int g0/0/0     //进入接口
[R1-GigabitEthernet0/0/0]ipv6 enable     //开启IPv6 
[R1-GigabitEthernet0/0/0]ipv6 address 12::1 64     //配置IPv6地址
[R1-GigabitEthernet0/0/0]quit     //退出

实验详细配置步骤:

配置接口IPv6地址

R1——配置接口IP地址

system-view     //进入全局配置模式 
[Huawei]undo info-center enable     //关闭信息告警提示 
[Huawei]sysname R1     //改名	
[R1]ipv6     //开启IPv6  
[R1]int g0/0/0     //进入接口
[R1-GigabitEthernet0/0/0]ipv6 enable     //开启IPv6 
[R1-GigabitEthernet0/0/0]ipv6 address 12::1 64     //配置IPv6地址
[R1-GigabitEthernet0/0/0]quit     //退出
[R1]int g0/0/1     //进入接口
[R1-GigabitEthernet0/0/1]ipv6 enable     //开启IPv6 
[R1-GigabitEthernet0/0/1]ipv6 address 2001::1 64     //配置IPv6地址
[R1-GigabitEthernet0/0/1]quit     //退出
[R1]

R2——配置接口IP地址

system-view     //进入全局配置模式  
[Huawei]undo info-center enable     //关闭信息告警提示 
[Huawei]sysname R2     //改名
[R2]ipv6     //开启IPv6 
[R2]int g0/0/0     //进入接口
[R2-GigabitEthernet0/0/0]ipv6 enable     //开启IPv6 
[R2-GigabitEthernet0/0/0]ipv6 address 12::2 64     //配置IPv6地址
[R2-GigabitEthernet0/0/0]quit     //退出
[R2]int g0/0/1     //进入接口
[R2-GigabitEthernet0/0/1]ipv6 enable     //开启IPv6 
[R2-GigabitEthernet0/0/1]ipv6 address 2002::1 64     //配置IPv6地址
[R2-GigabitEthernet0/0/1]quit     //退出
[R2]

查看接口IPv6地址

R1——查看接口IPv6地址

[R1]dis ipv6 interface brief     //查看接口IPv6地址 
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/0         up                    up         
[IPv6 Address] 12::1
GigabitEthernet0/0/1         up                    up         
[IPv6 Address] 2001::1
[R1]

配置静态路由

R1——配置去往PC2的静态路由

[R1]ipv6 route-static 2002:: 64 12::2

配置缺省路由

R2——配置去往PC1的缺省路由

[R2]ipv6 route-static :: 0 12::1

测试

PC1——测试是否可以ping通PC2设备

PC>ping 2002::2

Ping 2002::2: 32 data bytes, Press Ctrl_C to break
From 2002::2: bytes=32 seq=1 hop limit=253 time=16 ms
From 2002::2: bytes=32 seq=2 hop limit=253 time=31 ms
From 2002::2: bytes=32 seq=3 hop limit=253 time=16 ms
From 2002::2: bytes=32 seq=4 hop limit=253 time=16 ms
From 2002::2: bytes=32 seq=5 hop limit=253 time=16 ms

--- 2002::2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/19/31 ms

PC>

你可能感兴趣的:(#,IPv6,IPv6,静态路由,缺省路由,IP)