求CISCO配置 公网IP通过路由访问外网

发布时间:2024-06-01 14:28 发布:上海旅游网

问题描述:

我有4个公网IP,网通给了我2个通道地址.
现在我想用一个地址作为NAT转换,给下面所有私网IP转换用.
另外3个IP设置到服务器上,可以直接访问INTERNET.

问题解答:

地址池:
Access-list 1 permit 192.168.1.0 0.0.0.255
ip nat pool BMG 202.96.1.10 202.96.1.100 netmask 255.255.255.0
ip nat inside source list 1 pool BMG
int serial 0/0
ip nat outside
int fastethernet 0/0
ip nat inside
静态转换:
ip nat inside source static 192.168.1.5 202.96.1.6
ip nat inside source static 192.168.1.6 202.96.1.7
int fastethernet 0/0
ip nat inside
int serial 0/0
ip nat outside
Pat:
Access-list 1 permit 192.168.1.0 0.0.0.255
ip nat pool BMG 202.96.1.10 202.96.1.100 netmask 255.255.255.0
ip nat inside source list 1 pool BMG Overload
int serial 0/0
ip nat outside
int fastethernet 0/0
ip nat inside

二楼的说的很清楚了,我就不再重复了!
你使用静态转换和PAT就可以了!

你是cisco设备?我觉得不可能,nat去看ccna3就ok了

热点新闻