Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Sunday, August 19, 2012

1st bgp lab... ever...

in my whole life... only took a hundred and eleven years... let's see what all the shit talk is about...




i'm not sure about the circles...

r1 (isp1)

int lo0
des isp1 net
ip add 10.1.1.1 255.255.255.0

int s1/1
des isp1-->ita
ip add 10.0.0.1 255.255.255.252
clock rat 128000
no shut

r2 (ita)

int lo0
des ita core net 1
ip add 192.168.0.1 255.255.255.0

int lo1
des ita core net 2
ip add 192.168.1.1 255.255.255.0

int s1/1
des ita-->isp1
ip add 10.0.0.2 255.255.255.0
no shut

int s1/2
des iya-->isp2
ip add 172.16.0.2 255.255.255.252
clock rat 128000
no shut

r3 (isp2)


int lo0
des isp2 net
ip add 172.16.1.1 255.255.255.0

int s1/2
des isp1-->ita
ip add 172.16.0.1 255.255.255.252
no shut

ping what you can using ninja focus...

isp1

router bgp 200
neighbor 10.0.0.2 remote-as 100
netw 10.1.1.0 mask 255.255.255.0

isp2

router bgp 300
neighbor 172.16.0.2 remote-as 100
netw 172.16.1.0 mask 255.255.255.0

ita

router bgp 100
neigh 10.0.0.1 remote-as 200
neigh 172.16.0.1 remote-as 300
netw 192.168.0.0
netw 192.168.1.0

it's really my second bgp adjacency change... i lied...

ita#
*Aug 19 19:13:11: %BGP-5-ADJCHANGE: neighbor 10.0.0.1 Up
ita#
*Aug 19 19:13:13: %SYS-5-CONFIG_I: Configured from console by console
ita#
*Aug 19 19:13:17: %BGP-5-ADJCHANGE: neighbor 172.16.0.1 Up

ita#sh ip bgp
BGP table version is 5, local router ID is 192.168.1.1
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
 *>  10.1.1.0/24      10.0.0.1                 0             0 200 i
 *>  172.16.1.0/24    172.16.0.1               0             0 300 i
 *>  192.168.0.0      0.0.0.0                  0         32768 i
 *>  192.168.1.0      0.0.0.0                  0         32768 i

isp1#sh ip bgp
BGP table version is 5, local router ID is 10.1.1.1
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
 *>  10.1.1.0/24      0.0.0.0                  0         32768 i
 *>  172.16.1.0/24    10.0.0.2                               0 100 300 i
 *>  192.168.0.0      10.0.0.2                 0             0 100 i
 *>  192.168.1.0      10.0.0.2                 0             0 100 i

shut int lo0

isp1#sh ip bgp
BGP table version is 6, local router ID is 10.1.1.1
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
 *>  172.16.1.0/24    10.0.0.2                               0 100 300 i
 *>  192.168.0.0      10.0.0.2                 0             0 100 i
 *>  192.168.1.0      10.0.0.2                 0             0 100 i

no shut it...

isp1#sh ip bgp
BGP table version is 7, local router ID is 10.1.1.1
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
 *>  10.1.1.0/24      0.0.0.0                  0         32768 i
 *>  172.16.1.0/24    10.0.0.2                               0 100 300 i
 *>  192.168.0.0      10.0.0.2                 0             0 100 i
 *>  192.168.1.0      10.0.0.2                 0             0 100 i

ita#sh ip bgp
BGP table version is 7, local router ID is 192.168.1.1
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
 *>  10.1.1.0/24      10.0.0.1                 0             0 200 i
 *>  172.16.1.0/24    172.16.0.1               0             0 300 i
 *>  192.168.0.0      0.0.0.0                  0         32768 i
 *>  192.168.1.0      0.0.0.0                  0         32768 i

isp2#sh ip bgp summ
BGP router identifier 172.16.1.1, local AS number 300
BGP table version is 7, main routing table version 7
4 network entries using 576 bytes of memory
4 path entries using 320 bytes of memory
3/3 BGP path/bestpath attribute entries using 408 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1352 total bytes of memory
BGP activity 5/1 prefixes, 5/1 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
172.16.0.2      4          100      28      25        7    0    0 00:19:15        3

from: http://www.ciscopress.com/articles/article.asp?p=1565538&seqNum=3

In most IGPs, the network command starts the routing process on an interface. In BGP, the command tells the router to originate an advertisement for that network. The network does not have to be connected to the router; it just has to be in the routing table. In theory, it can even be a network in a different autonomous system (not usually recommended).

When advertising a network, BGP assumes you are using the default classful subnet mask. If you want to advertise a subnet, you must use the optional keyword mask and specify the subnet mask to use. Note that this is a subnet mask, not the inverse mask used by OSPF and EIGRP network statements. The routing table must contain an exact match (prefix and subnet mask) to the network listed in the network statement before BGP advertises the route.

No comments:

Post a Comment