|
|
 |
|
|
| 1. Re: Re:(原创)用route map实现多ISP Internet接入工程实例... |
  |
|
 |
|
HP : 0 / 230
MP : 41 / 2662
EXP : 22%
|
|
江湖豪客
        
成员等级: 10
发表总数: 125
金币总数: 177
所属组别: 普通成员
注册日期: 2005/01/27

|
偶不懂,你先别倒,站起来帮我解释一下呀。 |
 |
|
|
| 2. RE: (原创)用route map实现多ISP Internet接入工程实例... |
  |
|
 |
|
HP : 0 / 224
MP : 40 / 3550
EXP : 98%
|
|
江湖豪客
        
成员等级: 9
发表总数: 120
金币总数: 147
所属组别: 普通成员
注册日期: 2003/08/15

|
| QUOTE | | QUOTE |
Router(Config)>Route-map Isp1 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1 ~~~~~~~~~~ Router(Config)>Route-map Isp2 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int S1/0 ~~~~~~~~~
. |
上面划波浪线的地方我看不太明白诶, 这个可是连到internet的口, 这个命令放在这里没什么用吧。 |
this is to make sure that when using ISP1 as default gateway, client pc be getting isp1's public address from isp1_pool. when isp1 link is down, isp2 is chosen.. then client pc will be getting isp2's public address from isp2_pool. |
 |
|
|
| 3. Re:(原创)用route map实现多ISP Internet接入工程实例 |
  |
|
 |
|
HP : 0 / 230
MP : 41 / 2662
EXP : 22%
|
|
江湖豪客
        
成员等级: 10
发表总数: 125
金币总数: 177
所属组别: 普通成员
注册日期: 2005/01/27

|
| QUOTE | this is to make sure that when using ISP1 as default gateway, client pc be getting isp1's public address from isp1_pool. when isp1 link is down, isp2 is chosen.. then client pc will be getting isp2's public address from isp2_pool. |
就是备份而已,对不?晕死。 一直以为是两个出口可以同时用呢!楼上所有困惑的朋友大概也是因为这个原因吧! |
 |
|
|
| 4. Re:(原创)用route map实现多ISP Internet接入工程实例 |
  |
|
 |
|
HP : 0 / 11
MP : 2 / 135
EXP : 47%
|
|
新手上路

成员等级: 1
发表总数: 6
金币总数: 16
所属组别: 普通成员
注册日期: 2005/01/30

|
Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1 //这里应改为 set int fa 0/1
光匹配,不做事?? |
 |
|
|
| 5. RE: (原创)用route map实现多ISP Internet接入工程实例... |
  |
|
 |
|
HP : 0 / 96
MP : 12 / 1340
EXP : 85%
|
|
江湖游客
  
成员等级: 4
发表总数: 37
金币总数: 78
所属组别: 普通成员
注册日期: 2004/04/8

|
| QUOTE | Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1 //这里应改为 set int fa 0/1
光匹配,不做事??  |
同感,为什么只有匹配,没有set??// |
 |
|
|
| 6. RE: (原创)用route map实现多ISP Internet接入工程实例... |
  |
|
 |
|
HP : 0 / 224
MP : 40 / 3550
EXP : 98%
|
|
江湖豪客
        
成员等级: 9
发表总数: 120
金币总数: 147
所属组别: 普通成员
注册日期: 2003/08/15

|
| QUOTE | | QUOTE | Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1 //这里应改为 set int fa 0/1
光匹配,不做事??  |
同感,为什么只有匹配,没有set??// |
其实楼上已经有人解释过这个route-map了, 我就在罗嗦一下。
【quote】 第四步:设置访问控制列表和NAT转换规则 Router(Config)>Access-list 100 permit Ip 192.168.0.0 0.0.0.255 any Router(Config)>Ip Nat Inside Source Route-map Isp1 Pool Isp1_pool Router(Config)>Ip Nat Inside Source Route-map Isp2 Pool Isp2_pool
第五步:设置ROUTE MAP规则 Router(Config)>Route-map Isp1 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1
Router(Config)>Route-map Isp2 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int S1/0 【/quote】
route map可以只设置匹配规则, 事情不一定要在route-map里面做。 这里事情在ip nat里面做了。 当isp1的条件满足的时候, nat去isp1_pool; 当isp2的条件满足的时候, nat去isp2_pool. |
 |
|
|
| 7. Re:(原创)用route map实现多ISP Internet接入工程实例 |
  |
|
 |
|
HP : 89 / 893
MP : 656 / 12331
EXP : 74%
|
|
名动江湖
           
成员等级: 36
发表总数: 1968
金币总数: 133
所属组别: 高级成员
注册日期: 2004/04/21

|
试试就知道鸟 |
 |
|
|
| 8. Re: RE: (原创)用route map实现多ISP Internet接入工程实例...... |
  |
|
 |
|
HP : 0 / 96
MP : 12 / 1340
EXP : 85%
|
|
江湖游客
  
成员等级: 4
发表总数: 37
金币总数: 78
所属组别: 普通成员
注册日期: 2004/04/8

|
| QUOTE | | QUOTE | | QUOTE | Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1 //这里应改为 set int fa 0/1
光匹配,不做事??  |
同感,为什么只有匹配,没有set??// |
其实楼上已经有人解释过这个route-map了, 我就在罗嗦一下。
【quote】 第四步:设置访问控制列表和NAT转换规则 Router(Config)>Access-list 100 permit Ip 192.168.0.0 0.0.0.255 any Router(Config)>Ip Nat Inside Source Route-map Isp1 Pool Isp1_pool Router(Config)>Ip Nat Inside Source Route-map Isp2 Pool Isp2_pool
第五步:设置ROUTE MAP规则 Router(Config)>Route-map Isp1 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int Fa 0/1
Router(Config)>Route-map Isp2 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int S1/0 【/quote】
route map可以只设置匹配规则, 事情不一定要在route-map里面做。 这里事情在ip nat里面做了。 当isp1的条件满足的时候, nat去isp1_pool; 当isp2的条件满足的时候, nat去isp2_pool. |
Router(Config)>Ip Nat Pool Isp1_pool 218.18.18.2 218.18.18.6 Netmask 255.255.255.224 Router(Config)>Ip Nat Pool Isp2_pool 68.18.18.4 68.18.18.10 Netmask 255.255.255.224
是不是可以这样理解,当局域网地址被转换成 isp1_pool时,地址是218.18.18.2-6中其中一个,路由表中没有相应的静态路由,就走默认路由,正好是isp1的出口,转换成68.18.18.4 68.18.18.10 时。68.18.18.4 -10在路由表中正好是isp2接口的直接连接,就走isp2了,如果说isp2的地址没有和/*接ISP2网口*/ Router(Config-if)>ip addr 68.18.18.2 255.255.255.224 在一个地址段的话,在route-map里子match而不set肯定不行吧,Router(Config)>Route-map Isp2 Permit 10 Router(Config-route-map)>Match Ip address 100 Router(Config-route-map)>Match Int S1/0 〉〉〉就应该制定成 set int s1/0或者 set ip next-hop (*.*.*.*),这样理解对吗 |
 |
|
|
| 9. Re:(原创)用route map实现多ISP Internet接入工程实例 |
  |
|
 |
|
HP : 0 / 5
MP : 1 / 42
EXP : 21%
|
|
新手上路

成员等级: 1
发表总数: 4
金币总数: 14
所属组别: 普通成员
注册日期: 2006/05/16

|
呵呵,学到的动西不少呢,今天 |
 |
 |