cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1847
Views
3
Helpful
10
Replies

NAT Lab

jsblach
Level 1
Level 1

Hi i do have a very simple setup in

GNS3

with two VPCs and two IOUL2 switches.

One switch has the following configuration:

Spoiler
interface Ethernet0/0
switchport access vlan 123
switchport mode access

interface Ethernet1/0
no switchport
ip address 192.168.178.254 255.255.255.0
ip nat outside

interface Vlan123
ip address 192.168.0.254 255.255.255.0
ip nat inside

ip nat inside source list 1 interface Ethernet1/0 overload

access-list 1 permit 192.168.0.0 0.0.0.255

ip route 0.0.0.0 0.0.0.0 192.168.178.1 

If i use ping 192.168.178.1 source vl 123 on the switch, everything works fine and i see an entry
in

sh ip nat trans

. But if i ping 192.168.178.1 from an attached vpc it doesn't work.

Where am i thinking wrong?

Thanks in advance!!!

1 Accepted Solution

Accepted Solutions

Then dont waste your time' the IOS SWl3 image canot do

NATing.

View solution in original post

10 Replies 10

Did you add 

İp routing 

To SW? 

Hi

 It woud be a behavior expected IF the PC has not gateway or wrong gateway

jsblach
Level 1
Level 1

hi, thanks for your answers.

@MHM Cisco World  yes, and if i configure

static routing

instead of

nat
i get a reply.

@Flavio Miranda 

the vpc have gateways

configured, as i said, routing works

nat

doesn't 

jsblach
Level 1
Level 1

here i have the gns3 project attached

Then dont waste your time' the IOS SWl3 image canot do

NATing.

jsblach
Level 1
Level 1

ok so you would say, that the configuration in general would be correct?

So so correct'

Your config is perfect but there is some bug in

gns3.

jsblach
Level 1
Level 1

jsblach_0-1687433262829.png

but it does work in this case. why wouldn't it work with a vpc using the svi address as gateway?

You are learning and you need to sure that you config is correct'

I will apply same config you share in my lab and share reuslt.

I also have

gns3

and after weeks try solve this issue I give up and use

NSK sw 

instead.

I will share lab tonight dont worry.

MHM

Hello
instead of using a

VPC node 

, use a

rtr

and disable

ip routing 

on that router so to make it a host device ( ip address & D/G) and test again.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul