设计思路:
第一阶段 路由通信
第一步:
创建 VRF 定义RT RD
接口划入VRF
12 运行动态协议 45 之间相同做法 eigrp 需要声明
2 4 BGP
MP–BGP (VPNv4–BGP)
动态路由重发布 BGP 识别RT BGP重发布到 5
双层标签
客户和运营商的边界路由器启动相应的路由协议,然后在PE路由器的路由表下 创建多个虚拟路由表(VRF)并创建一个标识RD值 (为了区分不同的客户之间将路由重发布到主运营商的路由表中,IP地址 可能会出现相同的) ;
第二步: VPNv4路由(传递IPV6的路由为VPNv6路由) 重发布到主路由表中, 则主网络中必须开启BGP邻居 ; 2 4 之间必须建立 BGP邻居 和VPNv4的邻居 中间的路由器例如 3 不需要考虑 (BGP传递路由使用单播,TCP三次握手);
第三步 由于 RD VRF 只具有本地意义,所以需要 RT值;RT值重发布到BGP中,变成扩展团体属性携带在路由中;从而路由导入和导出只能进入RT值相同的VRF中;
第四步
4 5 之间建立IGP协议 将4中的BGP路由表与5中VRF的RT值相同的路由重发布到5中。
R1配置
R1#show run
Building configuration…
Current configuration : 1454 bytes
upgrade fpd auto
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R1
boot-start-marker
boot-end-marker
logging message-counter syslog
no aaa new-model
ip source-route
no ip icmp rate-limit unreachable
ip cef
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
memory-size iomem 0
archive
log config
hidekeys
ip tcp synwait-time 5
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
interface Serial1/0
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
ip forward-protocol nd
no ip http server
no ip http secure-server
no cdp log mismatch duplex
control-plane
mgcp fax t38 ecm
gatekeeper
s
MPLS实验
最新推荐文章于 2025-03-28 10:02:47 发布