Click to See Complete Forum and Search --> : changing networks with mandrake
snowgod
03-18-2002, 10:48 PM
so now I'm on spring break and want to get on my home network. Whenever I try to get an ip, I get my one from school, which is a different class ip, but it is under my 192.168 broadcast, the dns servers have both changed to my home isp. I have tried setuptool, as well as releasing and renewing the ip, setting the default gateway to my router, all to no avail. Every time it gives me my school ip. Any ideas?
I'm not sure why the old IP is sticking, but you could go into /etc/sysconfig/network-scripts/ifcfg-eth0 with a text editor and manually remove the old entries. That should force the machine to update itself the next time you start your network services.
The file would then look something like this:
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
IPADDR=
NETMASK=
NETWORK=
BROADCAST=Crude hack, but it might do the trick.
snowgod
03-18-2002, 11:16 PM
nope that didnt' work. I even tried to set a manual ip, but it didnt like it for some reason, then I set it back to dhcp, and it tried for a long time and had no luck, so it went back to the school ip. this is starting to bother me. any other config files where it might cache my old ip?
snowgod
03-18-2002, 11:22 PM
fyi another interesting tidbit. If I have a static ip, and I try to view a site, I automatically get a cannot find server error, but I can get to my router from it, and I know that the dns is set up right. if I use dhcp and get my school ip and try to view a page, it looks for the webpage for a while before timing out. I don't know if this will help anyone.
Wierd. You can check /etc/sysconfig/network, but it sounds like you've got something else going on there. Sorry I can't be of any more help, but I've got to log off and go home now.