port forwarding for NAT

Discussions related to using VirtualBox on Windows hosts.
Post Reply
rilawich
Posts: 12
Joined: 29. May 2007, 07:58

port forwarding for NAT

Post by rilawich »

Hi all,
I want to set port forwarding for NAT according to the manual but it
doesn't work.
HOST OS: win2000
Guest OS: CentOS
I follow the manual to set as below.
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/UDP" 0
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
However, I can't ssh to the guess os thro' port 2222.
Anyone can give me some suggestions to fix it?
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

Bridge your network card.

http://www.netcal.com/news.php?article=11

http://www.homenethelp.com/web/howto/wi ... -setup.asp

Then, Fire up Virtual box ... Select your virtual machine ...

Click "Network" on the Right

Under Adapter 0, in the "Attached to" pull down menu select "Host Interface" Under Interface Name type "tap1" (without quotes)

Save and exit ...

Now start you machine and you should be good to go.

Your guest will get an IP on your LAN and your can ssh into the local IP (192.168.2.xx)
If is a virtual machine, is it still broken ?
rilawich
Posts: 12
Joined: 29. May 2007, 07:58

Post by rilawich »

The links show to setup network bridge on XP and 2003. How about 2000?
Post Reply