viernes, 24 de mayo de 2013

BGP as-path preepend



R1#sh run | sec bgp
router bgp 65000
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 neighbor 2.2.2.2 remote-as 65000
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 next-hop-self
 neighbor 3.3.3.3 remote-as 65000
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 next-hop-self
 neighbor 4.4.4.4 remote-as 65001
 neighbor 4.4.4.4 ebgp-multihop 2
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 route-map red3 out
R4#sh ip bgp
BGP table version is 54, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
     Network          Next Hop            Metric LocPrf Weight Path
 r>  1.1.1.0/24       1.1.1.1                  0             0 65000 i
 *>  2.2.2.0/24       1.1.1.1                                0 65000 i
 *>i 3.3.3.0/24       6.6.6.6                  0    100      0 65000 i
 *                    1.1.1.1                                0 65000 65000 65000 65000 i
 *>  4.4.4.0/24       0.0.0.0                  0         32768 i
 * i 5.5.5.0/24       5.5.5.5                  0    100      0 i
 *>                   40.40.40.2         2297856         32768 i
 * i 6.6.6.0/24       6.6.6.6                  0    100      0 i
 *>                   40.40.40.2         2809856         32768 i
 *>  10.10.10.0/30    1.1.1.1                                0 65000 i
 *>  10.10.10.4/30    1.1.1.1                                0 65000 i
 *>i 10.10.10.8/30    6.6.6.6                  0    100      0 65000 i
 *>  40.40.40.0/30    0.0.0.0                  0         32768 i


R5#trace 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
VRF info: (vrf in name/id, vrf out name/id)
  1 40.40.40.6 10 msec 10 msec 10 msec
  2 30.30.30.1 23 msec 19 msec 19 msec
  3 10.10.10.5 [AS 65000] 32 msec 30 msec *
R5#trace 13.13.13.13
Type escape sequence to abort.
Tracing the route to 13.13.13.13
VRF info: (vrf in name/id, vrf out name/id)
  1 40.40.40.1 10 msec 9 msec 9 msec
  2 20.20.20.1 19 msec 21 msec 22 msec
  3 10.10.10.2 [AS 65000] 21 msec 33 msec *
R5#

No hay comentarios:

Publicar un comentario