1、需求描述
访问不同的IP地址使用不同的ISP线路
不同ISP的用户通过不同地址访问内网服务器
IP地址自定义。
2、拓扑结构
3、实现思路
配置不同的ACL区分地址转换时使用不同的地址池
通过浮动路由和明细路由实现路由选路和备份
服务器使用8080端口
4、实现过程
R1配置
en
conf?t
int?fa?0/0
ip?add?192.168.0.254?255.255.255.0
no?shut
ip?nat?inside
exit
int?fa?0/1
ip?add?192.168.1.254?255.255.255.0
no?shut
ip?nat?inside
exit
int?fa?1/0
ip?add?202.101.100.1?255.255.255.0
no?shut
ip?nat?outside
exit
int?fa?1/1
ip?add?202.101.200.1?255.255.255.0
no?shut
ip?nat?outside
ip?nat?inside?source?static?tcp?192.168.0.1?8080?202.101.100.1?8080?extendable
ip?nat?inside?source?static?tcp?192.168.0.1?8080?202.101.200.1?8080?extendable
ip?access-list?extended?isp1
permit?ip?any?202.101.100.0?0.0.0.255
exit
ip?access-list?extended?isp2
permit?ip?any?202.101.200.0?0.0.0.255
exit
ip?nat?pool?isp1?202.101.100.1?202.101.100.1?netmask?255.255.255.0
ip?nat?pool?isp2?202.101.200.1?202.101.200.1?netmask?255.255.255.0
ip?nat?inside?source?list?isp1?pool?isp1?overload
ip?nat?inside?source?list?isp2?pool?isp2?overload
ip?route?202.101.100.0?255.255.255.0?202.101.100.1?1
ip?route?202.101.100.0?255.255.255.0?202.101.200.1?2
ip?route?202.101.200.0?255.255.255.0?202.101.200.1?1
ip?route?202.101.200.0?255.255.255.0?202.101.100.1?2
R2配置
en
conf?t
int?fa?0/0
ip?add?202.101.100.2?255.255.255.0
no?shut
exit
R3配置
en
conf?t
int?fa?0/0
ip?add?202.101.200.2?255.255.255.0