HSRP Integration to MPLS VPN
2008-02-23 04:54:31来源:互联网 阅读 ()
R1 hostname R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
no ip directed-broadcast
!
interface Loopback10
ip address 10.10.10.10 255.255.255.255
no ip directed-broadcast
!
interface Ethernet1/1
ip address 192.168.123.1 255.255.255.0
no ip directed-broadcast
full-duplex
!
ip route 0.0.0.0 0.0.0.0 192.168.123.23
R2 hostname R2
!
ip cef
ip vrf SiteA
rd 100:100
route-target export 100:100
route-target import 100:100
!
mpls label protocol ldp
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
no ip directed-broadcast
!
interface Ethernet1/1
ip vrf forwarding SiteA
ip address 192.168.123.2 255.255.255.0
no ip redirects
no ip directed-broadcast
full-duplex
standby ip 192.168.123.23
standby 1 track Ethernet1/4
!
interface Ethernet1/4
ip address 192.168.24.2 255.255.255.0
no ip directed-broadcast
full-duplex
tag-switching ip
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.168.24.0 0.0.0.255 area 0
!
router bgp 100
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf SiteA
redistribute static
no synchronization
exit-address-family
!
ip route vrf SiteA 10.10.10.10 255.255.255.255 192.168.123.1
!
tag-switching tdp router-id Loopback0
R3 hostname R3
!
ip cef
ip vrf SiteA
rd 100:100
route-target export 100:100
route-target import 100:100
!
mpls label protocol ldp
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
no ip directed-broadcast
!
interface Ethernet1/1
ip vrf forwarding SiteA
ip address 192.168.123.3 255.255.255.0
no ip redirects
no ip directed-broadcast
full-duplex
standby ip 192.168.123.23
standby 1 track Ethernet1/4
!
interface Ethernet1/4
ip address 192.168.34.3 255.255.255.0
no ip directed-broadcast
full-duplex
tag-switching ip
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.168.34.0 0.0.0.255 area 0
!
router bgp 100
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf SiteA
redistribute static
no synchronization
exit-address-family
!
ip route vrf SiteA 10.10.10.10 255.255.255.255 192.168.123.1
!
tag-switching tdp router-id Loopback0
R4 hostname R4
!
ip cef
mpls label protocol ldp
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
no ip directed-broadcast
!
interface Ethernet1/2
ip address 192.168.24.4 255.255.255.0
no ip directed-broadcast
full-duplex
tag-switching ip
!
interface Ethernet1/3
ip address 192.168.34.4 255.255.255.0
no ip directed-broadcast
full-duplex
tag-switching ip
!
interface Ethernet1/5
ip address 192.168.45.4 255.255.255.0
no ip directed-broadcast
full-duplex
tag-switching ip
!
router ospf 100
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 192.168.24.0 0.0.0.255 area 0
network 192.168.34.0 0.0.0.255 area 0
network 192.168.45.0 0.0.0.255 area 0
!
router bgp 100
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
neighbor PEER peer-group
neighbor PEER remote-as 100
neighbor PEER update-source Loopback0
neighbor PEER route-reflector-client
neighbor 2.2.2.2 peer-group PEER
neighbor 3.3.3.3 peer-group PEER
neighbor 5.5.5.5 peer-group PEER
no auto-summary
!
address-family vpnv4
neighbor PEER activate
neighbor PEER send-community extended
neighbor PEER route-reflector-client
neighbor 2.2.2.2 peer-group PEER
neighbor 3.3.3.3 peer-group PEER
neighbor 5.5.5.5 peer-group PEER
exit-address-family
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.79.254
!
tag-switching tdp router-id Loopback0
R5 hostname R5
!
ip cef
ip vrf SiteA
rd 100:100
route-target export 100:100
route-target import 100:100
!
mpls label protocol ldp
!
interface Loopback0
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash