配置静态路由实现VRF路由泄露

vrf与vrf互访、vrf与public互访通过配置静态路由来实现路由泄露场景:配置静态路由实现VRF路由泄露PC1 (1.1.1.2 )绑定vrf1,网关为1.1.1.1; 

PC2 (2.2.2.2 )绑定vrf2,网关为2.2.2.1; 

PC3 (3.3.3.2 )绑定vrf3,网关为3.3.3.1; 

PC4 (4.4.4.2 ),网关为4.4.4.1。

场景一:PC1与PC2互访

R1路由配置:

ip route-static vpn-instance 1 2.2.2.0 255.255.255.0 (Ethernet0/0/0)或者(vpn-instance 2 2.2.2.2)
ip route-static vpn-instance 2 1.1.1.0 255.255.255.0 (Ethernet0/0/1)或者(vpn-instance 1 1.1.1.2)

场景二:PC1与PC3互访 

R1路由配置:

ip route-static vpn-instance 1 3.3.3.0 255.255.255.0 5.5.5.2 public
ip route-static 1.1.1.0 255.255.255.0 (vpn-instance 1 1.1.1.2)或者(Ethernet0/0/1)  

R2路由配置:

ip route-static 3.3.3.0 255.255.255.0 (vpn-instance 3 3.3.3.2)或者(Ethernet0/0/0)
ip route-static vpn-instance 3 1.1.1.0 255.255.255.0 5.5.5.1 public

场景三:PC1与PC4互访

R1路由配置:

ip route-static vpn-instance 1 4.4.4.0 255.255.255.0 5.5.5.2 public
ip route-static 1.1.1.0 255.255.255.0 (vpn-instance 1 1.1.1.2)或者(Ethernet0/0/1) 

R2路由配置:

ip route-static 1.1.1.0 255.255.255.0 5.5.5.1

场景四:PC3与PC4互访 

R2路由配置:

ip route-static vpn-instance 3 4.4.4.0 255.255.255.0 (4.4.4.2 public)或者(Ethernet0/0/1) 
ip route-static 3.3.3.0 255.255.255.0 (vpn-instance 3 3.3.3.2)或者(Ethernet0/0/0)


原文始发于微信公众号(云网数端):配置静态路由实现VRF路由泄露

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/259549.html

(0)
李, 若俞的头像李, 若俞

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!