夏天的微笑 2007-12-9 20:29
JunOS-BGP负载分担的做法
与OSPF不同,BGP是在邻居组里做
group 4134 {
peer-as 4134;
[color=#ff0066]multipath;[/color]
neighbor 1.0.1.2;
neighbor 1.0.1.6;
neighbor 1.0.1.10;
}
[color=#3366ff]配置后可发现路由表中有三个目的,但其中两个peer的状态看到仍为Inactive[/color]
[email=root@j72r42][color=#0000ff]root@j72r42[/color][/email]> show route 61.128.128.68 extensive
inet.0: 3331 destinations, 23210 routes (3331 active, 0 holddown, 0 hidden)
61.128.128.0/17 (7 entries, 1 announced)
TSI:
KRT in-kernel 61.128.128.0/17 ->[color=#ff0066] {1.0.1.2, 1.0.1.6, 1.0.1.10}[/color]
*BGP Preference: 170/-101
Next-hop reference count: 4345
Source: 1.0.1.2
Next hop: 1.0.1.2 via fxp1.80, selected
Next hop: 1.0.1.6 via fxp1.81
Next hop: 1.0.1.10 via fxp1.82
State: <Active Ext>
Local AS: 1 Peer AS: 4134
Age: 8:31
Task: BGP_4134.1.0.1.2+179
Announcement bits (1): 0-KRT
AS path: 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 163.0.0.1
BGP Preference: 170/-101
Next-hop reference count: 3314
Source: 1.0.1.6
Next hop: 1.0.1.6 via fxp1.81, selected
State: <NotBest Ext>
[color=#ff00cc]Inactive reason: Router ID[/color]
Local AS: 1 Peer AS: 4134
Age: 8:28
Task: BGP_4134.1.0.1.6+179
AS path: 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 163.0.0.11
BGP Preference: 170/-101
Next-hop reference count: 3315
Source: 1.0.1.10
Next hop: 1.0.1.10 via fxp1.82, selected
State: <NotBest Ext>
[color=#ff00cc]Inactive reason: Router ID[/color]
Local AS: 1 Peer AS: 4134
Age: 8:24
Task: BGP_4134.1.0.1.10+179
AS path: 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 163.0.0.12
BGP Preference: 170/-101
Next-hop reference count: 3342
Source: 1.0.1.18
Next hop: 1.0.1.18 via fxp1.84, selected
State: <Ext>
Inactive reason: AS path
Local AS: 1 Peer AS: 4809
Age: 1:07:48
Task: BGP_4809.1.0.1.18+4487
AS path: 4809 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 59.0.0.1
BGP Preference: 170/-101
Next-hop reference count: 3321
Source: 1.0.1.22
Next hop: 1.0.1.22 via fxp1.85, selected
State: <Ext>
Inactive reason: AS path
Local AS: 1 Peer AS: 65000
Age: 1:07:48
Task: BGP_65000.1.0.1.22+2715
AS path: 65000 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 200.0.0.1
BGP Preference: 170/-101
Next-hop reference count: 5388
Source: 1.0.1.26
Next hop: 1.0.1.26 via fxp1.86, selected
State: <Ext>
Inactive reason: AS path
Local AS: 1 Peer AS: 4538
Age: 1:07:47
Task: BGP_4538.1.0.1.26+179
AS path: 4538 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 210.40.32.1
BGP Preference: 170/-101
Next-hop reference count: 3482
Source: 1.0.1.14
Next hop: 1.0.1.14 via fxp1.83, selected
State: <Ext>
Inactive reason: AS path
Local AS: 1 Peer AS: 9808
Age: 1:07:47
Task: BGP_9808.1.0.1.14+3469
AS path: 9808 4134 I
Communities: 4134:1
Localpref: 100
Router ID: 211.139.0.1
flickxie 2007-12-10 00:27
晕。。。。不厚道......................
网游爱好者 2008-1-13 15:27
邻居组里做???怎么进入,打入什么命令?看不明白哦
年糕团子 2008-1-13 18:08
貌似不是比较详细!楼主能说的更明白些吗!我们这些菜鸟有点不懂!谢谢了!