【实验】DHCPv6

DHCPv6
DHCPv6

实验环境:

操作系统:Mac OS X 10.11.5 Beta 1(当时最新测试版),模拟器:GNS3 IOU for Mac 1.4.5(当时最新版本)
注:当然,只要有思科模拟器都可以做这个实验

实验步骤:

R1:

conf t
ipv6 unicast-routing

ipv6 dhcp pool ABC
address prefix 100::/64
domain-name ccie.lol

int f 0/0
ipv6 add 12::1/64
ipv6 dhcp server ABC
ipv6 nd ra suppress
no sh

R2:

conf t
ipv6 unicast-routing

int f 0/0
ipv6 enable
ipv6 address dhcp
no sh

测试:

R2(config-if)#do sh ipv6 interface f 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C802:4FF:FEBF:0
No Virtual link-local address(es):
Global unicast address(es):
100::E922:1289:2115:3E81, subnet is 100::E922:1289:2115:3E81/128 [TEN] —— 从DHCP
获取到地址
Joined group address(es):
 FF02::1
 FF02::2
 FF02::1:FF15:3E81
 FF02::1:FFBF:0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND advertised reachable time is 0 (unspecified)
ND advertised retransmit interval is 0 (unspecified)
ND router advertisements are sent every 200 seconds
ND router advertisements live for 1800 seconds
ND advertised default router preference is Medium
Hosts use stateless autoconfig for addresses.

如果R1的配置改成下面的,收到的地址将是12::/64网段的IPv6地址:

ipv6 dhcp pool ABC
 address prefix 12::/64
R2#sh ipv6 interface f 0/0
FastEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C802:4FF:FEBF:0
No Virtual link-local address(es):
Global unicast address(es):
12::F9F8:3077:198:E3E0, subnet is 12::F9F8:3077:198:E3E0/128  —— 从DHCP获取到地址
Joined group address(es):
 FF02::1
 FF02::2
 FF02::1:FF98:E3E0
 FF02::1:FFBF:0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND advertised reachable time is 0 (unspecified)
ND advertised retransmit interval is 0 (unspecified)
ND router advertisements are sent every 200 seconds
ND router advertisements live for 1800 seconds
ND advertised default router preference is Medium
Hosts use stateless autoconfig for addresses.

 

其他相关文章:

打赏作者
这里是 “ CCIE 工程师社区 ” 官方的捐款通道,您是否可以考虑请我们喝杯咖啡呢?

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

Was this article helpful?

Related Articles

Leave A Comment?

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据