频 道 直 达 - 新闻 - 读书 - 培训 - 教程 - 前沿 - 组网 - 系统应用 - 安全 - 编程 - 存储 - 操作系统 - 数据库 - 服务器 - 专题 - 产品 - 案例库 - 技术圈 - 博客 - BBS
51CTO.COM_中国领先的IT技术网站
找资料:

mpls配置实例

作者: 出处:cisco.com  (  ) 砖  (  ) 好  评论 ( ) 条  进入论坛
更新时间:2006-07-05 09:46
关 键 词:mpls
阅读提示:mpls配置实例

 
p#s run 
Building configuration... 
Current configuration : 998 bytes
! 
version 12.2 
service timestamps debug uptime 
service timestamps log uptime 
no service password-encryption 
! 
hostname p 
! 
enable secret 5 $1$LWx8$I1u9ZMT7AUUU1H9tE1PiM. 
! 
memory-size iomem 15 
ip subnet-zero 
ip cef 
no ip domain-lookup 
no ftp-server write-enable 
! 
! 
! 
interface Loopback0 
ip address 202.98.4.3 255.255.255.255 
! 
interface Ethernet0/0 
ip address 10.1.1.10 255.255.255.252 
ip ospf cost 20 
half-duplex 
tag-switching mtu 1508 
tag-switching ip 
! 
interface Serial0/0 
no ip address 
shutdown 
no fair-queue 
! 
interface Serial0/1 
no ip address 
shutdown 
! 
interface Serial0/2 
ip address 10.1.1.6 255.255.255.252 
ip ospf cost 20 
tag-switching mtu 1508 
tag-switching ip 
clockrate 64000 
! 
router ospf 100 
log-adjacency-changes 
redistribute connected subnets 
redistribute static subnets 
network 10.1.1.6 0.0.0.0 area 0 
network 10.1.1.10 0.0.0.0 area 0 
! 
ip http server 
ip classless 
ip pim bidir-enable 
line con 0 
line aux 0 
line vty 0 4 
password runway 
login 
! 
end 
pe1#show run 
Building configuration... 
Current configuration : 1736 bytes 
! 
version 12.2 
no parser cache 
no service single-slot-reload-enable 
service timestamps debug uptime 
service timestamps log uptime 
no service password-encryption 
! 
hostname pe1 
! 
logging rate-limit console 10 except errors 
enable secret 5 $1$Y7mJ$nQ8wqPkeGiH.phCV1I0OC. 
! 
ip subnet-zero 
ip cef 
no ip domain-lookup 
! 
ip vrf vpna 
rd 1:100 
route-target export 200:1 
route-target import 200:1 
no ip dhcp-client network-discovery 
no ftp-server write-enable 
! 
! 
controller E1 3/0 
! 
! 
interface Loopback0 
ip address 202.98.4.1 255.255.255.255 
! 
interface Ethernet0/0 
ip vrf forwarding vpna 
ip address 172.16.1.1 255.255.255.252 
half-duplex 
tag-switching ip 
! 
interface Serial0/0 
ip address 10.1.1.5 255.255.255.252 
ip ospf cost 20 
tag-switching mtu 1508 
tag-switching ip 
! 
interface Serial0/1 
ip address 10.1.1.1 255.255.255.252 
ip ospf cost 100 
tag-switching ip 
clockrate 64000 
! 
router ospf 100 
log-adjacency-changes 
redistribute connected metric-type 1 subnets 
redistribute static metric-type 1 subnets 
network 10.1.1.0 0.0.0.255 area 0 
network 202.98.4.0 0.0.0.255 area 0 
! 
router bgp 100 
no bgp default ipv4-unicast 
bgp log-neighbor-changes 
neighbor 202.98.4.2 remote-as 100 
neighbor 202.98.4.2 update-source Loopback0 
neighbor 202.98.4.2 version 4 
neighbor 202.98.4.2 activate 
! 
address-family ipv4 vrf vpna 
redistribute connected 
redistribute static 
no auto-summary 
no synchronization 
exit-address-family 
! 
address-family vpnv4 
neighbor 202.98.4.2 activate 
neighbor 202.98.4.2 send-community extended 
exit-address-family 
! 
ip http server 
ip classless 
ip route vrf vpna 192.168.3.0 255.255.255.0 172.16.1.2 
ip ospf name-lookup 
! 
! 
! 
line con 0 
line aux 0 
line vty 0 4 
password runway 
login 
! 
end 
pe2#s run 
Building configuration... 
Current configuration : 1822 bytes 
! 
version 12.2 
no parser cache 
no service single-slot-reload-enable 
service timestamps debug uptime 
service timestamps log uptime 
no service password-encryption 
! 
hostname pe2 
! 
logging rate-limit console 10 except errors 
enable secret 5 $1$1fTh$xuf9cOlwU870HmNykwv3D1 
! 
ip subnet-zero 
ip cef 
no ip domain-lookup 
! 
ip vrf vpna 
rd 1:100 
route-target export 200:1 
route-target import 200:1 
no ip dhcp-client network-discovery 
no ftp-server write-enable 
interface Loopback0 
ip address 202.98.4.2 255.255.255.255 
! 
interface Tunnel0 
ip vrf forwarding vpna 
no ip address 
! 
interface Ethernet0/0 
ip address 10.1.1.9 255.255.255.252 
ip ospf cost 20 
half-duplex 
tag-switching ip 
! 
interface Serial0/0 
ip address 10.1.1.2 255.255.255.252 
ip ospf cost 100 
tag-switching ip 
no fair-queue 
! 
interface Serial0/1 
no ip address 
shutdown 
! 
interface FastEthernet1/0 
ip vrf forwarding vpna 
ip address 172.16.2.1 255.255.255.0 
duplex auto 
speed auto 
tag-switching ip 
! 
router ospf 100 
log-adjacency-changes 
redistribute connected metric-type 1 subnets 
redistribute static metric-type 1 subnets 
network 10.1.1.0 0.0.0.255 area 0 
! 
router bgp 100 
no synchronization 
no bgp default ipv4-unicast 
bgp log-neighbor-changes 
neighbor 202.98.4.1 remote-as 100 
neighbor 202.98.4.1 update-source Loopback0 
neighbor 202.98.4.1 version 4 
neighbor 202.98.4.1 activate 
no auto-summary 
! 
address-family ipv4 vrf vpna 
redistribute connected 
redistribute static 
no auto-summary 
no synchronization 
exit-address-family 
! 
address-family vpnv4 
neighbor 202.98.4.1 activate 
neighbor 202.98.4.1 send-community extended 
no auto-summary 
exit-address-family 
! 
ip http server 
ip classless 
ip route vrf vpna 192.168.4.0 255.255.255.0 172.16.2.2 
! 
! 
! 
line con 0 
line aux 0 
line vty 0 4 
password runway 
login 
! 
end
 
