13.3 DHCIPv6

图片[1]-13.3 DHCIPv6-大赛人网
图13-20 IPV6配置网络拓扑

1.R1 IPV6基本配置

[R1]ipv6
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 address auto link-local
//配置自动生成的链路本地地址

2.R2 IPV6基本配置

[R2]ipv6
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ipv6 enable
[R2-GigabitEthernet0/0/0]ipv6 address auto link-local

[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ipv6 enable
[R2-GigabitEthernet0/0/1]ipv6 address auto link-local

3.R3 IPV6基本配置

[R3]ipv6
[R3]interface GigabitEthernet 0/0/1 
[R3-GigabitEthernet0/0/1]ipv6 enable
[R3-GigabitEthernet0/0/1]ipv6 address auto link-local

4.R1查看接口的IPv6状态信息

[R1]display ipv6 interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FEA2:4F0C
  No global unicast address configured
  Joined group address(es):
    FF02::1:FFA2:4F0C
    FF02::2
    FF02::1
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  ND advertised reachable time is 0 milliseconds
  ND advertised retransmit interval is 0 milliseconds
  ND router advertisement max interval 600 seconds, min interval 200 seconds
  ND router advertisements live for 1800 seconds
  ND router advertisements hop-limit 64
  ND default router preference medium
  Hosts use stateless autoconfig for addresses

5.R2查看接口的IPv6状态信息

[R2]display ipv6 interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP 
IPv6 protocol current state : UP
IPv6 is enabled, link-local address is FE80::2E0:FCFF:FE66:3BFD
  No global unicast address configured
  Joined group address(es):
    FF02::1:FF66:3BFD
    FF02::2
    FF02::1
  MTU is 1500 bytes
  ND DAD is enabled, number of DAD attempts: 1
  ND reachable time is 30000 milliseconds
  ND retransmit interval is 1000 milliseconds
  Hosts use stateless autoconfig for addresses

6.测试R1与R2联通性

[R1]ping ipv6 FE80::2E0:FCFF:FE66:3BFD -i GigabitEthernet 0/0/0
  PING FE80::2E0:FCFF:FE66:3BFD : 56  data bytes, press CTRL_C to break
    Reply from FE80::2E0:FCFF:FE66:3BFD 
    bytes=56 Sequence=1 hop limit=64  time = 150 ms

7.配置R2的静态IPv6地址

[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ipv6 address 2001:12::2 64

[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ipv6 address 2001:23::2 64

8.的DHCPv6 Server功能[R2]dhcp enable

[R2]dhcpv6 pool dsrwpool
//创建名为“dsrwpool”的地址池
[R2-dhcpv6-pool-dsrwpool]address prefix 2001:0023::/64
//配置分配的IPv6地址前缀
[R2-dhcpv6-pool-dsrwpool]dns-server 2001:23::2
//配置DNS Server地址
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]dhcpv6 server dsrwpool

9.配置R3通过DHCPv6获取IPv6地址配置R2(DHCPv6服务器不会为DHCPv6客户端分配IPv6网关地址)

[R3]dhcp enable 
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ipv6 address auto dhcp 
[R3]display ipv6 interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface                    Physical              Protocol   
GigabitEthernet0/0/1         up                    up         
[IPv6 Address] 2001:23::1
[R3]display dns server
Type:
D:Dynamic     S:Static

No configured ip dns servers.

No.  Type  IPv6 Address                             Interface Name
1     D    2001:23::2     
© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容