10-20-2024 02:38 AM
hello
I want to write an access list on the nexus 3064 switch so that an IP range on this switch can only be accessed from a specific source, can anyone guide me?
My servers are connected to a 2960 switch, which is also connected to the Nexus switch, and I want them to connect to the IPs of this server only from a specific IP range.
Solved! Go to Solution.
10-20-2024 03:57 AM - edited 10-20-2024 03:58 AM
On the interface or interface vlan that Nexus comnunicate with server, apply the access list outbound
ip access-list acl-01
permit ip 54.2.122.6/30 34.5.121.0/24
interface "to 2960"
ip port access-group acl-01 out
10-20-2024 02:46 AM
10-20-2024 03:57 AM - edited 10-20-2024 03:58 AM
On the interface or interface vlan that Nexus comnunicate with server, apply the access list outbound
ip access-list acl-01
permit ip 54.2.122.6/30 34.5.121.0/24
interface "to 2960"
ip port access-group acl-01 out
10-20-2024 09:37 AM
thanks very much
Traffic goes to Nexus first and then goes to Switch 2960. why we use OUT ?
10-20-2024 11:10 AM
You can apply in but It should be on the interface facing the users
10-20-2024 10:15 AM
The router uses the terms in, out, source, and destination as references.
When you refer to a router, these terms have these meanings.
Out—Traffic that has already been through the router and leaves the interface. The source is where it has been, on the other side of the router, and the destination is where it goes.
In—Traffic that arrives on the interface and then goes through the router. The source is where it has been and the destination is where it goes, on the other side of the router.
Inbound—If the access list is inbound, when the router receives a packet, the Cisco IOS software checks the criteria statements of the access list for a match. If the packet is permitted, the software continues to process the packet. If the packet is denied, the software discards the packet.
Outbound—If the access list is outbound, after the software receives and routes a packet to the outbound interface, the software checks the criteria statements of the access list for a match. If the packet is permitted, the software transmits the packet. If the packet is denied, the software discards the packet.
check some examples here :
https://www.cisco.com/c/en/us/support/docs/ip/access-lists/26448-ACLsamples.html
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