IT运维管理,创造商业价值!
中国IT运维网首页 | 资讯中心 | 运维管理 | 信息安全 | CIO视界 | 云计算 | 最佳案例 | 运维资源 | 专题策划 | 知识库 | 论坛

一个基本的 MPLS BGP VPN 配置

2008年06月24日
/
  ip vrf vrf00001
  rd 888:1
  route-target both 888:1
  ip vrf vrf00002
  rd 888:2
  route-target both 888:2
  route-target import 888:1
  import map vrf00002-import-map
  
  route-map vrf00002-import-map permit 10
  match ...
  
  It is important to note that the route map is only needed for fine tuning. Normal import/export with VRFs can just extended communities. The thought of security depending on getting route maps built right rather scares me. Luckily, basic security is provided at the extended community level, making route hiding the normal situation. Then route maps can be used to limit connectivity to extranet partner sites, if the customers don't wish to do that for themselves by speaking BGP to the PE routers.
  These VRFs would typically then be associated with interfaces:
  
  interface Fastethernet 0/2
  ip vrf forwarding vrf00001
  ip address ...
  interface Fastethernet 0/3
  ip vrf forwarding vrf00002
  ip address ...
  interface Fastethernet 0/4
  ip vrf forwarding vrf00002
  ip address ...
  VRF vrf00002 is associated with two interfaces that connect to two sites for Customer B. I'm deliberately showing FastEthernet, since some people now think that's how we'll be connecting to SPs in metropolitan settings. (Think BLEC: Building Local Exchange Carrier, providing VPN, Internet, and Voice connectivity).
  We need to be speaking MBGP to carry VPN-IPv4 routes and attributes to peer PE routers. We don't need ordinary BGP routes to PE peers however. (On a larger scale, we might use route reflectors vice iMBGP full-mesh peering):
  
  router bgp 888
  no synchronization ! don't do IGP synchronization (since
  ! the IGP won't carry the right routes anyway)
  no bgp default ipv4-activate ! don't do ordinary BGP
  neighbor 10.60.0.5 remote-as 888 ! identify an iBGP neighbor and AS
  neighbor 10.61.0.1 remote-as 888 ! identify another
  address-family vpnv4 unicast
  neighbor 10.60.0.5 activate ! activate session to some MBGP peer
  neighbor 10.61.0.1 activate ! some other MBGP peer
  exit-address-family
  
  Our design might use eBGP to communicate routes to CE routers in a controlled way, to get routes into each VRF. Or it might use static routing, or some other mix. We can also define per-VRF static routes as shown below.
  address-family ipv4 unicast vrf vrf00001
  redistribute static
  redistribute connected
  neighbor 10.20.1.1 remote-as 65535 ! private AS number
  neighbor 10.20.1.1 activate
  no auto-summary
  exit-address-family
  address-family ipv4 unicast vrf vrf00002
  redistribute static
  redistribute connected
  neighbor 10.20.2.2 remote-as 65535
  neighbor 10.20.2.2 activate
  no auto-summary
  exit-address-family
  
  ip route vrf vrf00001 15.0.0.0 255.0.0.0 e0/2 10.20.1.1
发表评论请到:http://bbs.cnitom.com

相关阅读

图文热点

以不变应万变 网络虚拟化应对园区网新挑战
以不变应万变 网络虚拟化应对园区网新挑战Forrester Research的分析师Robert Whiteley认为: “十年以来,虚拟化技术与网络...
OpenShift加入更多新元素 友好面对开发者
OpenShift加入更多新元素 友好面对开发者通过网络进行程序提供的服务称之为SaaS(Software as a Service),而将服务器平台...

本类热点