Sie sind auf Seite 1von 15

Customer1(config)# router bgp 100 Customer1(config-router)# neighbor 130.0.11.2 remote-as 200 Customer1(config-router)# neighbor 130.0.12.

2 remote-as 200 Customer1(config-router)# network 130.0.1.0 mask 255.255.255.0 Customer1(config-router)# network 130.0.2.0 mask 255.255.255.0 Customer1(config-router)# neighbor 130.0.11.2 password cisco Customer1(config-router)# neighbor 130.0.12.2 password cisco

In the IGP, OSPF is the routing protocol on three ISP. ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 130.0.12.1 remote-as 100 ISP_R2# debug ip bgp events ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 130.0.11.2 password cisco ISP_R2# show ip bgp summary ISP_R2# show ip bgp neighbors 130.0.12.1 routes ISP_R2# ping 130.0.1.1 ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 130.0.11.1 remote-as 100 ISP_R1# show ip bgp neighbor 130.0.11.1 received-routes % Inbound soft reconfiguration not enabled on 130.0.11.1 ISP_R1(config-router)# neighbor 130.0.11.1 soft-reconfiguration inbound ISP_R1# show ip bgp neighbor 130.0.11.1 received-routes ISP_R1# show ip bgp neighbor 130.0.11.1 routes ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 192.168.13.2 remote-as 200

ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 192.168.23.1 remote-as 200 ISP_R3(config)# router bgp 200 ISP_R3(config-router)# neighbor 192.168.13.1 remote-as 200 ISP_R3(config-router)# neighbor 192.168.23.2 remote-as 200 ISP_R3# show ip bgp summary Route Reflector ISP_R2# show ip route ISP_R2(config)# router bgp 200 ISP_R2(config-router)# network 2.0.0.0 ISP_R3# show ip bgp ISP_R3# show ip bgp summary ISP_R3# clear ip bgp * ISP_R3# clear ip bgp 192.168.23.2 soft ISP_R3# show ip bgp ISP_R2(config)# router bgp 200 ISP_R2(config-router)# no network 2.0.0.0 ISP_R2(config-router)# network 2.2.2.2 mask 255.255.255.255 ISP_R3# show ip bgp ISP_R1# show ip bgp ISP_R3# show ip route ISP_R3(config)# router bgp 200 ISP_R3(config-router)# network 3.3.3.3 mask 255.255.255.255 ISP_R2# show ip bgp ISP_R1# show ip bgp

ISP_R1(config)# router bgp 200 ISP_R1(config-router)# network 1.1.1.1 mask 255.255.255.255 ISP_R3# show ip bgp ISP_R3# ping 1.1.1.1 ISP_R2# show ip bgp R1 does not see R2 and vice versa, We need to configure route reflector. ISP_R3(config)# router bgp 200 ISP_R3(config-router)# neighbor 192.168.13.1 route-reflector-client ISP_R3(config-router)# neighbor 192.168.23.2 route-reflector-client ISP_R1# show ip bgp ISP_R1# ping 2.2.2.2 ISP_R2# show ip bgp ISP_R2# ping 1.1.1.1 CUSTOMER_1# show ip bgp CUSTOMER_ 1# show ip bgp summary CUSTOMER_ 1# traceroute 2.2.2..2 ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 192.168.13.2 next-hop-self

ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 192.168.23.1 next-hop-self


CUSTOMER_ 1# ping 2.2.2..2 CUSTOMER_ 1# traceroute 2.2.2..2

ISP_R2(config)# router bgp 200 ISP_R2(config-router)# network 130.0.12.0 mask 255.255.255.252 ISP_R2(config)# router bgp 200 ISP_R2(config-router)# network 130.0.11.0 mask 255.255.255.252 CUSTOMER_ 1# ping 2.2.2..2 !!!!! CUSTOMER_ 1# traceroute 2.2.2..2 CUSTOMER_ 1(config)# route-map AS_PATH permit CUSTOMER_ 1(config-route-map)# match ip address 1 CUSTOMER_ 1(config-route-map)# set as-path prepend 100 100 100 100 100 100 CUSTOMER_ 1# show ip access-list CUSTOMER_ 1(config)# router bgp 100 CUSTOMER_ 1(config-router)# neighbor 130.0.12.2 route-map AS_PATH out ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 130.0.11.1 default-originate ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 130.0.12.1 default-originate ISP_R2# ping 130.0.1.1 ISP_R2# traceroute 130.0.1.1

