05-03-2012 12:10 PM - edited 03-07-2019 06:29 AM
Hi, i am a newbie to cisco routers and i have a problem that I am trying to fix, will try to explain in detail as possible.
I have a cisco 2800 router. It has 2 FE prots and 4 L2 ports (an additional card attached.) 2 of the FE ports are configured to use 2 different lans in the network. I have configured the 4 L2 ports in VLan 1 and I want the 2 FE ports to communicate to the vlan which is already working.
FastEthernet 0/0 192.168.0.1/24
FastEthernet 0/1 172.29.0.1/24
VLan 1 10.240.1.10/24
The Vlan is connected to an external network (wich I dont have controll of) with the gatway 10.240.1.2
The problem for me is that the gatway only listen to the ips from its subnet. If i try to ping it from the local network 192.168.0.0/24 I get a timeout. So i belive the ips from 192.168.0.0 need to be translated to 10.240.1.0
I did the following but there has not been any luck
ip nat inside source static 192.168.0.80 10.240.1.10
am I on the right track or I am doing something wrong ? have done alot of googling and read lots of documents but not luck
thansk in advance
05-03-2012 09:48 PM
access-list 10 permit 192.168.0.0 0.0.0.255
access-list 10 permit 172.29.0.0 0.0.0.255
ip nat inside source list 10 interface vlan 1 overload
int vlan 1
ip nat outside
int fa0/0
ip nat inside
int fa0/1
ip nat inside
Let me know if this worked, Thanks,
Nandan Mathure
05-06-2012 12:55 AM
As you mentioned you have a cisco 2800 with 2 FE port and one 4 port etherswitch card. you defined an SVI VLAN1 port with 10.240.1.10/24, so you should see following routes with "Show IP Route":
172.129.0.0/24 is subnetted, 1 subnets
C 172.129.0.0 is directly connected, FastEthernet0/1
10.0.0.0/24 is subnetted, 1 subnets
C 10.240.1.0 is directly connected, Vlan1
C 192.168.0.0/24 is directly connected, FastEthernet0/0
If you see these routes in routing table , then there is no need to nat (if you ping inside 192.168.0.0 your gatewa should be 192.168.0.1) because router will do routing automatically
05-12-2012 03:12 PM
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