Quote:
Originally Posted by windstory
I have selected intel pro/1000 network adapter 1 for NAT.
And I changed 10.0.2.15 ip to 192.168.0.11 by under-mentioned commands.
Code:
ifconfig eth0 down
ifconfig eth0 192.168.0.x netmask 255.255.255.0 up
ifconfig eth0
|
Hmm, shouldn't the above be
Code:
ifconfig eth0 down
ifconfig eth0 192.168.0.x netmask 255.255.255.0 up
ifconfig eth0 up
i. e. add "up" to the last line?
Additionally, you may need to configure a gateway in order to get on the net - i. e. add a line like this, which "points" to your router / bridge / proxy / whatever you use to get on the internet:
Code:
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0
where 10.0.0.2 is your router or gateway address.
My whole "recipe" to do the above looks like this:
Code:
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.254.255.255 up
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0
since I installed my Linux box as having IP 169.254.255.10, but later I had to change it to 10.0.0.8 ...
Hope this helps.