cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2769
Views
0
Helpful
3
Replies

Howto Translating to Vlan ?

shiman.dc
Level 1
Level 1

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






3 Replies 3

Nandan Mathure
Level 1
Level 1

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
Level 1
Level 1

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
Level 1
Level 1
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.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card