Chinaunix首页 | 论坛 | 博客
  • 博客访问: 226496
  • 博文数量: 47
  • 博客积分: 776
  • 博客等级: 军士长
  • 技术积分: 514
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-18 12:04
文章分类

全部博文(47)

文章存档

2016年(1)

2015年(18)

2013年(28)

我的朋友

分类: 网络与安全

2015-06-10 16:20:51

generate路由和聚合路由差不多,都是生成一条汇总的路由,所不同的是generate路由是有下一跳的,如果被汇总的明细路由的下一跳不一致,那么取其中一个的下一跳。
另外好像generate路由不汇总AS-PATH属性。

[edit routing-options]
admin@jr1# show                          
inactive: aggregate {
    route 10.0.0.0/24;
}
generate {
    route 10.0.0.0/24;
}
autonomous-system 100;

[edit routing-options]
admin@jr1# run show route 10.0.0.0/24 detail

inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
10.0.0.0/24 (1 entry, 1 announced)
        *Aggregate Preference: 130
                Next hop type: Indirect
                Address: 0x91dc568
                Next-hop reference count: 9
                Next hop type: Router, Next hop index: 540
                Next hop: 10.123.0.2 via ge-1/3/0.100, selected
                Protocol next hop: 10.123.0.2
                Indirect next hop: 928c000 262142
                State:
                Local AS:   100
                Age: 12:06      Metric2: 0
                Task: Aggregate
                Announcement bits (2): 0-KRT 2-Resolve tree 1
                AS path: I
                                Flags: ASPathChanged Generate Resolve   Depth: 0        Active
                Contributing Routes (4):
                        10.0.0.4/32 proto BGP
                        10.0.0.5/32 proto BGP
                        10.0.0.31/32 proto BGP
                        10.0.0.32/32 proto BGP

10.0.0.4/32 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Next hop type: Indirect
                Address: 0x91dc568
                Next-hop reference count: 9
                Source: 10.123.0.2
                Next hop type: Router, Next hop index: 540
                Next hop: 10.123.0.2 via ge-1/3/0.100, selected
                Protocol next hop: 10.123.0.2
                Indirect next hop: 928c000 262142
                State:
                Local AS:   100 Peer AS:   100
                Age: 7:20       Metric2: 0
                Task: BGP_100.10.123.0.2+179
                Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
                AS path: 111 112 113 I
                Accepted
                Localpref: 100
                Router ID: 10.0.0.2

10.0.0.5/32 (1 entry, 1 announced)
        *BGP    Preference: 170/-101    
                Next hop type: Indirect
                Address: 0x91dc568
                Next-hop reference count: 9
                Source: 10.123.0.2
                Next hop type: Router, Next hop index: 540
                Next hop: 10.123.0.2 via ge-1/3/0.100, selected
                Protocol next hop: 10.123.0.2
                Indirect next hop: 928c000 262142
                State:
                Local AS:   100 Peer AS:   100
                Age: 7:20       Metric2: 0
                Task: BGP_100.10.123.0.2+179
                Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
                AS path: 111 112 114 115 I
                Accepted
                Localpref: 100
                Router ID: 10.0.0.2

10.0.0.31/32 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Next hop type: Indirect
                Address: 0x91dc688
                Next-hop reference count: 6
                Source: 10.123.0.3
                Next hop type: Router, Next hop index: 539
                Next hop: 10.123.0.3 via ge-1/3/0.100, selected
                Protocol next hop: 10.123.0.3
                Indirect next hop: 928c0e8 262143
                State:
                Local AS:   100 Peer AS:   100
                Age: 37:53      Metric2: 0
                Task: BGP_100.10.123.0.3+179
                Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
                AS path: 111 112 331 332 I
                Accepted
                Localpref: 100
                Router ID: 10.0.0.3

10.0.0.32/32 (1 entry, 1 announced)
        *BGP    Preference: 170/-101
                Next hop type: Indirect
                Address: 0x91dc688
                Next-hop reference count: 6
                Source: 10.123.0.3
                Next hop type: Router, Next hop index: 539
                Next hop: 10.123.0.3 via ge-1/3/0.100, selected
                Protocol next hop: 10.123.0.3
                Indirect next hop: 928c0e8 262143
                State:
                Local AS:   100 Peer AS:   100
                Age: 37:53      Metric2: 0
                Task: BGP_100.10.123.0.3+179
                Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
                AS path: 133 134 135 I
                Accepted
                Localpref: 100
                Router ID: 10.0.0.3

       [edit routing-options]
admin@jr1#
阅读(1598) | 评论(0) | 转发(0) |
0

上一篇:009-aggregate路由

下一篇:011-Martian routes

给主人留下些什么吧!~~