IPv6的DHCP地址委派


简单的IPv6的DHCP地址委派实验

实验环境

该实验中,R1为DHCP server,R2和R3的所有接口都是通过自动获取的方式得到IP地址。

配置命令

R1

ipv6 unicast-routing
ipv6 dhcp pool DHCP-pool
 prefix-delegation pool dhcppool lifetime 1800 600
 dns-server 2012::1
 domain-name eagle
!
ipv6 local pool dhcppool 2023::/64 64
!
interface Ethernet0/0
 ipv6 address 2012::1/64
 ipv6 enable
 ipv6 dhcp server DHCP-pool

R2

interface Ethernet0/1
 ipv6 address eagle ::/64 eui-64
 ipv6 enable
!
interface Ethernet0/0
 ipv6 address autoconfig default
 ipv6 enable
 ipv6 dhcp client pd eagle

R3

interface Ethernet0/0
 ipv6 address autoconfig default
 ipv6 enable

实验现象

在R2上查看是否获得IPv6地址

R2#show ipv6 interface brief 
Ethernet0/0                [up/up]
    FE80::CE01:1BFF:FEF0:0
    2012::CE01:1BFF:FEF0:0
Ethernet0/1                [up/up]
    FE80::CE01:1BFF:FEF0:1
    2023::CE01:1BFF:FEF0:1
Ethernet0/2                [administratively down/down]
Ethernet0/3                [administratively down/down]

在R2上查看是否获得eagle的前缀

R2#show ipv6 dhcp interface 
Ethernet0/0 is in client mode
  State is OPEN
  Renew will be sent in 00:02:44
  List of known servers:
    Reachable via address: 2012::1
    DUID: 00030001CC001BF00000
    Preference: 0
    Configuration parameters:
      IA PD: IA ID 0x00040001, T1 300, T2 480
        Prefix: 2023::/64
                preferred lifetime 600, valid lifetime 1800
                expires at Mar 01 2002 12:56 AM (1665 seconds)
      DNS server: 2012::1
      Domain name: eagle
  Prefix name: eagle
  Rapid-Commit: disabled

检查R3是否获得IPv6地址

R3#show ipv6 interface brief 
Ethernet0/0                [up/up]
    FE80::CE02:1BFF:FEF0:0
    2023::CE02:1BFF:FEF0:0
Ethernet0/1                [administratively down/down]
Ethernet0/2                [administratively down/down]
Ethernet0/3                [administratively down/down]

在R3上检查到R1的连通性

R3#ping 2012::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2012::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/40/56 

文章作者: AaronXu
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 AaronXu !
评论
  目录