port forwarding for NAT

Discussions related to using VirtualBox on Windows hosts.

port forwarding for NAT

Postby rilawich » 29. May 2007, 08:32

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?
rilawich
 
Posts: 12
Joined: 29. May 2007, 07:58

Postby bodhi.zazen » 30. May 2007, 22:07

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 ?
bodhi.zazen
Volunteer
 
Posts: 180
Joined: 17. May 2007, 16:02

Postby rilawich » 31. May 2007, 03:26

The links show to setup network bridge on XP and 2003. How about 2000?
rilawich
 
Posts: 12
Joined: 29. May 2007, 07:58


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: TekLord and 40 guests