DHCP一般配置

基本配置: Router>en Router#config t WAN口配置 Router(config)#int f0/1 Router(config-if)#ip add 172.16.73.20 255.255.255.0 Router(config-if)#no shut Router(config-if)#ip nat outside LAN口配置: Router(config-if)#int f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shut Router(config-if)#ip nat intside Router(config-if)#exit DHCP配置: Router(config)#ip dhcp pool mydhcp Router(dhcp-config)#network 192.168.1.0 255.255.255.0 Router(dhcp-config)#default-router 192.168.1.1 Router(dhcp-config)#dns-server 202.195.224.100 Router(dhcp-config)#exit Router(config)#ip dhcp excluded-address 192.168.1.1 默认路由+NAT配置: Router(config)#ip route 0.0.0.0 0.0.0.0 f0/1 Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255 Router(config)#ip nat inside source list 1 interface FastEthernet0/1 overload Router(config)#^Z

你可能感兴趣的:(CCXX)