Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two machines; one is a Windows PC, and the other is a Linux netbook. I use them both at home, and they're each wired to a hub which is connected to a cable-modem. Handily, my provider gives me a separate external IP address for each device, and each had a distinct IPv4 address.
I recently had my cable-modem replaced for a newer one, since the old one was getting a bit dodgy.
However, after the modem had been replaced, I realized that while my PC was continuing to get an IPv4 address (the same one as before), the Linux netbook was being assigned an IPv6 address.
This is a pain for a couple of reasons, but suffice to say that I'd really like it have an IPv4 address.
I thought that disabling IPv6 on the Linux box would sort it out, and that it would automatically find itself an IPv4 address after rebooting, but no matter how I disable IPv6 (I've done it a couple of different ways, following various tutorials), I can't seem to get the machine to pick up an IPv4 address, even though it previously did. (although disabling IPv6 does, indeed, prevent it from being assigned an IPv6 address, so that bit works).
Has anyone any ideas on how I can go about resolving this?
Many thanks in advance.
Last edited by cheddarcheese; 07-06-2012 at 12:11 PM.
I tried the other bits you (Kustom42) said, but it made no difference. I wondered if I was somehow misreading the ifconfig output, but it definitely gives me an "inet6 addr" line, with an IPv6 address, and when I booted without the network cable then there was no inet6 addr line.
So, I think it definitely is assigning an IPv6 address, but - oddly - even though it does assign an address, I still can't get any network activity at all anyway. I tried a few pings to various addresses and all I get back is "Connect: Network is unreachable"
If I ping 127.0.0.1 then I get "From 127.0.0.1 icmp_seq=x Destination Host Prohibited" messages.
As I mentioned earlier, everything was working perfectly until my cable-modem got switched to a new one, and nothing else has changed.
Any suggestions, comments, etc, much appreciated. Thanks!
Well, the suggestion worked in as much as it disabled IPv6, as it also did previously, but IPv4 doesn't seem to get the idea, and I end up without any IP address at all, IPv6 or IPv4.
This problem seems so odd. Everything was working fine until my cable-modem was switched out for a new one. It's the only thing that has changed.
More ideas and suggestions greatly appreciated. It must be something really silly I'm sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.