核心交换机:
[HX]dis cu
[HX]dis current-configuration
version 7.1.075, Alpha 7571
sysname HX
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
dhcp enable
lldp global enable
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
vlan 1
vlan 10
description ap_yeng
vlan 20
description ap_guest
vlan 100
description AC_conter
vlan 999
dhcp server ip-pool vlan10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
dns-list 8.8.8.8
dhcp server ip-pool vlan20
gateway-list 192.168.20.1
network 192.168.20.0 mask 255.255.255.0
dns-list 8.8.8.8
dhcp server ip-pool vlan100
gateway-list 172.16.0.1
network 172.16.0.0 mask 255.255.255.0
dns-list 8.8.8.8
option 43 hex 80070000010a000002
option 43 解释:
例如参考如下:
07:表示后面有 7 位(两个数字为一位),如果携带两台 AC 地址,则该字段为 0B;
01:表示携带的 AC IP 数量,如果是两台 AC,则该字段为 02;
C0 A8 01 01:AC 地址的十六进制字符;可以使用 windows 电脑自带的计算器将十进制换算为十六进制。方法如下:
#AC 的地址是 192.168.1.1,首先将计算器修改为“程序员”模式:
#使用一样的方法,分别 168、1、1 的十六进制计算出来,分别为:A8、01、01。所以 192.168.1.1 对应的十六进制值为 C0 A8 01 01。
interface NULL0
interface Vlan-interface10
ip address 192.168.10.1 255.255.255.0
dhcp server apply ip-pool vlan10
interface Vlan-interface20
ip address 192.168.20.1 255.255.255.0
dhcp server apply ip-pool vlan20
interface Vlan-interface100
ip address 172.16.0.1 255.255.255.0
dhcp server apply ip-pool vlan100
interface Vlan-interface999
ip address 10.0.0.1 255.255.255.0
interface FortyGigE1/0/53
port link-mode bridge
interface FortyGigE1/0/54
port link-mode bridge
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit v