cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6550
Views
30
Helpful
30
Replies

BGP config (2 routers, 1 ISP per router)

Peter Valdes
Level 3
Level 3

Hi Cisco,

Im new to routing and need help preparing a config for 2 routers.

We have 2 offices next to each other connected via a Layer 2 point to point access link. Each offices have a router running connected to separate ISP AS. Each offices have unique public and private IP Addresses.

I need to have BGP running on both sites so if ISP 2 fails in office 2 (ATLAS), it's public IP Address will be routed to and from ISP 1 via office 1 and default router traffic for office 2 (ATLAS) will use the L2 point to point link to get to the Internet via office 1 (NEXUS) link. Same scenerio with ISP 1 failing in office 1 (NEXUS).

NEXUS

interface GigabitEthernet0/0

description LINK TO ISP 1

bandwidth 10240

ip address X.X.X.2 255.255.255.252

ip nat outside

!

interface GigabitEthernet0/1

description LINK TO SWITCH STACK

no ip address

!

interface GigabitEthernet0/1.101

description LINK TO OFFICE 1 LAN

encapsulation dot1Q 101

ip address 192.168.1.1 255.255.255.0

ip nat inside

!

interface FastEthernet1/1

description LINK TO OFFICE 2

bandwidth 102400

ip address 172.17.0.1 255.255.255.252

!

router bgp 300

bgp log-neighbor-changes

neighbor X.X.X.1 remote-as 100

!

address-family ipv4

neighbor X.X.X.1 activate

neighbor X.X.X.1 soft-reconfiguration inbound

no auto-summary

no synchronization

network 61.1.1.0 mask 255.255.255.0

exit-address-family

!

ip route 192.168.2.0 255.255.255.0 172.17.0.2 name OFFICE2_ATLAS

ip route 61.1.1.0 255.255.255.0 Null0 200 name NEXUS_BGP

===========================================================================

ATLAS

interface GigabitEthernet0/0

description LINK TO ISP 2

bandwidth 10240

ip address Y.Y.Y.2 255.255.255.0

ip nat outside

!

interface GigabitEthernet0/1

description LINK TO SWITCH STACK

no ip address

!

interface GigabitEthernet0/1.101

description LINK TO OFFICE 2 LAN

encapsulation dot1Q 101

ip address 192.168.2.1 255.255.255.0

ip nat inside

!

interface FastEthernet0/0/0

description LINK TO OFFICE 1

bandwidth 102400

ip address 172.17.0.2 255.255.255.252

!

router bgp 300

bgp log-neighbor-changes

neighbor Y.Y.Y.1 remote-as 200

neighbor Y.Y.Y.1 ebgp-multihop 2

neighbor Y.Y.Y.1 update-source GigabitEthernet0/0

!

address-family ipv4

  neighbor Y.Y.Y.1 activate

  neighbor Y.Y.Y.1 soft-reconfiguration inbound

  no auto-summary

  no synchronization

  network 61.2.2.0 mask 255.255.255.0

exit-address-family

!

ip route 192.168.1.0 255.255.255.0 172.17.0.1 name OFFICE1_NEXUS

ip route 61.2.2.0 255.255.255.0 Null0 200 name ATLAS_BGP

Help please.

Thanks

30 Replies 30

Hey Val,

I couldnt be online for 2 days as i was busy with some personal stuff.

I am glad that all went good.

Cheers!!!

Ameya