思科路由器1841C如何设置

2024-12-23 04:29:17
推荐回答(1个)
回答1:

router(config)#ip dhcp pool 1 开启DHCP功能
Router(dhcp-config)#network 192.168.2.0 255.255.254.0
Router(dhcp-config)#default-router 192.168.2.1
Router(dhcp-config)#dns-server 202.100.96.68 222.75.152.129

router(config)#interface FastEthernet0/0 配置公网接口
router(config-if)#ip address 124.224.177.x 255.x.x.x 配置运营商提供的ip地址及掩码
router(config-if)#ip nat outside
router(config-if)#no shudown

router(config)#interface FastEthernet0/1 配置内网接口
router(config-if)#ip address 192.168.2.1 255.255.254.0
router(config-if)#ip nat inside
router(config-if)#no shutdown

router(config)#ip route 0.0.0.0 0.0.0.0 124.224.177.xxx 配置路由124.224.177.xxx为运营商提供的网关IP

router(config)#access-list 101 permit ip any any 配置访问控制列表,运行访问公网的ip段

router(config)#ip nat inside source list 101 interface FastEthernet0/0 overload 配置nat转换