华为 BGP选路规则

[

[R1]ip route-static 2.2.2.0 24 12.1.1.2         配置静态路由

[R1]bgp 100        开启BGP,AS为100
[R1-bgp]router-id 1.1.1.1        配置BGP的ID为1.1.1.1
[R1-bgp]peer 2.2.2.2 connect-interface LoopBack 0         改变更新源
[R1-bgp]peer 2.2.2.2 ebgp-max-hop 255        设置EBGP的报文TTL值
[R4-bgp]peer 2.2.2.2 next-hop-local         设置下一跳自我
[R1-bgp]network 10.1.1.0 24                宣告网络
[R3-bgp]aggregate 10.1.0.0 16 detail-suppressed        汇总路由(不包含明细)

BGP:IBGP EBGP

1、首选值(PrefVal)
[R4-bgp]peer 3.3.3.3 preferred-value 1 修改首选值
2、本地优先级(LocPrf) IBGP传递默认100
3、优选起源于本地的路由
(1)优选聚合的路由:aggregate , summary
(2)本地network的路由
(3)外部路由 import-route
4、AS-path
additive 在原本的基础上添加AS
overwrite 覆盖原本AS
5、BGP路由的类型 Origin
(1)IGP
(2)EGP
(3)incomplete

华为路由策略

[R4]route-policy LP permit node 1  开启策略路由
[R4-route-policy]if-match acl huawei         匹配ACL标记的网络
[R4-route-policy]apply local-preference 300  应用相关策略
[R4-bgp]peer 3.3.3.3 route-policy LP import         对BGP的邻居应用策略路由
[R2-route-policy]apply as-path 400 500 600 additive        添加AS
[R2-route-policy]apply origin incomplete         修改路由Origin类型
ACL:
[R4]acl name huawei 2000
[R4-acl-basic-huawei]rule 1 permit source 10.1.1.0 0.0.0.255
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值