CISCO 4503E启用DHCP
步骤如下:enable #如果有配置交换机telnet密码的话需要再次输入密码。show running-config#查看当前交换机状态。
conf t #进入全局模式
ip dhcp pool v21#为vlan21配置dhcp
network 192.168.21.0 255.255.255.0 #动态分配的地址段
dns-server 8.8.8.8 #为可配置DNS服务器
default-router 192.168.21.254 #设置默认的网关
lease 8 #设置租期为8天
ip dhcp excluded-address 192.168.21.1 192.168.21.149#排除动态分配的IP范围
ip dhcp excluded-address 192.168.21.231 192.168.21.254#排除动态分配的IP范围
show ip dhcp binding #查看DHCP分配的信息。
show ip dhcp conflict #显示IP冲突情况
no server dhcp#关闭dhcp服务
wr#保存更改的内容
no ip dhcp pool v21#关闭v21的dhcp
____________传说中的分割线____________
查看vlan划分情况
sh ip int
sh ip int d
页:
[1]