quagga关于vpnv4的配置

来源:互联网 发布:淘宝店铺托管协议 编辑:程序博客网 时间:2024/06/05 10:45
I'm struggling of how to configure VPNv4 routers (AS:NN).  Can anyone help?
 
Here is the topology:
 
     RR1 --------- PE1 --------- CE1
  &nbspp;     (AS 8034)                 (AS 64512)
 
Every time, I have these lines uncommented in PE1 , it crashes.
 
 !network 127.15.3.0/30 rd 8034:100 tag 100
 !network 127.0.10.0/24 rd 8034:101 tag 101
 
Also, there was a bug reported that Zebra needs some spaces between the statements in address-family vpnv4.
 
 address-family vpnv4 unicast
 neighbor 127.0.10.1 activate
 !
 !
 !
 neighbor 127.15.3.2 activate
 !
 !
 !
RR1
===========================
!
! Zebra configuration saved from vty
!   2006/05/25 03:32:24
!
hostname rr1
password rr1
enable password rr1
log file /tmp/rr1.log
log stdout
!
debug bgp
debug bgp events
debug bgp keepalives
debug bgp updates
!
bgp config-type cisco
!
router bgp 8034
 bgp router-id 127.0.10.1
 bgp cluster-id 127.0.10.1
 neighbor 127.0.3.1 remote-as 8034
 neighbor 127.0.3.1 port 18002
 neighbor 127.0.3.1 update-source 127.0.10.1
 neighbor 127.0.3.1 capability dynamic
!
 address-family ipv4
 redistribute connected
 neighbor 127.0.3.1 activate
 neighbor 127.0.3.1 route-reflector-client
 neighbor 127.0.3.1 send-community both
 network 127.0.3.0 mask 255.255.255.0
 no auto-summary
 no synchronization
 exit-address-family
!
 address-family vpnv4 unicast
 neighbor 127.0.3.1 activate
 neighbor 127.0.3.1 route-reflector-client
 exit-address-family
!
line vty
!
 
 
PE1
=========================
!
! Zebra configuration saved from vty
!   2006/05/25 02:53:39
!
hostname pe1
password pe1
enable password pe1
log file /tmp/pe1.log
log stdout
log syslog
!
debug bgp
debug bgp events
debug bgp keepalives
debug bgp updates
debug bgp fsm
!
bgp config-type cisco
!
router bgp 8034
 bgp router-id 127.0.3.1
 neighbor 127.0.10.1 remote-as 8034
 neighbor 127.0.10.1 port 18001
 neighbor 127.0.10.1 update-source 127.0.3.1
 neighbor 127.0.10.1 weight 10
 neighbor 127.0.10.1 distribute-list 4 out
 neighbor 127.15.3.2 remote-as 64512
 neighbor 127.15.3.2 port 18003
 neighbor 127.15.3.2 update-source 127.0.3.1
!
 address-family ipv4
 neighbor 127.0.10.1 activate
 neighbor 127.15.3.2 activate
 network 127.0.10.0 mask 255.255.255.0
 network 127.15.3.0 mask 255.255.255.252
 no auto-summary
 no synchronization
 exit-address-family
!
 address-family vpnv4 unicast
 neighbor 127.0.10.1 activate
 !
 !
 !
 neighbor 127.15.3.2 activate
 !
 !
 !
 !network 127.15.3.0/30 rd 8034:100 tag 100
 !network 127.0.10.0/24 rd 8034:101 tag 101
 !
 exit-address-family
!
line vty
!
CE1
=========================

hostname ce1
password ce1
enable password ce1
 
router bgp 64512
 bgp router-id 127.15.3.2
 neighbor 127.0.3.1 remote-as 8034
 neighbor 127.0.3.1 port 3002
 neighbor 127.0.3.1 update-source 127.15.3.2
 address-family ipv4
 network 127.15.3.0/30
 network 204.128.0.0/27
 
log file /tmp/ce1.log
1 0