(责任编辑: 51CTO.com TEL:010-68476606)

发表
查看
我也说两句

匿名发表

(如果看不清请点击图片进行更换)


中 国 领 先 的 IT 技 术 网 站 ·
技 术 成 就 梦 想
·路由器设置与口令恢复 (查看60640次)
·常用交换机典型配置 (查看36407次)
·网络管理员考试全真模拟试题(八.. (查看32855次)
·三层交换技术专题 (查看28555次)
·子网掩码教程 (查看25829次)
订阅技术快讯
电子杂志下载
名称:网络安全精品应用黄皮书
简介:《2007精品网络安全黄皮书》包括了9个大类24个小类, 800余篇文章,内容包含了熊猫烧香病毒、DDOS攻击、ARP病等热点问题的介绍及解决方案。从病毒查杀、防范、系统、数据等各方面的安全设置到黑客技术的了解、防范,涉及到了安全应用的全部领域, 由浅至深内容全面。
名称:Vista精品应用黄皮书
简介:《Vista精品应用黄皮书》囊括了Vista的各方面内容。此次的精简版,是将里面的内容做了提取,便于用户下载和使用。内容包含了各种Vista的安装与实施、技巧与解析以及各种Vista相关学习文档和相关软件的安全下载。该电子书是了解和应用Vista人员必备的工具手册,并且也是第一本
名称:2006中国IT论坛精品集合
简介:本书由“51CTO论坛推广联盟”制作完成。书中所有内容均来自各联盟成员的论坛(网站)。制作本书的目的是为了集中大家的优势资源,将更多更精彩的内容带给广大技术爱好者。本书是联盟成立以来制作的第一本书。
关键字阅读
频道精选
主编信箱 热线:010-66476606 告诉我们您想看的:专题 文章
关于我们 | 诚聘英才 | 联系我们 | 网站大事 | 意见反馈 | 网站地图
Copyright©2005-2007 51CTO.COM 版权所有