DHCP 拿不到IP

发布于 2022-09-30 11:47:56 字数 6014 浏览 13 评论 0

Building configuration...

Current configuration : 4651 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname CTCQ-SW3750-12s-1
!
!
no aaa new-model
switch 1 provision ws-c3750g-12s
system mtu routing 1500
ip subnet-zero
ip routing
ip dhcp excluded-address 192.168.161.240 192.168.162.253
ip dhcp excluded-address 192.168.163.240 192.168.163.253
ip dhcp excluded-address 192.168.164.240 192.168.164.253
ip dhcp excluded-address 192.168.165.240 192.168.165.253
ip dhcp excluded-address 192.168.166.240 192.168.166.253
ip dhcp excluded-address 192.168.167.240 192.168.167.253
ip dhcp excluded-address 192.168.168.240 192.168.168.253
ip dhcp excluded-address 192.168.169.240 192.168.169.253
ip dhcp excluded-address 192.168.171.240 192.168.171.253
ip dhcp excluded-address 192.168.162.240 192.168.162.253
!
ip dhcp pool Wireless
   network 192.168.161.0 255.255.255.0
   default-router 192.168.161.254
   dns-server 192.168.96.234
!
ip dhcp pool 9#4/F
   network 192.168.163.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.163.254
!
ip dhcp pool 9#3/F
   network 192.168.164.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.164.254
!
ip dhcp pool 9#2/F
   network 192.168.165.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.165.254
!
ip dhcp pool 9#1/F
   network 192.168.166.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.166.254
!
ip dhcp pool 8#1/F
   network 192.168.167.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.167.254
!
ip dhcp pool 8#2/F
   network 192.168.168.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.168.254
!
ip dhcp pool 8#3/F
   network 192.168.169.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.169.254
!
ip dhcp pool 8#4/F
   network 192.168.170.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.170.254
!
ip dhcp pool 8#5/F
   network 192.168.171.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.171.254
!
ip dhcp pool 9#5/F
   network 192.168.162.0 255.255.255.0
   dns-server 192.168.96.234
   default-router 192.168.162.254
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/7
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/9
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/10
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/11
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/12
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan160
ip address 192.168.160.254 255.255.255.0
!
interface Vlan161
ip address 192.168.161.254 255.255.255.0
!
interface Vlan162
ip address 192.168.162.254 255.255.255.0
!
interface Vlan163
ip address 192.168.163.254 255.255.255.0
!
interface Vlan164
ip address 192.168.164.254 255.255.255.0
!
interface Vlan165
ip address 192.168.165.254 255.255.255.0
!
interface Vlan166
ip address 192.168.166.254 255.255.255.0
!
interface Vlan167
ip address 192.168.167.254 255.255.255.0
!
interface Vlan168
ip address 192.168.168.254 255.255.255.0
!
interface Vlan169
ip address 192.168.169.254 255.255.255.0
!
interface Vlan170
ip address 192.168.170.254 255.255.255.0
!
interface Vlan171
ip address 192.168.171.254 255.255.255.0
!
interface Vlan172
ip address 192.168.172.254 255.255.255.0
!
interface Vlan175
ip address 192.168.175.254 255.255.255.0
!

只有Vlan 162 通过DHCP得不到IP ,其它的vlan都可以得到,很奇怪;而且在相应的端口手动指vlan 162相关的IP访问都正常,就是DHCP拿不到IP,我都试了好多回方法了,还是没找到问题的解决方法

不知坛里面有哪个哥们遇过类似问题,望指点

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沙与沫 2022-10-07 11:47:56

路过的哥们很多呀,要是可以的话麻烦留下点什么  :wink:

抚你发端 2022-10-07 11:47:56

vlan 162是否配置了DHCP?

陌若浮生 2022-10-07 11:47:56

你在客户端上抓一个DHCP过程的包我看下。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文