R1(config)# int lo0 R1(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# encapsulation frame-relay R1(config)# int s0/0.12 point-to-point R1(config-subif)# ip address 172.16.1.1 255.255.255.252 R1(config-subif)# frame-relay interface-dlci 102 R1(config-if)# int s0/0 R1(config-if)# no shut R2(config)# int lo1 R2(config-if)# ip address 192.168.1.1 255.255.255.0 R2(config)# int lo2 R2(config-if)# ip address 192.168.2.1 255.255.255.0 R2(config)# int lo3 R2(config-if)# ip address 192.168.3.1 255.255.255.0 R2(config)# int lo4 R2(config-if)# ip address 192.168.4.1 255.255.255.0 R1(config)# int s0/0 R2(config-if)# encapsulation frame-relay R2(config)# int s0/0.12 point-to-point R2(config-subif)# ip address 172.16.1.2 255.255.255.252 R2(config-subif)# frame-relay interface-dlci 201 R2(config-if)# int s0/0 R2(config-if)# no shut R2# ping 172.16.1.1 R2(config)# router bgp 200 R2(config-router)# neighbor 172.16.1.1 remote-as 100 R2(config-router)# no auto-summary R2(config-router)# no synchronization R1(config)# router bgp 100 R1(config-router)# neighbor 172.16.1.2 remote-as 200 R1(config-router)# no auto-summary R1(config-router)# no synchronization

R2(config)# router bgp 200 R2(config-router)# neighbor 172.16.1.1 remote-as 100 R2(config-router)# no auto-summary R2(config-router)# no synchronization R2(config-router)# network 192.168.1.0 R2(config-router)# network 192.168.2.0 R2(config-router)# network 192.168.3.0 R2(config-router)# network 192.168.4.0

R1(config)# router bgp 100 R1(config-router)# neighbor 172.16.1.2 remote-as 200 R1(config-router)# no auto-summary R1(config-router)# no synchronization R1(config-router)# network 192.168.1.0 R1# show ip bgp summary R1# show ip bgp R1# ping 192.168.1.1 R2# show ip bgp summary R2# show ip bgp R2# ping 192.168.10.1

Configuring Route Aggregation R2(config)# router bgp 200 R2(config-router)# aggregate-address 192.168.0.0 255.255.252.0 R1# show ip bgp R1# show ip route R2(config)# router bgp 200 R2(config-router)# aggregate-address 192.168.0.0 255.255.252.0 summary-only R1# show ip bgp R1# show ip route R1# ping 192.168.3.1 R2# show ip bgp R2(config)# access-list 1 deny 192.168.3.0 0.0.0.255 R2(config)# access-list 1 permit any R2(config)# route-map SUPPRESS permit R2(config-route-map)# match ip address 1 R2(config)# router bgp 200 R2(config-router)# aggregate-address 192.168.0.0 255.255.252.0 summary-only suppress-map SUPPRESS R1# clear ip bgp 172.16.1.1 soft R1# show ip bgp R2(config)# no access-list 1 R2(config)# access-list 1 permit 192.168.3.0 0.0.0.255 R2(config)# router bgp 200 R2(config-router)# no aggregate-address 192.168.0.0 255.255.252.0 summary-only suppress-map SUPPRESS R2(config-router)# aggregate-address 192.168.0.0 255.255.252.0 summary-only R2(config-router)# no route-map SUPPRESS R2(config-router)# route-map UNSUPPRESS permit

