Skip to main content


思科双线路接入方案

2012-11-04 22:40 浏览:

有一家公司为了网络流量均衡,要求接入两条线路,一个是电信、一个是网通,在cisco路由器上实现自动分流连接互联网(电信的IP 61.153.177.1 网关3,网通112.55.33.0.114.55.33.0 )

(一地址配置)

r1(config)#int f0/0

r1(config-if)#ip add 61.153.177.1 255.255.255.0

r1(config-if)#no shut

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

r1(config-if)#int f0/1

r1(config-if)#ip add 192.168.1.1 255.255.255.0

r1(config-if)#no shut

r1(config)#int s1/0

r1(config-if)#ip add 112.55.33.1 255.255.255.0

r1(config-if)#no shut

电信r1(config)#ip route 0.0.0.0 0.0.0.0 61.153.177.3

网通r1(config)#ip route 113.55.33.0 255.255.255.0 112.55.33.11

r1(config)#ip route 114.55.33.0 255.255.255.0 112.55.33.11

二(NAT配置)

r1(config)#int f0/0

r1(config-if)#ip nat outside

r1(config-if)#exi

r1(config)#int s1/0

r1(config-if)#ip nat outside

r1(config-if)#end

NAT地址池

r1(config)#ip nat pool wt 112.55.33.5 112.55.33.5 netmask 255.255.255.0

r1(config)#ip nat pool dx 61.153.177.2 61.153.177.2 netmask 255.255.255.0

配置两个route map

Route-map isp2 permit 10

Match ip address 100

Match int s1/0

Route-map isp1 permit 10

Match ip address 100

Match int f0/0

本文出自 “施志华IT达人show” 博