03-08-2024 10:17 PM - edited 03-08-2024 10:19 PM
Hi Guys,
I have 2 pairs of Nexus switches, each pair at each location. They connect between 2 locations with 2 x layer 3 links, as shown in the diagram.
I configured EIGRP routing for both sites for these 2 pairs. The EIGRP routing works; my question is, how do I allow VLAN 2 (Site 1) to talk to VLAN 3 (Site 2) only and vice versa, and no other VLANs can talk to them?
I did the below, and it doesn't work. I created an ACL below and applied it to interface vlan 2 on both switches of site 1 and interface vlan 3 of both switches of site 2.
Site 1's switch A and B:
ip access-list 2and3
5 permit ip 192.168.2.0 0.0.0.255 any
10 permit ip 192.168.3.0 0.0.0.255 any
15 deny ip any any log
int vlan 2
ip access-group 2and3 in
Site 2's switch A and B:
ip access-list 2and3
5 permit ip 192.168.2.0 0.0.0.255 any
10 permit ip 192.168.3.0 0.0.0.255 any
15 deny ip any any log
int vlan 3
ip access-group 2and3 in
Any suggestions?
Thanks.
Solved! Go to Solution.
03-16-2024 05:25 AM - edited 03-17-2024 12:24 AM
Hello
@tinhnho123 wrote:
Site1's A & B use vPC, Site 2's A & B use vPC. These switches are running vPC between them.
So its L3 between the sites correct, if so you need to apply a eigrp filter?
Site1
access-list 2 permit 192.168.5.0 0.0.0.255
access-list 2 permit 192.168.7.0 0.0.0.255
router eigrp 50
distance 255 <eigrp RID site2> 0.0.0.0 2
Site2
access-list 1 permit 192.168.4.0 0.0.0.255
access-list 1 permit 192.168.6.0 0.0.0.255
router eigrp 50
distance 255 <eigrp RID site1> 0.0.0.0 1
03-16-2024 07:03 PM
Yes, this are 2 x layer 3 links between 2 sites.
1st layer 3 link is between Site1-sw-A and Site 2-sw-A.
1st layer 3 link is between Site1-sw-B and Site 2-sw-B.
What do these commands 'distance 255 <eigrp RID site1> 0.0.0.0 2' and 'distance 255 <eigrp RID site2> 0.0.0.0 3' do?
03-17-2024 05:11 AM
Hello
@tinhnho123 wrote:
Yes, this are 2 x layer 3 links between 2 sites.
1st layer 3 link is between Site1-sw-A and Site 2-sw-A.
1st layer 3 link is between Site1-sw-B and Site 2-sw-B.
What do these commands 'distance 255 <eigrp RID site1> 0.0.0.0 2' and 'distance 255 <eigrp RID site2> 0.0.0.0 3' do?
The router id (RID) is the ip address identifying the adjacent eigrp router, so with this filtering you are specifying the eigrp RID and then filtering the subnets you wish not to communicate between sites.
The distance command will append a administrative distance to the whatever prefix(s)/subnet(s) are being called upon by the access-list and a distance of 255 means its unreachable so do not advertise
Please be aware as/when you apply the eigrp filter to the router process adjacency(s) WILL flap
Additionally you will apply a RACL at each site locally to the SVI interface from communicating locally to it local subnets.
See attached file.
03-21-2024 01:03 AM
finally I success
the issue was the direction of ACL instead of using IN we must use OUT
deny ip any any
03-21-2024 01:08 AM
03-22-2024 09:28 AM
The Nexus switches don't allow me to use 'Out' on the command 'ip access-group'. Thanks for the clarification. This's helpful.
03-22-2024 09:51 AM
in my lab I use NSK9K v, what exactly your NSK platform number
MHM
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