部署和配置DHCP服务器实验:自动分配IP地址和网络配置 | 您所在的位置:网站首页 › dhcp服务器配置命令 › 部署和配置DHCP服务器实验:自动分配IP地址和网络配置 |
Router>enable Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname DHCPSERVER DHCPSERVER(config)#interface f0/0 DHCPSERVER(config-if)#ip address 192.168.10.1 255.255.255.0 DHCPSERVER(config-if)#no shutdown DHCPSERVER(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up DHCPSERVER(config-if)#exit DHCPSERVER(config)#ip dhcp pool dhcp DHCPSERVER(dhcp-config)#network 192.168.10.0 255.255.255.0 DHCPSERVER(dhcp-config)#default-router 192.168.10.1 DHCPSERVER(dhcp-config)#dns-server 8.8.8.8 DHCPSERVER(dhcp-config)#domain-name dhcptest DHCPSERVER(dhcp-config)#? default-router Default routers dns-server Set name server domain-name Domain name exit Exit from DHCP pool configuration mode network Network number and mask no Negate a command or set its defaults option Raw DHCP options DHCPSERVER(dhcp-config)#lease 10 //此命令在PT中不支持 DHCPSERVER(dhcp-config)#end DHCPSERVER# %SYS-5-CONFIG_I: Configured from console by console DHCPSERVER#wr Building configuration... [OK] DHCPSERVER# |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |