09-26-2024 05:23 AM
Hello,
I have the below access-list that when working I have Internet connectivity on 10.252.92.1 host, but when I move 21 below the deny commands I cannot, it is like it is rejecting the permit. Could anyone help me why? To me it seems like a bug but ok maybe something I do not get
Extended IP access list global-mgmt-nat-acl-wan-2
21 permit ip host 10.252.92.1 any (22 matches)
22 deny ip 10.252.92.0 0.0.0.255 10.20.80.0 0.0.0.255 (19 matches)
23 deny ip 10.252.92.0 0.0.0.255 10.20.60.0 0.0.0.255 (19 matches)
24 deny ip 10.253.92.0 0.0.0.255 10.66.32.0 0.0.0.255
30 deny ip 10.248.92.0 0.0.0.255 10.66.32.0 0.0.0.255
33 deny ip 10.248.92.0 0.0.0.255 10.20.60.0 0.0.0.255
34 deny ip 10.248.92.0 0.0.0.255 10.20.80.0 0.0.0.255
35 deny ip 10.248.92.0 0.0.0.255 10.20.50.0 0.0.0.255
40 permit ip host 10.252.92.254 any (44 matches)
50 permit ip host 10.252.92.247 any
When I put it below the deny rules I do not have internet at all
Extended IP access list global-mgmt-nat-acl-wan-2
22 deny ip 10.252.92.0 0.0.0.255 10.20.80.0 0.0.0.255 (31 matches)
23 deny ip 10.252.92.0 0.0.0.255 10.20.60.0 0.0.0.255 (31 matches)
24 deny ip 10.253.92.0 0.0.0.255 10.66.32.0 0.0.0.255
30 deny ip 10.248.92.0 0.0.0.255 10.66.32.0 0.0.0.255
33 deny ip 10.248.92.0 0.0.0.255 10.20.60.0 0.0.0.255
34 deny ip 10.248.92.0 0.0.0.255 10.20.80.0 0.0.0.255
35 deny ip 10.248.92.0 0.0.0.255 10.20.50.0 0.0.0.255
36 permit ip host 10.252.92.1 any
40 permit ip host 10.252.92.254 any (86 matches)
Also I do not get why the host .254 which is the default gateway of .1 has internet on both cases.
Solved! Go to Solution.
09-27-2024 12:23 AM
These are my interfaces
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
switchport access vlan 103
!
interface GigabitEthernet1/0/3
!
interface GigabitEthernet1/0/4
!
interface GigabitEthernet1/0/5
!
interface GigabitEthernet1/0/6
switchport access vlan 199
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface AppGigabitEthernet1/0/1
!
interface Vlan1
no ip address
shutdown
!
interface Vlan103
ip address dhcp
ip nat outside
!
interface Vlan199
ip address 10.252.92.254 255.255.255.0
ip nat inside
no autostate
!
It is connected to another switch that provides internet connectivtiy. To that switch I have already plugged other cisco switches and routers with the same kind of configuration without any issue
09-27-2024 01:41 AM
Hello
@dim_ing wrote:
It is connected to another switch that provides internet connectivtiy. To that switch I have already plugged other cisco switches and routers with the same kind of configuration without any issue
You topology does not make sense, It suggests you are performing NAT in the wrong place.?
why do you have a switch with dhcp allocation performing PAT when its connected to other switches connecting to a router, W here is the routing for all these subnets and access to the internet being performed?
If you are not willing to share an additional information then it will be hard to find a solution for you,
09-27-2024 01:48 AM
The DHCP on vlan103 is used cause the Ethernet connected to G1/0/2 belongs to a private IP range of 192.168.100.0/24. The NAT and routing of that IP range is done behind the switch that I am working on. This IP range is just a guest net, whatever you plug to that you have internet. I am interested only to allow the internal Vlan199 to have internet as well
09-27-2024 02:15 AM
Hello
@paul driver wrote:
The DHCP on vlan103 is used cause the Ethernet connected to G1/0/2 belongs to a private IP range of 192.168.100.0/24. The NAT and routing of that IP range is done behind the switch that I am working on. This IP range is just a guest net, whatever you plug to that you have internet. I am interested only to allow the internal Vlan199 to have internet as well
So what you are trying to do is double nat your vlan 199 by routing everything upstream to 192.168.100.0/24 nat subnet
From that device running the 192.168.1000/24 but at the same time trying to negate nat between certain subnets but nat everything else.
The problem you have is the default route on that switch is pointing everything towards that nat subnet, and your then leaving that nat subnet device to route between all you other subnets
What you can do is create an additional svi on that switch and connect it via another port/trunk towards the L3 device of your network, have a summarised static route pointing to the nexthop of that new svi
This way, any default traffic "internet" will go via the vlan 103 and get network translated and the more specific traffic for you internal subnets will route via the new SVI you have created and not get natted.
09-27-2024 02:23 AM
yes but that does not explain why on the extended access list when I deny a specific route, I lose the remaining routes on the permit that follows. Without the deny on the ACL it works properly
09-27-2024 02:41 AM
Hello
You mean the NAT works for vlan 199 for the internet access, based on what you have describe it possible due the default route, the only entry in the route table of that switch is a default "catch all" its not aware of any 10..x.x.x subnets and possible so is the 192.168.100.0/24 nat device
10.252.92.0 0.0.0.255 10.20.80.0 0.0.0.255 < lookup for 10.20.80.x = nothing so use default and arp for it
09-27-2024 02:48 AM
Dont waste your time
Open TAC it platform issue
I use deny in acl of NAT for VPN and it work
This platform maybe face some issue
Try upgrading if not solve issue open TAC
MHM
09-28-2024 04:26 AM - edited 09-28-2024 04:29 AM
Hello
can you confirm (excluding nat and internet reachability for vlan199 hosts)
can those same hosts reach all the other subnets via vlan103 and do all those other hosts in those subnets have internet reachabilty?
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