Thursday, January 3, 2008

how to setup networking between windows host and ubuntu guest

Ubuntu
1>Go to System->Administration->Network
2>In connection tab double click in the wired connection
3>In eth0 settings
connection settings

configuration: static ip address
ip address=192.168.0.2
subnetmask=255.255.255.0
gateway address=192.168.0.1
4>In dns tab
add dns server=192.168.0.1
5>open terminal
6> ifconfig
ifconfig -a
sudo ifconfig eth0 192.168.0.20
ifconfig -a
sudo ifconfig eth0 up 192.168.0.20
sudo /etc/init.d/networking restart
cat /etc/resolv.conf
ping 192.168.0.1
sudo ifconfig eth0 up 192.168.0.20
ping google.com
sudo ifconfig eth0 192.168.0.20
sudo ifconfig eth0 up 192.168.0.20
sudo /etc/init.d/networking restart
cat /etc/resolv.conf
ping 192.168.0.1
ping google.com

No comments: