发表于:2010-3-12 浏览:84 作者: 来源:互联网
关键字:cisco 3550,DHCP,配置
描述:相关配置命令: config)#ipdhcppool[地址池名] (config)#ipdhcpexcluded-address[不分配的地址] (dhcp-config)#network[要分配的地址][掩码] (dhcp-config)#lease[租约] (dhcp-config)#def
相关配置命令:
config)#ip dhcp pool [地址池名]
(config)#ip dhcp excluded-address [不分配的地址]
(dhcp-config)#network [要分配的地址] [掩码]
(dhcp-config)#lease [租约]
(dhcp-config)#default-router [默认网关]
(dhcp-config)#dns-server[dns 服务器]
然后要对自动获取地址的vlan 进行设置
(config)#ip helper-address [交换机地址]
再将端口划分到vlan 里
show config:
ip dhcp excluded-address 10.0.199.200 10.0.199.254
!
ip dhcp pool test
network 10.0.199.0 255.255.255.0
default-router 10.0.199.1
dns-server 10.0.199.252
lease 0 0 5
nterface Vlan199
ip address 10.0.199.1 255.255.255.0
ip helper-address 10.0.1.1