09-05-2018 09:48 AM - edited 03-08-2019 04:05 PM
Hello Cisco.
I have some challenging task to accomplish that was assigned to me by my boss and I am pretty new to Networking world.
So, I have Cisco router 4221 with int G0/0/0 (which we use were WAN connection) and G0/0/1 for LAN.
I have pool of public IPs provided by ISP and IPs that was assigned to interfaces.
I have laptop connected to LAN port and the WAN port is connected to ISP's device (in our case it is AT&T)
I am able to browse the internet just fine, but I am not able to ping my device from our corporate network, even there is no firewall involved.
So, I created ACL for inbound traffic with statement "permit all" and applied it on all interfaces and still no luck. Any suggestions?
My boss said that to allow outbound rule is easy part, but I need to figure out how to make it work for inbound.
interface GigabitEthernet0/0/0
description WAN_GW
ip address X.X.X.X 255.255.255.252
ip nat outside
ip access-group 2 in
negotiation auto
!
interface GigabitEthernet0/0/1
description LAN_GW
ip address X.X.X.X 255.255.255.240
ip nat inside
ip access-group 2 in
negotiation auto
!
ip nat pool ATT-POOL X.X.X.X X.X.X.X netmask 255.255.255.240
ip nat inside source list 1 pool ATT-POOL
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip route 0.0.0.0 0.0.0.0 X.X.X.X
ip route X.X.X.X 255.255.255.252 X.X.X.X
!
!
access-list 2 permit any
Solved! Go to Solution.
09-06-2018 10:34 AM
You are quite welcome. I am glad that my explanations have been helpful.
HTH
Rick
09-05-2018 10:48 AM
You describe a PC connected to the LAN and describe a corporate network. Where is that corporate network? How does it connect to this router?
HTH
Rick
09-05-2018 11:08 AM
09-05-2018 12:15 PM
It is difficult to know what is going on here, especially since you have given so many IP addresses as x.x.x.x. But I do see one thing and that might point at the issue. I see in the partial config that you posted that you have configured ip nat to perform address translation for traffic originating on the LAN and going out the WAN. Doing address translation that way allows devices inside to initiated traffic to outside (and outside is successful in responding because when the response gets to your router it has an entry in the translation table for your address). But there is a problem when something outside attempts to initiate traffic to your PC inside. If the packet from outside arrives at your router it looks into its translation table and does not find an entry for your address. To enable devices outside to initiate traffic to your device you would need a static nat translation for your address.
I would also note that the access lists you are using on the interfaces (access-list 2 permit any) are not doing any good. You might as well remove them from the configuration.
HTH
Rick
09-05-2018 12:36 PM
09-06-2018 08:07 AM
Thank you for the additional information. Seeing the IP addresses is helpful. It shows that on your LAN/inside interface that you are using Public IP addresses. This makes me wonder why you are using address translation. Address translation is usually used when the inside addresses are private addresses (192.168.x.x, etc) but that is not the case with your config. I know that address translation is very frequently part of the configuration of a router with an interface which connects to the Internet. So is there a reason why you use address translation other than the assumption that it part of a normal config for an Internet facing router?
HTH
Rick
09-06-2018 08:29 AM
After writing that response I read through the complete discussion and noticed a few details. In your trace route you are using destination address of 12.69.154.178. This is an address in the subnet assigned to that interface and is not in your pool of addresses for translation. And the last response in your trace route is from 12.69.154.180 which is an address in your pool of addresses for translation. So I believe that this demonstrates that address translation is causing your problem. It looks like the trace route gets to your PC and your PC sends a response. But the response goes through address translation and the source address is changed. So the trace route is failing because the response packets comes back with a different address.
If there is some reason to have address translation then we need to find a way to configure it so that it does not interfere with communication to your PC. If there is not particularly a reason to have address translation then remove the translation.
HTH
Rick
09-06-2018 08:54 AM
09-06-2018 09:23 AM
Thanks for the additional explanation. It seems to me that we probably need to consider both the current situation and what the situation may be a little further down the road. In terms of your current situation you have a router with two subnets, you have an outside subnet and an inside subnet. And you have used Public IP addressing on both subnets. In your current situation there is no need to have address translation - and we see that address translation does interfere with getting traffic from outside into your inside network. So for the current situation you should remove address translation.
But what will the situation be a little further down the road? You indicate that this is a new connection to Internet which will replace the current connection. Almost certainly that will change the situation and will probably have several (perhaps many) subnets connected to this router. And it is likely that these subnets will not all be using Public IP addressing. In that situation you will need address translation.
There are several questions that you need to address:
- is the goal of your activities just to configure the router to test the new connection and prove that it does work? Or is the goal to produce a configuration that would provide the starting point for migration from the old connection to the new connection?
- if all you need is a configuration to test the new connection then remove address translation and you should be fine.
- if you need a more comprehensive configuration then you need to consider what you need in terms of address translation. Certainly you will need dynamic address translation similar to what you have and it will allow devices inside the network to initiate traffic to the Internet and to receive responses.
- but do you need for devices in the Internet to initiate traffic to devices in your network? To enable Internet devices to initiate traffic to devices inside your network then you will need static address translation for those devices (in addition to dynamic translation for the rest of the network).
- you can probably look at the existing Internet router and see what kind of address translation it is using and that can guide your decision about what you need on this router.
- another important question is about access lists. I suggested that you remove the access list that you had configured. That was because in the current situation there is no need for it. But as you start to use this new connection for your real network, you will almost certainly need access lists configured. Again looking at the existing Internet connection router should give you guidance about what kind of access lists you need.
HTH
Rick
09-06-2018 09:37 AM
09-06-2018 10:34 AM
You are quite welcome. I am glad that my explanations have been helpful.
HTH
Rick
09-06-2018 01:15 PM
This has been an interesting discussion and I am glad that it has been helpful to you. Perhaps the most significant thing to take away from it might be the need to distinguish between what is needed to accomplish the short term goal of testing the new connection and the longer term goal of preparing to move the network from one provider to the new provider. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information.
I hope to see you continue to be active in the community.
HTH
Rick
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