My school uses the 10.x.x.x block of private IPs for the lab. I use
192.168.x.x for my LAN. I hav a laptop that I bring to school sometimes
and hook up to the network(temporarily taking a cable out of a lab PC
and putting it in my laptop and borrowing the IP of the PC as well)
THe problem is I can't get ifconfig to change both the IP and the netmask.
If i do:
ifconfig eth0 up address 10.0.108.154 netmask 255.0.0.0
it hangs and i hit Ctrl-C to get a prompt back. If I do an 'ifconfig'
the IP is back to using the original IP (192.168.x.x) but the netmask
changed to what it should be, 255.0.0.0. Why won't both the IP and the
I've looked at the manpage but it didn't help, plus i don't think it's
right anyway. The syntax the man page shows is to pipe the IP at teh end.
I tried that by doing the following:
ifconfig eth0 up netmask 255.0.0.0 | address 10.0.108.154
well, that gave me a prompt back but when i checked with ifconfig the IP
STILL didnt change. Why the hell not?
thanks for any help