发布网友 发布时间:2022-04-22 03:34
共1个回答
热心网友 时间:2024-03-12 05:41
Router(config)#interface Ethernet0/0 内网
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config)#interface Ethernet0/1 *
Router(config-if)#ip address 192.168.0.6 255.255.255.0
Router(config-if)#ip nat outside
Router(config)#ip nat pool word 192.168.0.6 192.168.0.6 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool word overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#ip dhcp pool work 内网dhcp
Router(dhcp-config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.1