cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
193
Views
1
Helpful
3
Replies

Change Outpout Traffic By communiy

Hi I have 2 output gateway 1 and 2

I used route-map math by ip community list

and set next-hop gateway 2

When add this rule in route-map all traffic redirect to gateway-2  In nexus 9K

How can do this by community tag

65000:100 community redirect to gateway 2

3 Replies 3

admin@atrinnet.net 

  I will not stick with sintax for NX OS but the logic behind the community

The idea of cummunity as you probably know is add a flag on the traffic to take decision based on the tag.

With the route-map you can tag the traffic

route-map TAG_COMMUNITY permit 10
match ip address PREFIX_LIST
set community 65000:100

And here you can forward the traffic accordingly based on the tag

route-map REDIRECT_TO_GATEWAY2 permit 10
match community 10
set ip next-hop <IP of Gateway 2>

 

I used this

route-map tx-respina, permit, sequence 8
Match clauses:
community (community-list filter): 65000:100
Set clauses:
ip next-hop 192.168.199.85

When permit in route untagged community Also redirect to 192.168.199.85

Good to know, thanks for sharing admin@atrinnet.net 

Review Cisco Networking for a $25 gift card