WOLF-LAB沃尔夫网络实验室中国网络精英的发源地!
24小时咨询热线:173-1636-2402

技术文档

Technical documentation

您当前位置: 首页 > 技术文档 > 详情

华为认证HCIP培训(数通路由交换)实现BGP路由的按需发布实验

发布日期:2023-07-04 浏览次数:500 来源:崔志鹏

华为认证HCIP培训(数通路由交换)实现BGP路由的按需发布实验


WOLFLAB网络技术实验室1.jpg

WOLFLAB官方微信:17316362402,华为认证HCIP培训(数通路由交换)课程联系WOLFLAB预约免费试听!HCIA、HCIP、HCIE培训+学习+考试


Outbound Route Filtering

实现BGP路由的按需发布

 

华为认证HCIP培训(数通路由交换)-实验:

图片 1.png

R1:

ip route-static 192.168.1.0 255.255.255.0 NULL0

ip route-static 192.168.2.0 255.255.255.0 NULL0

bgp 100

 peer 1.1.12.2 as-number 100 

 #

 ipv4-family unicast

  undo synchronization

  import-route static

  peer 1.1.12.2 enable

  peer 1.1.12.2 capability-advertise orf cisco-compatible ip-prefix receive

R2:

ip ip-prefix 1 index 10 deny 192.168.2.0 24

ip ip-prefix 1 index 20 permit 0.0.0.0 0 less-equal 32

bgp 100

 peer 1.1.12.1 as-number 100 

 #

 ipv4-family unicast

  undo synchronization

  peer 1.1.12.1 enable

  peer 1.1.12.1 ip-prefix 1 import

  peer 1.1.12.1 capability-advertise orf cisco-compatible ip-prefix send

 

注意: 

1、 cisco-compatible跟cisco设备对接的时候敲,华为设备之间不用

2、模拟器想要看到现象必须用 cisco-compatible模式

 

此时R1和R2抓到的open报文:携带了兼容cisco的ORF能力,并且R2设备初始状态会发送route-ref,正常境况下是不会发送的

图片 1.png

正常的路由刷新报文:

图片 1.png

做了ORF后的路由刷新报文:新增的ORF信息就是本端设置的前缀列表

图片 1.png


https://www.wolf-lab.com/

WOLFLAB官方微信:17316362402

WOLFLAB官方QQ:2569790740

华为HCIP Datacom培训课程联系WOLFLAB咨询

WOLFLAB实验室(华为授权合作伙伴)HCIE讲师:崔志鹏

返回目录
在线咨询