2024年5月15日发(作者:禹金鑫)
!
!
ip dhcp enable(开启DHCP功能)
ip dhcp server dns 211.138.106.2 211.138.106.7(设置分配给客户的DNS地址)
ip dhcp server leasetime 18000
ip dhcp server update arp
!
ip dhcp-client disable
!
urpf log off
!
ip local pool conflict-ip 254
ip local pool dhcp 10.10.10.2 10.10.10.254 255.255.255.0(配置地址池,地址池
名字为DHCP,等下在接口下引用这个名字)
!
mac-filter permit all
!
blacklist disable
!
!
interface null1
!
interface fei_0/1(连接公网的接口)
ip address 192.168.11.2 255.255.255.192
negotiation auto
ip nat outside(做为nat的outside口)
2024年5月15日发(作者:禹金鑫)
!
!
ip dhcp enable(开启DHCP功能)
ip dhcp server dns 211.138.106.2 211.138.106.7(设置分配给客户的DNS地址)
ip dhcp server leasetime 18000
ip dhcp server update arp
!
ip dhcp-client disable
!
urpf log off
!
ip local pool conflict-ip 254
ip local pool dhcp 10.10.10.2 10.10.10.254 255.255.255.0(配置地址池,地址池
名字为DHCP,等下在接口下引用这个名字)
!
mac-filter permit all
!
blacklist disable
!
!
interface null1
!
interface fei_0/1(连接公网的接口)
ip address 192.168.11.2 255.255.255.192
negotiation auto
ip nat outside(做为nat的outside口)