R2(config-router)# no route-map SUPPRESS R2(config-router)# route-map UNSUPPRESS permit R2(config-route-map)# match ip address 1 R2(config)# router bgp 200 R2(config-router)# neighbor 172.16.1.1 unsuppress-map UNSUPPRESS R1# show ip bgp R2# clear ip bgp 172.16.1.1 soft R2# show ip bgp Routes that are flapping from the neighbor, cant eliminate using route dampening R1(config)# access-list 3 permit 192.168.3.0 0.0.0.255 R1(config)# route-map DAMP permit R1(config-route-map)# match ip address 3 R1(config-route-map)# set dampening 10 750 2000 40 R1(config)# router bgp 100 R1(config-router)# bgp dampening route-map DAMP R2(config)# int lo3 R2(config-if)# shut R2(config-if)# no shut R1# show ip bgp 192.168.3.0 R1# show ip bgp R1# show ip bgp 192.168.3.0 R1# ping 192.168.3.1 R2(config-if)# shut R1# show ip bgp R1# show ip bgp 192.168.3.0 R1# show ip bgp dampening parameters R1# show ip bgp dampening flap-statistics R2(config-if)# no shut R1# show ip bgp R1# show ip bgp 192.168.3.0

R2(config)# int lo5 R2(config-if)# ip address 192.168.5.1 255.255.255.0 R2(config)# router bgp 200 R2(config-router)# network 192.168.5.0 R1(config)# access-list 5 permit 192.168.5.0 0.0.0.255 R1(config)# route-map DAMPS permit R1(config-route-map)# match ip address 5 R1(config-route-map)# set dampening 10 750 2000 40 R1(config)# router bgp 100 R1(config-router)# bgp dampening route-map DAMPS R2(config)# int lo5 R2(config-if)# shut R2(config-if)# no shut R1# show ip bgp R1# show ip bgp summary R1# ping 192.168.5.1 R1# show ip bgp dampening flap-statistics R2(config-if)# shut R2(config-if)# no shut R2(config-if)# shut R2(config-if)# no shut R2(config-if)# shut R2(config-if)# no shut R1# ping 192.168.5.1 R1# show ip bgp dampening flap-statistics R1# show ip bgp dampening flap-statistics R1# ping 192.168.5.1

RIPv2 is used as IGP_ISP

Cust(config)# router bgp 100 Cust(config-router)# neighbor 1.1.1.1 remote-as 200 Cust(config-router)# neighbor 1.1.1.1 update-source loopback 5 Cust(config-router)# neighbor 1.1.1.1 ebgp-multihop 2 ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 5.5.5.5 remote-as 100 ISP_R1(config-router)# neighbor 5.5.5.5 update-source loopback 1 ISP_R1(config-router)# neighbor 5.5.5.5 ebgp-multihop 2 Cust(config)# ip route 1.1.1.1 255.255.255.255 130.0.1.2 ISP_R1(config)# ip route 5.5.5.5 255.255.255.255 130.0.1.1 Cust# show ip bgp Cust# show ip bgp summary ISP_R1# show ip bgp ISP_R1# show ip bgp summary Cust(config)# router bgp 100 Cust(config-router)# neighbor 2.2.2..2 remote-as 200 Cust(config-router)# neighbor 2.2.2..2 update-source loopback 5 Cust(config-router)# neighbor 2.2.2..2 ebgp-multihop 2 Cust(config)# ip route 2.2.2.2 255.255.255.255 130.0.2.2 ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 5.5.5.5 remote-as 100 ISP_R2(config-router)# neighbor 5.5.5.5 update-source loopback 2 ISP_R2(config-router)# neighbor 5.5.5.5 ebgp-multihop 2 ISP_R2(config)# interface lo2 ISP_R2(config-if)# ip address 2.2.2.2 255.255.255.255 ISP_R2config)# ip route 5.5.5.5 255.255.255.255 130.0.2.1 ISP_R2# show ip bgo summary Cust# show ip bgp summary

ISP_R2(config)# router bgp 200 ISP_R2(config-router)# neighbor 1.1.1.1 remote-as 200 ISP_R2(config-router)# neighbor 1.1.1.1 update-source loopback 2 ISP_R2(config-router)# network 2.2.2.2 mask 255.255.255.255

ISP_R1(config)# router bgp 200 ISP_R1(config-router)# neighbor 2.2.2.2 remote-as 200 ISP_R1(config-router)# neighbor 2.2.2.2 update-source loopback 1 ISP_R1(config-router)# network 1.1.1.1 mask 255.255.255.255 ISP_R1(config)# router rip ISP_R1(config-router)# network 1.0.0.0

Das könnte Ihnen auch gefallen