S5500交换机做核心交换,做dhcp服务器,配置了VLAN1,VLAN10,VLAN20,三个VLAN,划分了三个与之对应的dhcp地址池,发现有线直接降电脑接到交换机上面无法自动获取到IP地址;交换机的详细配置如下,希望指点迷津[H3C]dis current-configuration # version 5.20, Release 2221P26 # sysname H3C # clock timezone Beijing add 08:00:00 # irf mac-address persistent timer irf auto-update enable undo irf link-delay # domain default enable system # telnet server enable # ip ttl-expires enable ip unreachables enable # loopback-detection enable # web idle-timeout 30 # password-recovery enable # vlan 1 # vlan 10 # vlan 20 # vlan 30 # domain system access-limit disable state active idle-cut disable self-service-url disable # dhcp server ip-pool vlan1 network 192.168.0.0 mask 255.255.255.0 gateway-list 192.168.0.1 dns-list 202.106.195.68 202.106.46.151 223.5.5.5 expired day 0 hour 8 # dhcp server ip-pool vlan10 network 192.168.10.0 mask 255.255.255.0 gateway-list 192.168.10.1 dns-list 202.106.195.68 223.5.5.5 180.76.76.76 expired day 0 hour 8 # dhcp server ip-pool vlan20 network 192.168.20.0 mask 255.255.255.0 gateway-list 192.168.20.1 dns-list 202.106.195.68 202.106.46.151 223.5.5.5 180.76.76.76 expired day 0 hour 8 # dhcp server ip-pool vlan30 network 192.168.30.0 mask 255.255.255.0 gateway-list 192.168.30.1 dns-list 223.5.5.5 223.6.6.6 180.76.76.76 expired day 0 hour 8 # user-group system authorization-attribute level 3 group-attribute allow-guest # local-user admin password cipher $c$3$UUCVZGbDzN73LQEwMHPDfftchk04ARkq authorization-attribute level 3 service-type telnet service-type web # user-profile privilege # interface NULL0 # interface Vlan-interface1 ip address 192.168.0.1 255.255.255.0 # interface Vlan-interface10 ip address 192.168.10.1 255.255.255.0 # interface Vlan-interface20 ip address 192.168.20.1 255.255.255.0 # interface Vlan-interface30 ip address 192.168.30.1 255.255.255.0 # interface GigabitEthernet1/0/24 port link-mode route ip address 192.168.2.2 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge port access vlan 10 loopback-detection enable stp edged-port enable # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 10 loopback-detection enable stp edged-port enable # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 10 loopback-detection enable # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 10 loopback-detection enable # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 10 loopback-detection enable # interface GigabitEthernet1/0/6 port link-mode bridge port access vlan 10 loopback-detection enable # interface GigabitEthernet1/0/7 port link-mode bridge port access vlan 20 loopback-detection enable stp edged-port enable # interface GigabitEthernet1/0/8 port link-mode bridge port access vlan 20 loopback-detection enable stp edged-port enable # interface GigabitEthernet1/0/9 port link-mode bridge port access vlan 20 loopback-detection enable # interface GigabitEthernet1/0/10 port link-mode bridge port access vlan 20 loopback-detection enable # interface GigabitEthernet1/0/11 port link-mode bridge port access vlan 20 loopback-detection enable # interface GigabitEthernet1/0/12 port link-mode bridge port access vlan 20 loopback-detection enable # interface GigabitEthernet1/0/13 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/14 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/15 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/16 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/17 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/18 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/19 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/20 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/21 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/22 port link-mode bridge loopback-detection enable # interface GigabitEthernet1/0/23 port link-mode bridge port link-type trunk port trunk permit vlan all loopback-detection enable loopback-detection control enable loopback-detection per-vlan enable # interface GigabitEthernet1/0/25 port link-mode bridge shutdown loopback-detection enable # interface GigabitEthernet1/0/26 port link-mode bridge shutdown loopback-detection enable # interface GigabitEthernet1/0/27 port link-mode bridge shutdown loopback-detection enable # interface GigabitEthernet1/0/28 port link-mode bridge shutdown loopback-detection enable # ip route-static 0.0.0.0 0.0.0.0 192.168.2.1 # dhcp server forbidden-ip 192.168.10.1 dhcp server forbidden-ip 192.168.20.1 dhcp server forbidden-ip 192.168.0.1 # dhcp enable # ntp-service source-interface GigabitEthernet1/0/24 # load xml-configuration # load tr069-configuration # user-interface aux 0 user-interface vty 0 4 authentication-mode scheme user-interface vty 5 15 # return
[H3C]dis current-configuration
# version 5.20, Release 2221P26
# sysname H3C
# clock timezone Beijing add 08:00:00
# irf mac-address persistent timer irf auto-update enable undo irf link-delay
# domain default enable system
# telnet server enable
# ip ttl-expires enable ip unreachables enable
# loopback-detection enable
# web idle-timeout 30
# password-recovery enable
# vlan 1
# vlan 10
# vlan 20
# vlan 30
# domain system access-limit disable state active idle-cut disable self-service-url disable
# dhcp server ip-pool vlan1 network 192.168.0.0 mask 255.255.255.0 gateway-list 192.168.0.1 dns-list 202.106.195.68 202.106.46.151 223.5.5.5 expired day 0 hour 8
# dhcp server ip-pool vlan10 network 192.168.10.0 mask 255.255.255.0 gateway-list 192.168.10.1 dns-list 202.106.195.68 223.5.5.5 180.76.76.76 expired day 0 hour 8
# dhcp server ip-pool vlan20 network 192.168.20.0 mask 255.255.255.0 gateway-list 192.168.20.1 dns-list 202.106.195.68 202.106.46.151 223.5.5.5 180.76.76.76 expired day 0 hour 8
# dhcp server ip-pool vlan30 network 192.168.30.0 mask 255.255.255.0 gateway-list 192.168.30.1 dns-list 223.5.5.5 223.6.6.6 180.76.76.76 expired day 0 hour 8
# user-group system authorization-attribute level 3 group-attribute allow-guest
# local-user admin password cipher $c$3$UUCVZGbDzN73LQEwMHPDfftchk04ARkq authorization-attribute level 3 service-type telnet service-type web
# user-profile privilege
# interface NULL0
# interface Vlan-interface1 ip address 192.168.0.1 255.255.255.0
# interface Vlan-interface10 ip address 192.168.10.1 255.255.255.0
# interface Vlan-interface20 ip address 192.168.20.1 255.255.255.0
# interface Vlan-interface30 ip address 192.168.30.1 255.255.255.0
# interface GigabitEthernet1/0/24 port link-mode route ip address 192.168.2.2 255.255.255.0
# interface GigabitEthernet1/0/1 port link-mode bridge port access vlan 10 loopback-detection enable stp edged-port enable
# interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 10 loopback-detection enable stp edged-port enable
# interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 10 loopback-detection enable
# interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 10 loopback-detection enable
# interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 10 loopback-detection enable
# interface GigabitEthernet1/0/6 port link-mode bridge port access vlan 10 loopback-detection enable
# interface GigabitEthernet1/0/7 port link-mode bridge port access vlan 20 loopback-detection enable stp edged-port enable
# interface GigabitEthernet1/0/8 port link-mode bridge port access vlan 20 loopback-detection enable stp edged-port enable
# interface GigabitEthernet1/0/9 port link-mode bridge port access vlan 20 loopback-detection enable
# interface GigabitEthernet1/0/10 port link-mode bridge port access vlan 20 loopback-detection enable
# interface GigabitEthernet1/0/11 port link-mode bridge port access vlan 20 loopback-detection enable
# interface GigabitEthernet1/0/12 port link-mode bridge port access vlan 20 loopback-detection enable
# interface GigabitEthernet1/0/13 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/14 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/15 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/16 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/17 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/18 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/19 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/20 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/21 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/22 port link-mode bridge loopback-detection enable
# interface GigabitEthernet1/0/23 port link-mode bridge port link-type trunk port trunk permit vlan all loopback-detection enable loopback-detection control enable loopback-detection per-vlan enable
# interface GigabitEthernet1/0/25 port link-mode bridge shutdown loopback-detection enable
# interface GigabitEthernet1/0/26 port link-mode bridge shutdown loopback-detection enable
# interface GigabitEthernet1/0/27 port link-mode bridge shutdown loopback-detection enable
# interface GigabitEthernet1/0/28 port link-mode bridge shutdown loopback-detection enable
# ip route-static 0.0.0.0 0.0.0.0 192.168.2.1
# dhcp server forbidden-ip 192.168.10.1 dhcp server forbidden-ip 192.168.20.1 dhcp server forbidden-ip 192.168.0.1
# dhcp enable
# ntp-service source-interface GigabitEthernet1/0/24
# load xml-configuration
# load tr069-configuration
# user-interface aux 0 user-interface vty 0 4 authentication-mode scheme user-interface vty 5 15
# return
(0)
最佳答案
按照配置指导自己对一下,如果还是无法获取地址,可以dbeug dhcp看看有什么报错。h3c.com/cn/d_202004/1284839_30005_0.htm#_Toc37772430
(0)
配置表对照没发现缺少什么东西
如果是有些能获取到,有些获取不到,应该不是配置问题。建议debugging dhcp server all ,根据debug对照一下dhcp交换过程,看缺少哪一步。
最终的问题找到原因了,AC控制器是AC交换一体机,内部有聚合接口,没有配置AC端的端口聚合功能导致DHCP不正常,一个一个设备拔排查出来的,感谢各位工程师
(0)
您好,请知:
需确认下电脑直接接S5500交换机看是否能自动获取IP地址。如果都不能,需确认S5500上的VLAN已经下发到位,且完成了DHCP的部署。
如果在S5500上能获取IP地址,则需要往下排查看VLAN是否已下发到位。
(0)
电脑直连获取不到ip地址,但和交换机trunk互联的AC发射的对应无线可以获取到ip地址,有线的都拿不到ip地址,也不是都拿不到,网卡反复禁用启用几次可能就拿到IP了
电脑直连获取不到ip地址,但和交换机trunk互联的AC发射的对应无线可以获取到ip地址,有线的都拿不到ip地址,也不是都拿不到,网卡反复禁用启用几次可能就拿到IP了
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
如果是有些能获取到,有些获取不到,应该不是配置问题。建议debugging dhcp server all ,根据debug对照一下dhcp交换过程,看缺少哪一步。