mpls作业

[r2]bgp 100    
[r2-bgp]router-id 2.2.2.2设置 BGP 进程的路由器ID为 2.2.2.2
[r2-bgp]peer 5.5.5.5 as-number 100    配置与 AS号为 100 的 BGP 邻居 5.5.5.5 的对等关系
[r2-bgp]peer 5.5.5.5 connect-interface lo 0与对等关系的 BGP 邻居 5.5.5.5 的连接接口为 lo 0
[r2-bgp]peer 6.6.6.6 as-number 100 
[r2-bgp]peer 6.6.6.6 connect-interface lo 0
[r6]rip        
[r6]rip 1 vpn-instance 3    在 RIP 进程中创建 VPN 实例 3
[r6-rip-1]version 2    
[r6-rip-1]network 68.0.0.0    将网络 68.0.0.0 加入到 RIP 实例 1 的网段中
[r6-rip-1]import-route bgp在 RIP 实例 1 中导入来自 BGP 的路由
[r6]bgp 100
[r6-bgp]ipv4-family vpn-instance 3在 BGP 进程中创建 VPN 实例 3
[r6-bgp-3]import-route rip 1在 BGP 实例 3 中导入来自 RIP 实例 1 的路由
[r4]mpls lsr-id 4.4.4.4设置 MPLS 的 LSR ID 为 4.4.4.4
[r4]mpls 
[r4-mpls]mpls ld
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]mpls 启动接口 GigabitEthernet0/0/0 的 MPLS
[r4-GigabitEthernet0/0/0]mpls ldp启动接口 GigabitEthernet0/0/0 的 MPLS LDP
[r2]ip vpn-instance  1
[r2-vpn-instance-1]route-distinguisher 1:1    设置 VPN 实例 1 的路由分发器为 1:1
[r2-vpn-instance-1-af-ipv4]vpn-target 1:1 export-extcommunity 配置 VPN 实例 1 的导出路由目标为 1:1,并使用扩展社区标识导出路由
[r2-vpn-instance-1-af-ipv4]vpn-target 2:2 3:3 import-extcommunity 配置 VPN 实例 1 的导入路由目标为 2:2 和 3:3,并使用扩展社区标识导入路由
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]undo ip address 
[r2-GigabitEthernet0/0/0]ip binding vpn-instance 1将接口 GigabitEthernet0/0/0 绑定到 VPN 实例 1
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24为接口 GigabitEthernet0/0/0 配置 IP 地址为 12.1.1.2/24
[r2]ip route-static vpn-instance 1 1.1.1.1 32 12.1.1.1在 VPN 实例 1 中添加静态路由,将目标地址 1.1.1.1/32 下一跳为 12.1.1.1
[r2]bgp 100
[r2-bgp]ip    
[r2-bgp]ipv4-family vpn-instance 1在 BGP 进程中创建 VPN 实例 1
[r2-bgp-1]import-route  static 在 BGP 实例 1 中导入来自静态路由的路由
[r8]rip 1 
[r8-rip-1]version 2
[r8-rip-1]network 8.0.0.0
[r8-rip-1]network 68.0.0.0
[r7]ospf 2 router-id 7.7.7.7
[r7-ospf-2]area 0
[r7-ospf-2-area-0.0.0.0]network 0.0.0.0 255.255.255.255

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值