发布网友 发布时间:2022-04-25 01:21
共1个回答
热心网友 时间:2022-04-12 22:38
router(config)#interface fastethernet 0 router(config-if-fastethernet0)#ip address 公网IP router(config-if-fastethernet0)#ip nat outside router(config-if-fastethernet0)#interface fastethernet 1 router(config-if-fastethernet1)#ip address 192.168.1.1 255.255.255.0 router(config-if-fastethernet1)#ip nat inside router(config-if-fastethernet1)#exit router(config)#ip access-list standard 1 router(config-std-nacl)#permit 192.168.1.0 0.0.0.255 router(config-std-nacl)#exit router(config)#ip nat inside source list 1 interface fastethernet 0 overload router(config)#ip route 0.0.0.0 0.0.0.0 fastethernet 0 router(config)#ip dhcp pool maipu router(dhcp-config)#range 192.168.1.2 192.168.1.254 255.255.255.0 router(dhcp-config)#default-router 192.168.1.1 router(dhcp-config)#dns-server DNS服务器地址 router(dhcp-config)#exit 这是最基本的配置 有什么不懂的加我QQ bishaoshuan@qq.com