dia0 电信拨号
ge1/0/1(3层模式) 移动宽带自动获取(已去除ipv4)
ge1/0/1 如何设置给客户端电脑发 ipv6全球地址?
dia0 电信拨号
ge1/0/1 移动宽带自动获取(已去除ipv4)
ge1/0/1 如何设置给客户端电脑发 ipv6全球地址?
(0)
· 作为DHCPv6服务器的AC为AP分配1::1:0:0:0/96网段、客户端分配1::2:0:0:0/96网段的IPv6地址;
· AC的两个VLAN接口Vlan-interface10和Vlan-interface20的地址分别为1::1:0:0:1/96和1::2:0:0:1/96。
图2-5 DHCPv6动态分配IPv6地址组网图
(1) 配置DHCPv6 server各接口的IPv6地址。取消设备发布RA消息的抑制。配置被管理地址的配置标志位为1,即主机通过DHCPv6服务器获取IPv6地址。配置其他信息配置标志位为1,即主机通过DHCPv6服务器获取除IPv6地址以外的其他信息
<AC> system-view
[AC] vlan 10
[AC-vlan10] quit
[AC] vlan 20
[AC-vlan20] quit
[AC] interface vlan-interface 10
[AC-Vlan-interface10] ipv6 address 1::1:0:0:1/96
[AC-Vlan-interface10] undo ipv6 nd ra halt
[AC-Vlan-interface10] ipv6 nd autoconfig managed-address-flag
[AC-Vlan-interface10] ipv6 nd autoconfig other-flag
[AC-Vlan-interface10] quit
[AC] interface vlan-interface 20
[AC-Vlan-interface20] ipv6 address 1::2:0:0:1/96
[AC-Vlan-interface20] undo ipv6 nd ra halt
[AC-Vlan-interface20] ipv6 nd autoconfig managed-address-flag
[AC-Vlan-interface20] ipv6 nd autoconfig other-flag
[AC-Vlan-interface20] quit
(2) 配置端口属于VLAN及对应VLAN接口的IP地址
# 将与AP连接的接口加入VLAN10中。
[AC] interface gigabitethernet 1/0/2
[AC-GigabitEthernet1/0/2] port link-type trunk
[AC-GigabitEthernet1/0/2] port trunk permit vlan 10
[AC-GigabitEthernet1/0/2] port trunk pvid vlan 10
[AC-GigabitEthernet1/0/2] quit
(3) 配置无线服务
# 配置无线服务模板并把服务模板加入VLAN20中。
[AC] wlan service-template service
[AC-wlan-st-service] ssid service
[AC-wlan-st-service] vlan 20
[AC-wlan-st-service] service-template enable
[AC-wlan-st-service] quit
# 配置AP。
[AC] wlan ap ap1 model WA6320
[AC-wlan-ap-ap1] serial-id 219801A28N819CE0002T
[AC-wlan-ap-ap1] radio 1
[AC-wlan-ap-ap1-radio-1] service-template service
[AC-wlan-ap-ap1-radio-1] radio enable
[AC-wlan-ap-ap1-radio-1] return
(4) 配置DHCPv6服务
# 配置接口Vlan-interface10和Vlan-interface20工作在DHCPv6服务器模式。
[AC] interface vlan-interface 10
[AC-Vlan-interface10] ipv6 dhcp select server
[AC-Vlan-interface10] ipv6 dhcp server apply pool 1
[AC-Vlan-interface10] quit
[AC] interface vlan-interface 20
[AC-Vlan-interface20] ipv6 dhcp select server
[AC-Vlan-interface20] ipv6 dhcp server apply pool 2
[AC-Vlan-interface20] quit
# 配置DHCPv6地址池1,为1::1:0:0:0/96网段的客户端分配IPv6地址等参数。
[AC] ipv6 dhcp pool 1
[AC-dhcp6-pool-1] network 1::1:0:0:0/96
[AC-dhcp6-pool-1] gateway-list 1::1:0:0:1
[AC-dhcp6-pool-1] quit
# 配置DHCPv6地址池2,为1::2:0:0:0/96网段的客户端分配IPv6地址等参数。
[AC] ipv6 dhcp pool 2
[AC-dhcp6-pool-2] network 1::2:0:0:0/96
[AC-dhcp6-pool-2] gateway-list 1::2:0:0:1
[AC-dhcp6-pool-2] quit
配置完成后,1::1:0:0:0/96和1::2:0:0:0/96网段的AP和客户端可以从DHCPv6服务器AC申请到相应网段的IPv6地址和网络配置参数。通过display ipv6 dhcp server ip-in-use命令可以查看DHCPv6服务器为客户端分配的IPv6地址。
(0)
这个不对啊
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
这个不对啊