欢迎访客 ( 登陆 | 注册 )

论坛索引 | 最新主题 | 热门主题 | 搜索论坛 | 成员列表 | 在线帮助

前往页面: (2) 1 [2]  ( 前往第一篇未阅读文章 )
(原创)用route map实现多ISP Internet接入工程实例
« 上一篇主题 | 下一篇主题 » 跟踪主题 | 邮寄主题 | 打印主题
  抽烟的螃蟹 离线
1. Re: Re:(原创)用route map实现多ISP Internet接入工程实例...
HP : 0 / 230
MP : 41 / 2662
EXP : 22%
江湖豪客


成员等级: 10
发表总数: 125
金币总数: 177
所属组别: 普通成员
注册日期: 2005/01/27

偶不懂,你先别倒,站起来帮我解释一下呀。
发表于2005/11/3, 09:40
     Top
  keaizhu 离线
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.
发表于2006/01/3, 17:53
     Top
  抽烟的螃蟹 离线
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.

就是备份而已,对不?晕死。
一直以为是两个出口可以同时用呢!楼上所有困惑的朋友大概也是因为这个原因吧!
发表于2006/01/5, 14:52
     Top
  cnmba 离线
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

光匹配,不做事??
happy.gif
发表于2006/01/7, 17:03
     Top
  ipcfg 离线
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

光匹配,不做事??
happy.gif

同感,为什么只有匹配,没有set??//
发表于2006/05/16, 12:47
     Top
  keaizhu 离线
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

光匹配,不做事??
happy.gif

同感,为什么只有匹配,没有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.
发表于2006/05/17, 00:42
     Top
  flymao 离线
7. Re:(原创)用route map实现多ISP Internet接入工程实例
HP : 89 / 893
MP : 656 / 12331
EXP : 74%
名动江湖


成员等级: 36
发表总数: 1968
金币总数: 133
所属组别: 高级成员
注册日期: 2004/04/21

试试就知道鸟 laugh.gif
发表于2006/05/17, 06:56
        Top
  ipcfg 离线
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

光匹配,不做事??
happy.gif

同感,为什么只有匹配,没有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 (*.*.*.*),这样理解对吗
发表于2006/05/17, 10:58
     Top
  pipayu 离线
9. Re:(原创)用route map实现多ISP Internet接入工程实例
HP : 0 / 5
MP : 1 / 42
EXP : 21%
新手上路


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

biggrin.gif 呵呵,学到的动西不少呢,今天
发表于2006/05/17, 15:24
     Top
主题评分
未评分. 匿名用户无权对主题进行评分
0 名会员正在浏览该主题 (0 名游客 和 0 名隐身会员)
0 名会员:
有 28 篇回复自 2003/12/30, 16:43 跟踪主题 | 邮寄主题 | 打印主题
前往页面: (2) 1 [2] 
<< Back to 网络世界

 




Powered by PhoenixBBS v1.2 © 2000-2003  NetBuddy.Org