Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Bgp?

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.

Everyone's tags (1)
2 REPLIES
Purple

Bgp?

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.
New Member

Bgp?

OK, thank  you.

Best regards,

Jovan.

147
Views
5
Helpful
2
Replies
CreatePlease login to create content