ā08-31-2012 11:09 AM - edited ā03-07-2019 08:38 AM
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.
ā08-31-2012 11:28 AM
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.
ā08-31-2012 12:08 PM
OK, thank you.
Best regards,
Jovan.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide