Router#configure terminal 输入配置命令,每行一个。以 CNTL/Z 结尾。 Router(config)# 3、通过使用 IP DHCP 排除地址FIRST_IP LAST_IP路由器(配置)排除 IP 地址 #ip Router(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.50 Router(config)# 4、使用 ip dhcp pool NAME 命令 Router(config)#ip ...
Router#configure terminal 输入配置命令,每行一个。以 CNTL/Z 结尾。 Router(config)# 3、通过使用 IP DHCP 排除地址FIRST_IP LAST_IP路由器(配置)排除 IP 地址 #ip Router(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.50 Router(config)# 4、使用 ip dhcp pool NAME 命令 Router(config)#ip ...
To configure DHCP on a Cisco router, follow these steps: 登录到Cisco路由器的管理界面: 首先,需要通过SSH或Telnet登录到Cisco路由器的命令行界面(CLI)。 进入全局配置模式: 在CLI中,输入以下命令进入全局配置模式: plaintext Router# configure terminal 进入配置模式后,提示符将变为Router(config)#。 设定...
3、进入全局配置模式:输入configure terminal命令并按回车键。 二、配置DHCP排除地址 1、排除特定IP地址:使用ip dhcp excluded-address命令指定要排除的IP地址范围,排除从192.168.0.1到192.168.0.50的IP地址。 Router(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.50 三、创建DHCP池 1、创建DHCP池:使用ip ...
1、登录并进入配置模式:通过SSH或TELNET登录到设备,并进入启用模式,然后输入configure terminal进入配置模式。 2、排除IP地址:使用ip dhcp excluded-address命令排除不需要分配的IP地址范围,排除192.168.0.1到192.168.0.50的地址: Router(config)# ip dhcp excluded-address 192.168.0.1 192.168.0.50 ...
One of the most exciting pieces of configuration within Cisco IOS, in my opinion, is IP DHCP Pools. With this feature you can configure a Cisco switch or router to act as a DHCP server. This feature is useful in several cases including some of the following; small business DHCP sever, ...
R1(config-if)#ip helper-address13.1.1.3//网关接口设置中继,实现将用户网段内的DHCP请求中继到服务器网段的DHCP服务器获取地址 R3配置信息(DHCP Server): Router>enable Router#configure terminal Router(config)#hostname Server Server(config)#interfaceethernet0/0Server(config-if)#ip address13.1.1.3255.255.255...
DHCP_Server(config)#default gateway 192.168.1.254 #配置网关 DHCP_Server(config)#service dhcp #开启DCHP服务 DHCP_Server(config)#ip dhcp pool Cisco_dhcp #创建地址池 DHCP_Server(dhcp-config)#network 172.16.1.0 255.255.255.0 #添加网段 DHCP_Server(dhcp-config)#default-router 172.16.1.254 #指定网关 ...
dhcp-config)#network 192.168.1.0 255.255.255.0配置网关Router(dhcp-config)#default-router 192.168.1.1配置DNSRouter(dhcp-config)#dns-server 114.114.114.114这样服务就配好了!7 打开PC,选择“Desktop”→“IP Configuration”,选择DHCP 8 最后我们用ping测试一下,通了,大功告成!!!
default-router 192.168.1.1 255.255.255.0 下面的pc获取测试dhcp配置正常。 2.设置PC获取指定的ip地址 用client-identifier这个命令就能实现这个功能,但是需要为DHCP客户端指定的唯一标识符,此命令用于DHCP请求。 用debug ip dhcp server packet查看已经获取到地址的机器,就可以查到唯一标示符 ...