×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Howto Translating to Vlan ?

Unanswered Question
May 3rd, 2012
User Badges:

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






  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Nandan Mathure Thu, 05/03/2012 - 21:48
User Badges:
  • Bronze, 100 points or more

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

kamran_Roostaee Sun, 05/06/2012 - 00:55
User Badges:

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

shiman.dc Sat, 05/12/2012 - 15:12
User Badges:
Nandan Mathure Thanks for the suggestion, it works for me.
Kamran Roostaee Yes, the both networks communicate without problem. but the issue was that the 10.240.1.0/24 gateway is a firewall and it listens to requests comming from clients with the same subnet, so requests comming frome other subnets needs to be translated to the subnet before it hits the gateway.

Actions

This Discussion

Related Content