Selasa, 06 Desember 2011

lab 20: BGP mindah Jalur- Weight

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#route-map WEIGHT permit 10
R1(config-route-map)#set wi
R1(config-route-map)#set wei
R1(config-route-map)#set weight 100
R1(config-route-map)#router bgp 1
R1(config-router)#nei 12.12.12.2 rout
R1(config-router)#nei 12.12.12.2 route-map WEIGHT in
R1(config-router)#do clear ip bgp *
R1(config-router)#
*Mar  1 00:36:54.591: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Down User reset
*Mar  1 00:36:54.595: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Down User reset
R1(config-router)#
*Mar  1 00:36:55.659: %BGP-5-ADJCHANGE: neighbor 13.13.13.3 Up
*Mar  1 00:36:55.823: %BGP-5-ADJCHANGE: neighbor 12.12.12.2 Up
R1(config-router)#


R1#ping 3.3.3.3 source 1.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/60/72 ms
R1#trace 3.3.3.3 source 1.1.1.1

Type escape sequence to abort.
Tracing the route to 3.3.3.3

  1 12.12.12.2 28 msec 56 msec 40 msec
  2 23.23.23.3 52 msec *  16 msec
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.1/32       0.0.0.0                  0         32768 i
*> 3.3.3.3/32       12.12.12.2                           100 23 i
*                   13.13.13.3             200             0 23 i
R1#sh ip bgp 3.3.3.3
BGP routing table entry for 3.3.3.3/32, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
  Advertised to update-groups:
        1
  23
    12.12.12.2 from 12.12.12.2 (23.23.23.2)
      Origin IGP, localpref 100, weight 100, valid, external, best
  23
    13.13.13.3 from 13.13.13.3 (3.3.3.3)
      Origin IGP, metric 200, localpref 100, valid, external
R1#

Tidak ada komentar:

Posting Komentar