设为首页收藏本站language 语言切换
查看: 2097|回复: 3
收起左侧

[分享] 思科实验-DHCPv6

[复制链接]
 成长值: 64315
发表于 2022-12-29 21:31:21 | 显示全部楼层 |阅读模式


实验环境:
操作系统: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.

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-4 18:57 , Processed in 0.089417 second(s), 23 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表