ensp实验:DHCPv6中继实验(客户端侦听的UDP端口号是546;服务器、中继侦听的UDP端口号是547)
ensp实验:DHCPv6中继实验(客户端侦听的UDP端口号是546;服务器、中继侦听的UDP端口号是547)
电脑的发包的源端口是UDP546, 目标端口为547。
R1_dhcp_Sever_2023.01.12.09时42分45秒.txt
(1)拓扑图
(2)配置
R2:
ipv6
dhcp enable
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 192:168:1::1/96
dhcpv6 relay destination 172::200
#
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 201::2/96
ipv6 route-static :: 0 201::1
R1-dhcp server:
ipv6
dhcp enable
#
dhcpv6 pool pool192
address prefix 192:168:1::/96
excluded-address 192:168:1::1 to 192:168:1::99
dns-server 1:1::1
dns-server 1:1::2
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 172::200/16
dhcpv6 server pool192 #注意,在模拟器中,如果R1的g0/0/0接口不配置此命令,则pc1是获取不到ipv6地址的。
ipv6 route-static :: 0 172::1
sw1:
ipv6
interface Vlanif200
ipv6 enable
ipv6 address 200::1/96
#
interface Vlanif201
ipv6 enable
ipv6 address 201::1/96
interface GigabitEthernet0/0/1
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 201
ipv6 route-static :: 0 200::2
ipv6 route-static 192:168:1:: 96 201::2
sw2:
ipv6
interface Vlanif172
ipv6 enable
ipv6 address 172::1/96
#
interface Vlanif200
ipv6 enable
ipv6 address 200::2/96
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 172
ipv6 route-static 192:168:1:: 96 200::1
ipv6 route-static 201:: 96 200::1
(3)测试获取ipv6地址:成功
<R1_dhcp_Sever>display dhcpv6 pool pool192 allocated address
抓包:
客户端侦听的UDP端口号是546;服务器、中继侦听的UDP端口号是547。
IPv6(列表、list、全)ipv6list
http://www.zh-cjh.com/wenzhangguilei/1534.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » ensp实验:DHCPv6中继实验(客户端侦听的UDP端口号是546;服务器、中继侦听的UDP端口号是547)
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm