我不是网络管理员,但我的网络有一台旧的 Cisco Catalyst 3560。我已经成功设置了 DHCP 池:
ip dhcp pool 192.168.0.0
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 203.0.178.191 203.215.29.191
我的电脑可以愉快地连接并获得 IP 地址。但是我的步骤是我想在同一个子网中分配一些静态 IP 地址。这是我的开始:
ip dhcp pool Static
host 192.168.0.11 255.255.255.0
hardware-address xxxx.xxxx.xxxx
default-router 192.168.0.254
dns-server 203.0.178.191 203.215.29.191
但是,当我在 MAC 地址为 xxxx.xxxx.xxxx 的 PC 上尝试 ipconfig /renew 时,我得到以下信息:
An error occurred while renewing interface Ethernet : unable to contact your DHCP server. Request has timed out.
我觉得我可能错过了一些简单的东西。它肯定似乎正在识别 MAC 地址,因为行为与配置的静态池不同,谁能帮我弄清楚为什么 DHCP 超时?任何帮助将非常感激!
编辑:
完整配置(为了可读性/安全性略有截断):
Current configuration : 3839 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
enable secret 5 xxxx
!
!
!
no aaa new-model
clock timezone UTC 10
clock summer-time UTC recurring last Sun Oct 2:00 last Sun Mar 3:00
system mtu routing 1500
ip name-server 203.0.178.191
ip name-server 203.215.29.191
!
ip dhcp pool 192.168.0.0
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
dns-server 203.0.178.191 203.215.29.191
!
ip dhcp pool Static1
host 192.168.0.1 255.255.255.0
hardware-address aaaa.bbbb.cccc
default-router 192.168.0.254
dns-server 203.0.178.191 203.215.29.191
!
ip dhcp pool Static2
host 192.168.0.11 255.255.255.0
hardware-address dddd.eeee.ffff
default-router 192.168.0.254
dns-server 203.0.178.191 203.215.29.191
!
!
!
!
crypto pki trustpoint TP-self-signed-<snip>
!
!
crypto pki certificate chain TP-self-signed-<snip>
quit
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
interface GigabitEthernet0/1
!
<snip>
!
interface GigabitEthernet0/28
!
interface Vlan1
ip address 192.168.0.253 255.255.255.0
!
ip default-gateway 192.168.0.254
ip classless
ip http server
ip http secure-server
!
!
vstack
!
line con 0
line vty 0 4
password xxxx
login
line vty 5 15
password xxxx
login
!
end