• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

S5500 交换机配置了三层功能,做dhcp服务,网线直连的电脑无法自动获取IP地址

2020-07-20提问
  • 0关注
  • 1收藏,2315浏览
粉丝:0人 关注:0人

问题描述:

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


最佳答案

粉丝:5人 关注:0人

按照配置指导自己对一下,如果还是无法获取地址,可以dbeug dhcp看看有什么报错。h3c.com/cn/d_202004/1284839_30005_0.htm#_Toc37772430

回复Forever Love:

如果是有些能获取到,有些获取不到,应该不是配置问题。建议debugging dhcp server all ,根据debug对照一下dhcp交换过程,看缺少哪一步。

苦逼网工 发表时间:2020-07-20 更多>>

配置表对照没发现缺少什么东西

Forever Love 发表时间:2020-07-20
回复Forever Love:

如果是有些能获取到,有些获取不到,应该不是配置问题。建议debugging dhcp server all ,根据debug对照一下dhcp交换过程,看缺少哪一步。

苦逼网工 发表时间:2020-07-20
3 个回答
粉丝:11人 关注:1人

你好,我在你的配置中没看到你在全局中开启dhcp enable

例如:[H3C]dhcp enable

Forever Love 知了小白
粉丝:0人 关注:0人

最终的问题找到原因了,AC控制器是AC交换一体机,内部有聚合接口,没有配置AC端的端口聚合功能导致DHCP不正常,一个一个设备拔排查出来的,感谢各位工程师


粉丝:135人 关注:6人

您好,请知:

需确认下电脑直接接S5500交换机看是否能自动获取IP地址。如果都不能,需确认S5500上的VLAN已经下发到位,且完成了DHCP的部署。

如果在S5500上能获取IP地址,则需要往下排查看VLAN是否已下发到位。

电脑直连获取不到ip地址,但和交换机trunk互联的AC发射的对应无线可以获取到ip地址,有线的都拿不到ip地址,也不是都拿不到,网卡反复禁用启用几次可能就拿到IP了

Forever Love 发表时间:2020-07-20 更多>>

电脑直连获取不到ip地址,但和交换机trunk互联的AC发射的对应无线可以获取到ip地址,有线的都拿不到ip地址,也不是都拿不到,网卡反复禁用启用几次可能就拿到IP了

Forever Love 发表时间:2020-07-20

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明