BGP: Difference between revisions
Content added Content deleted
Line 587: | Line 587: | ||
=== Configurations === |
|||
;R1 Config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.12.1 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.1.13.1 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router bgp 5500 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
neighbor 10.1.12.2 remote-as 5500 |
|||
neighbor 10.1.13.3 remote-as 5500 |
|||
no auto-summary |
|||
! |
|||
</pre> |
|||
;R2 Config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.12.2 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.1.23.2 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/2 |
|||
ip address 10.1.24.2 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router bgp 5500 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
neighbor 10.1.12.1 remote-as 5500 |
|||
neighbor 10.1.12.1 next-hop-self |
|||
neighbor 10.1.23.3 remote-as 5500 |
|||
neighbor 10.1.24.4 remote-as 777 |
|||
no auto-summary |
|||
! |
|||
</pre> |
|||
;R3 Config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.23.3 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.1.13.3 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/2 |
|||
ip address 10.1.36.3 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
router bgp 5500 |
|||
no synchronization |
|||
bgp default local-preference 700 |
|||
bgp log-neighbor-changes |
|||
neighbor 10.1.13.1 remote-as 5500 |
|||
neighbor 10.1.13.1 next-hop-self |
|||
neighbor 10.1.23.2 remote-as 5500 |
|||
neighbor 10.1.36.6 remote-as 777 |
|||
neighbor 10.1.36.6 route-map LOCAL_PREF in |
|||
default-metric 200 |
|||
no auto-summary |
|||
! |
|||
! |
|||
ip access-list standard ROUTES_FOR_R2 |
|||
permit 200.0.0.0 0.255.255.255 |
|||
ip access-list standard ROUTES_FOR_R3 |
|||
permit 150.1.50.0 0.0.0.255 |
|||
permit 150.2.50.0 0.0.0.255 |
|||
! |
|||
route-map LOCAL_PREF permit 10 |
|||
match ip address ROUTES_FOR_R3 |
|||
set local-preference 1000 |
|||
! |
|||
route-map LOCAL_PREF permit 20 |
|||
match ip address ROUTES_FOR_R2 |
|||
set local-preference 10 |
|||
! |
|||
route-map LOCAL_PREF permit 30 |
|||
! |
|||
</pre> |
|||
;R4 Config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.45.4 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/2 |
|||
ip address 10.1.24.4 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
router bgp 777 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
neighbor 10.1.24.2 remote-as 5500 |
|||
neighbor 10.1.45.5 remote-as 911 |
|||
no auto-summary |
|||
! |
|||
</pre> |
|||
;R5 Config: |
|||
<pre> |
|||
! |
|||
interface Loopback0 |
|||
ip address 150.1.50.5 255.255.255.0 |
|||
! |
|||
interface Loopback1 |
|||
ip address 150.2.50.5 255.255.255.0 |
|||
! |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.45.5 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.1.57.5 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router bgp 911 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
redistribute connected route-map FILTER |
|||
neighbor 10.1.45.4 remote-as 777 |
|||
neighbor 10.1.57.7 remote-as 711 |
|||
no auto-summary |
|||
! |
|||
! |
|||
access-list 50 permit 150.1.50.0 |
|||
access-list 50 permit 150.2.50.0 |
|||
no cdp log mismatch duplex |
|||
! |
|||
route-map FILTER permit 10 |
|||
match ip address 50 |
|||
! |
|||
</pre> |
|||
;R6 Config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.67.6 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/2 |
|||
ip address 10.1.36.6 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router bgp 777 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
neighbor 10.1.36.3 remote-as 5500 |
|||
neighbor 10.1.67.7 remote-as 711 |
|||
no auto-summary |
|||
! |
|||
</pre> |
|||
;R7 Config: |
|||
<pre> |
|||
! |
|||
interface Ethernet0/0 |
|||
ip address 200.50.2.7 255.255.255.0 |
|||
half-duplex |
|||
! |
|||
interface Ethernet0/1 |
|||
ip address 200.60.2.7 255.255.255.0 |
|||
half-duplex |
|||
! |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.1.67.7 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.1.57.7 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router bgp 711 |
|||
no synchronization |
|||
bgp log-neighbor-changes |
|||
network 200.50.2.0 |
|||
network 200.60.2.0 |
|||
neighbor 10.1.57.5 remote-as 911 |
|||
neighbor 10.1.67.6 remote-as 777 |
|||
no auto-summary |
|||
! |
|||
</pre> |
|||
<br /> |
<br /> |
||