所以我想我知道如何在我的 3550 交换机上设置我的 DHCP 服务器并为客户端保留 IP。
我进入了需要保留 IP 的池,但我没有像过去在 IOS 上那样使用地址命令作为选项来执行此操作。
xxx3550#sh version
Cisco IOS Software, C3550 Software (C3550-IPSERVICES-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 19-Jul-07 21:08 by nachen
Image text-base: 0x00003000, data-base: 0x00D45C28
ROM: Bootstrap program is C3550 boot loader
xxx3550 uptime is 1 year, 30 weeks, 6 days, 2 hours, 3 minutes
System returned to ROM by power-on
System restarted at 07:35:09 EDT Thu Oct 22 2015
System image file is "flash:c3550-ipservices-mz.122-35.SE5/c3550-ipservices-mz.122-35.SE5.bin"
Cisco WS-C3550-24-PWR (PowerPC) processor (revision L0) with 65526K/8192K bytes of memory.
Processor board ID CAT0937R3D4
Last reset from warm-reset
Running Layer2/3 Switching Image
这是 DHCP 池配置
ip dhcp pool data
network 192.168.5.0 255.255.255.0
default-router 192.168.5.1
dns-server xxx.xxx.xxx.x xxx.xxx.xxx.x
lease 8
当我进入 dhcp 池配置时,我确实有以下可用:
xxx3550(config)#ip dhcp pool data
xxx3550(dhcp-config)#?
DHCP pool configuration commands:
bootfile Boot file name
client-identifier Client identifier
client-name Client name
default-router Default routers
dns-server DNS servers
domain-name Domain name
exit Exit from DHCP pool configuration mode
hardware-address Client hardware address
host Client IP address and mask
import Programatically importing DHCP option parameters
lease Address lease time
netbios-name-server NetBIOS (WINS) name servers
netbios-node-type NetBIOS node type
network Network number and mask
next-server Next server in boot process
no Negate a command or set its defaults
option Raw DHCP options
xxx3550(dhcp-config)#
我只需要为特定的 MAC 地址保留一个 IP 地址。我通常会
Address xxx.xxx.xxx.xx Hardware-Address AABB.CC00.11FF