需求描述
访问不同的IP地址使用不同的ISP线路
不同ISP的用挥年抵遂户通过不同地址访问内网服务器
IP地址自定义。
拓扑结构
实现思路
配置不同的ACL区分地址转换时使用不同的地址池
通过浮动路由和明细路由实现路由选路和备份
服务器使用8080端口
实现过程
R1配置
en
conft
intfa0/0
ipadd192.168.0.254255.255.255.0
noshut
ipnatinside
exit
intfa0/1
ipadd192.168.1.254255.255.255.0
noshut
ipnatinside
exit
intfa1/0
ipadd202.101.100.1255.255.255.0
noshut
ipnatoutside
exit
intfa1/1
ipadd202.101.200.1255.255.255.0
noshut
ipnatoutside
ipnatinsidesourcestatictcp192.168.0.18080202.101.100.18080extendable
ipnatinsidesourcestatictcp192.168.0.18080202.101.200.18080extendable
ipaccess-listextendedisp1
permitipany202.101.100.00.0.0.255
exit
ipaccess-listextendedisp2
permitipany202.101.200.00.0.0.255
exit
ipnatpoolisp1202.101.100.1202.101.100.1netmask255.255.255.0
ipnatpoolisp2202.101.200.1202.101.200.1netmask255.255.255.0
ipnatinsidesourcelistisp1poolisp1overload
ipnatinsidesourcelistisp2poolisp2overload
iproute202.101.100.0255.255.255.0202.101.100.11
iproute202.101.100.0255.255.255.0202.101.200.12
iproute202.101.200.0255.255.255.0202.101.200.11
iproute202.101.200.0255.255.255.0202.101.100.12
R2配置
en
conft
intfa0/0
ipadd202.101.100.2255.255.255.0
noshut
exit
R3配置
en
conft
intfa0/0
ipadd202.101.200.2255.255.255.0