Wednesday, February 14, 2018

help with l2nat, i think i'm doing something dumb

Hey,

so I have this network:

192.168.0.0/24 ------ gi1/1,vlan101 [Catalyst] vlan 1,gi1/2----192.168.1.0/24 

192.168.0.0/24 is "corporate network".

192.168.1.0/24 is "controller network".

Int gi 1/1 has vlan 101 permitted on a trunk port.

Int gi 1/2 has vlan 1 set on an access port.

192.168.1.0 is in use in other areas of our network, so we can't simply route to it.

We need to create a L2Nat so that if host 192.168.0.2 tries to connect to 192.168.0.3, the switch will Nat the packets comming in Gi1/1 on vlan 101 like this:

before: source 192.168.0.2, dest 192.168.0.3 after: source 192.168.1.4, dest 192.168.1.5 

and reverse

before: source 192.168.1.5, dest 192.168.1.4 after: source: 192.168.0.3, dest 192.168.0.2 

I can't seem to figure out where to put what configuration to setup the L2Nat;

What am I doing wrong?

Current configuration : 3298 bytes version 15.2 ip routing license boot level ipservices l2nat instance PLC instance-id 1 fixup all outside from host 192.168.0.3 to 192.168.1.5 inside from host 192.168.1.5 to 192.168.0.3 interface GigabitEthernet1/1 switchport trunk allowed vlan 101 switchport mode trunk l2nat PLC 101 interface GigabitEthernet1/2 switchport mode access interface Vlan1 ip address 192.168.1.250 255.255.255.0 interface Vlan101 no ip address 


No comments:

Post a Comment