我的移动宽带要怎么设置才能实现外网功能

如题所述

再加个路由器 并在路由器写上个net命令,实现内外网

一、静态NAT的配置 1、设置外部端口的IP地址 2、设置内部端口的IP地址
3、在内部局部地址和外部全局地址之间建立静态地址转换 router(config)#ip nat inside source static local-ip global-ip router(config)#ip nat inside source static 192.168.1.2 61.159.62.130 (将内部局部地址 192.168.1.2 转换为内部全局地址 61.159.62.130 ) 4、在内部和外部端口上启用NAT router(config)#interface serial 0/0 router(config-if)#ip nat outside
router(config)#interface fastethernet 0/0 router(config-if)#ip nat inside 二、动态NAT的配置 1、设置外部端口的IP地址 2、设置内部端口的IP地址
3、定义内部网络中允许访问外部网络的访问控制列表 router(config)#access-list 1 permit 102.168.1.0 0.0.0.255 4、定义合法IP地址池
router(config)#ip nat pool pool-name star-ip end-ip netmask [type rotary] pool-name:放置转换后地址的地址池的名称 star-ip/end-ip:地址池内起始和结束的IP地址 netmask:子网掩码
type rotary(可选):地址池中的地址为循环使用
router(config)#ip nat pool test0 61.159.62.130 61.159.62.190 netmask 255.255.255.192 5、实现网络地址转换
router(config)#ip nat inside source list access-list-number pool pool-name [overload] access-list-number:为1--99之间的整数 pool-name:池名
overload(可选):使用地址复用,用于PAT router(config)#ip nat inside source list 1 pool test0 6、在内部和外部端口上启用NAT router(config)#interface serial 0/0 router(config-if)#ip nat outside
温馨提示:答案为网友推荐,仅供参考
相似回答