标签:config 查看 ip地址 NPU alt .com vpd out RKE
DHCP 的应用实验R1(config)#service dhcp 开启dhcp服务
R1(config)#ip dhcp pool vlan 10 (vlan10是没有空格的)
^
% Invalid input detected at ‘^‘ marker.
R1(config)#ip dhcp pool vlan10 进入vlan10,给vlan10的pc服务器配dhcp
R1(dhcp-config)#network 192.168.10.0/24
^
% Invalid input detected at ‘^‘ marker.
R1(dhcp-config)#network 192.168.10.0 /24 设置地址池,/24和前面的网段有空格)
R1(dhcp-config)#def
R1(dhcp-config)#default-router 192.168.10.1 配网关
R1(dhcp-config)#dns-server 2.2.2.2 配dns
R1(dhcp-config)#exit
R1(config)#ip dhcp pool vlan20
R1(dhcp-config)#network 192.168.20.0 /24
R1(dhcp-config)#default-router 192.168.20.1
R1(dhcp-config)#dns-server 2.2.2.2
R1(dhcp-config)#exit
4.测试
进入pc端,输入dhcp,其自动获取IP地址。
5.一些查看命令
标签:config 查看 ip地址 NPU alt .com vpd out RKE
原文地址:http://blog.51cto.com/14062619/2348571