[cisco] Re: schimbat next-hop, cont

ciprian niculescu <[email protected]> Tue, 06 Jul 2004 11:51:51 +0200
Newsgroups gmane.org.user-groups.rlug.general,gmane.org.user-groups.rlug.cisco
Message-ID <[email protected]>
nu merge, nu exista in adr-fam-vpnv4 la neib default-orig, iar in alta 
parte zice sa activez mai intai peerul.
uite configul complet

BR - ospf - PE1 - iMBGP - PE3

practic eu vreau sa fac BR - PE1 - PE3 - CE si vreau sa ajunga la CE o 
ruta default, si am zis sa o propag pe cea din BR, dar se pare ca nu 
vrea, ca PE1/3 o schimba cu self, si CE nu intelege nimic din ruta aia

BR:
router ospf 10
  log-adjacency-changes
  network 15.15.22.0 0.0.0.255 area 10
  network 192.168.1.0 0.0.0.255 area 10 (un test de ruta, am un loop10)
  default-information originate
!
ip route 0.0.0.0 0.0.0.0 15.15.11.1

PE1:
ip vrf vpn_int
  rd 3:3
  route-target export 3:3
  route-target import 3:3
  route-target import 10:201
!
interface Loopback0
  ip address 1.1.1.1 255.255.255.255
! ospf catre BR
router ospf 1 vrf vpn_int
  log-adjacency-changes
  redistribute bgp 1000 subnets
  network 15.15.22.0 0.0.0.255 area 10
!
router bgp 1000
  bgp log-neighbor-changes
  neighbor 3.3.3.3 remote-as 1000
  neighbor 3.3.3.3 update-source Loopback0
  !
  address-family ipv4
  no neighbor 3.3.3.3 activate
  no auto-summary
  no synchronization
  exit-address-family
  !
  address-family vpnv4
  neighbor 3.3.3.3 activate
  neighbor 3.3.3.3 send-community extended
  exit-address-family
  !
  address-family ipv4 vrf vpn_int
  redistribute ospf 1 vrf vpn_int match internal external 1 external 2
  default-information originate
  no auto-summary
  no synchronization
  exit-address-family
!

PE1#sh ip ro vrf vpn_int
Gateway of last resort is 157.159.225.1 to network 0.0.0.0
C       15.15.22.0/24 is directly connected, FastEthernet0/1.300
O       192.168.1.1 [110/2] via 15.15.22.1, 00:05:51, FastEth0/1.300
O*E2 0.0.0.0/0 [110/1] via 15.15.22.1, 00:05:51, FastEthernet0/1.300

PE1#sh ip bgp vpnv4 all neighbors 3.3.3.3 advertised-routes
BGP table version is 27, local router ID is 1.1.1.1
    Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 3:3 (default for vrf vpn_int)
*> 0.0.0.0          15.15.22.1            1         32768 ?
*> 15.15.22.0/24 0.0.0.0                  0         32768 ?
*> 192.168.1.1/32   15.15.22.1            2         32768 ?

DECI O DA BINE CU NEXT-HOP CUM TREBUIE

PE3:
ip vrf vpn_int
  rd 3:3
  route-target export 3:3
  route-target import 3:3
!
ip vrf vpn_voip
  rd 10:201
  route-target export 10:201
  route-target import 10:201
  route-target import 3:3
!
interface Loopback0
  ip address 3.3.3.3 255.255.255.255
!
router bgp 1000
  bgp log-neighbor-changes
  neighbor 1.1.1.1 remote-as 1000
  neighbor 1.1.1.1 update-source Loopback0
  !
  address-family ipv4
  no neighbor 1.1.1.1 activate
  no auto-summary
  no synchronization
  exit-address-family
  !
  address-family vpnv4
  neighbor 1.1.1.1 activate
  neighbor 1.1.1.1 send-community extended
  exit-address-family
  !
  address-family ipv4 vrf vpn_voip
  redistribute rip
  no auto-summary
  no synchronization
  exit-address-family
  !
  address-family ipv4 vrf vpn_int
  no auto-summary
  no synchronization
  exit-address-family
!

PE3#sh ip ro vrf vpn_int
Gateway of last resort is 1.1.1.1 to network 0.0.0.0
B       192.168.1.1 [200/2] via 1.1.1.1, 00:11:05
B*   0.0.0.0/0 [200/1] via 1.1.1.1, 00:11:05

DE CE A TRECUT CU 1.1.1.1?????

PE3#sh ip bgp vpnv4 all neighbors 1.1.1.1 routes
BGP table version is 36, local router ID is 3.3.3.3
Route Distinguisher: 3:3 (default for vrf vpn_int)
*>i0.0.0.0          1.1.1.1                  1    100      0 ?
r>i15.15.22.0/24 1.1.1.1                  0    100      0 ?
*>i192.168.1.1/32   1.1.1.1                  2    100      0 ?
Route Distinguisher: 10:201 (default for vrf vpn_voip)
*>i0.0.0.0          1.1.1.1                  1    100      0 ?
*>i15.15.22.0/24 1.1.1.1                  0    100      0 ?
*>i192.168.1.1/32   1.1.1.1                  2    100      0 ?

idei????


C