cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
376
Views
5
Helpful
2
Replies

Bgp?

jvicovac88
Level 1
Level 1

Hello,

I was wondering if this would work. My task is to advertise routes from my AS and AS 400 and to let AS 400 communicate with other ASs through my AS. Other ASs (three of them - 100, 200 and 300) cannot use my network as a transit network in any other case. Routers connected directly to AS 200 and 300 have the same configuration.

RA(config-router)# neighbor 3.3.3.2 remote-as 100

RA(config-router)# neighbor 3.3.3.2 route-map SET_OUTBOUND_TRAFFIC in

RA(config-router)# neighbor 3.3.3.2 route-map SET_INBOUND_TRAFFIC out

RA(config-router)# neighbor 3.3.3.2 advertise-map ADVERTISE

RA(config-router)# exit

RA(config)# ip as-path access-list 1 permit ^400$

RA(config)# ip as-path access-list 1 permit ^$

RA(config)# route-map SET_OUTBOUND_TRAFFIC permit 10

RA(config-route-map)# set local-preference 200

RA(config-route-map)# exit

RA(config)# route-map ADVERTISE permit 10

RA(config-route-map)# match as-path 1

RA(config-route-map)# exit

RA(config)# route-map SET_INBOUND_TRAFFIC permit 10

RA(config-route-map)# match as-path 1

RA(config-route-map)# exit

Thanks.

2 Replies 2

cadet alain
VIP Alumni
VIP Alumni

Hi,

For this part:

advertise routes from my AS and AS 400

You must do this:

neighbor 3.3.3.2 filter-list 1 out  and same for other neighbors in AS 200 and 300

Indirectly this will prevent all these ASes to use you as transit for other ASes except 400 as your AS_PATH ACL is denying all ASes outbound except 400 and yours.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

OK, thank  you.

Best regards,

Jovan.

Review Cisco Networking for a $25 gift card