To configure DHCP on a Cisco router, follow these steps: 登录到Cisco路由器的管理界面: 首先,需要通过SSH或Telnet登录到Cisco路由器的命令行界面(CLI)。 进入全局配置模式: 在CLI中,输入以下命令进入全局配置模式: plaintext Router# configure terminal 进入配置模式后,提示符将变为Router(config)#。 设定...
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 ...
通过CLI 配置 DHCP 服务器的步骤 1、使用SSH / TELNET登录到设备并转到启用模式。 2、进入配置模式。 Router#configure terminal 输入配置命令,每行一个。以 CNTL/Z 结尾。 Router(config)# 3、通过使用 IP DHCP 排除地址FIRST_IP LAST_IP路由器(配置)排除 IP 地址 #ip Router(config)#ip dhcp excluded-addr...
Cisco IOS DHCP pools can be configured for small businesses where purchasing a standalone DHCP is not economically sound. Small businesses have to “work with what they have” and using a router or Layer 3 switch that is already in the network environment is a great way to do this. Having...
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 ...
Router#configure terminal # 进入配置模式 Router(config)#int fastEthernet 0/0 # 进入接口视图 Router(config-if)#ip address 192.168.10.1 255.255.255.0 # 配置IP地址 1. 2. 3. 4. #配置DHCP服务端 Router(config)#service dhcp # 开启全局DHCP服务(开启总开关) ...
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测试一下,通了,大功告成!!!
Router#configure terminal# 进入配置模式 Router(config)#int fastEthernet 0/0# 进入接口视图 Router(config-if)#ip address 192.168.10.1 255.255.255.0# 配置IP地址 #配置DHCP服务端 Router(config)#servicedhcp # 开启全局DHCP服务(开启总开关) Router(config)#ipdhcp pool vlan10 # 创建地址池 ...
In such a situation, you need to configure the router's interface connected to the DHCP server as a DHCP relay agent. To configure a router's interface as a DHCP relay agent, use the following command in interface configuration mode. ...
Router# configure terminal Router(config)# ip dhcp pool LAN 2. 分配地址池范围 在DHCP地址池配置模式下,指定要分配的IP地址范围和子网掩码: Router(dhcp-config)# network 192.168.1.0 255.255.255.0 3. 配置默认网关 为客户端配置默认网关: Router(dhcp-config)# default-router 192.168.1.1 ...