Solved Set up NAT - 1 LAN Adapter

June 15, 2011 at 05:09:10
Specs: Debian
I'd like to set up NAT for a virtual machine to have access to both the network and Internet. The machine I'm trying to set this up on is running Debian and has only one ethernet adapter.

See More: Set up NAT - 1 LAN Adapter

Report •

✔ Best Answer
June 17, 2011 at 13:49:20
Correct.

Your IP address if set to dhcp in client would be the the range of 10.x.x.15 maybe. Should work fine. I use it that way always. Some odd proxies on host may be a problem if they run from a proxy.pac file.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.



#1
June 15, 2011 at 13:19:32
Each Virtual Machine has it's own way of creating either a bridged, nat'ed, or local network. We'd need to know which one you have.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#2
June 16, 2011 at 04:54:36
qemu ...

Report •

#3
June 16, 2011 at 14:56:57
What is in the script that you used to make start qemu?

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

Related Solutions

#4
June 17, 2011 at 06:35:02
Well, I'm guessing that the NAT will be set up as eth1 so:

qemu -L . -m 128 -hda system.img -net eth1


Report •

#5
June 17, 2011 at 13:49:20
✔ Best Answer
Correct.

Your IP address if set to dhcp in client would be the the range of 10.x.x.15 maybe. Should work fine. I use it that way always. Some odd proxies on host may be a problem if they run from a proxy.pac file.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#6
June 17, 2011 at 15:51:19
I don't even know how to create a NAT ...

Report •

#7
June 18, 2011 at 12:09:32
You do nothing. Qemu did it.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#8
June 21, 2011 at 07:59:22
Thanks, I read that you cannot ping to or from qemu. This would explain why I ddin't think it was working.

Report •

Ask Question