0

I've stripped the desktop from my installation as per my last question, but it is not assigning my server an IPv4 address, there is nothing wrong with my configuration, I just need it to give my server a IPv4 address alongside the IPv6 address so that I can access it from within my network for things like portforwarding. My router does not support port forwarding with an IPv6 address and my other computers within the network can't connect to my server because it lacks an IPv4 address. So in a nutshell I need to make my server assign itself an IPv4 address. My server will not show up in the connected devices of my router until I give it an IPv4 address, which creates a problem. Setting a static IP in /etc/network/interfaces doesn't work, it only makes my server think that it has an IPv4, but the network doesn't recognize it.

15
  • Do you mean that you have an IPv6 address that does not start with fe80? Jul 16, 2014 at 18:58
  • It does start with fe80, just my router doesn't support it and I would prefer to use IPv4
    – Wargog
    Jul 16, 2014 at 19:03
  • 1
    fe80 is a link-local address. This address cannot be used for routing outside of your local network, and may or may not be used when routing inside of your local network. If you don't see any problems, I wouldn't go to the lengths of disabling IPv6 just so you don't see that address. Jul 16, 2014 at 19:05
  • Well, then how do I make IPv4 show up along it, it lets me connect outside my network but not locally from computers within my network. If you would advise against disabling IPv6 then any tips on re-enabling IPv4?
    – Wargog
    Jul 16, 2014 at 19:07
  • It is hard to tell from what little you have posted. What makes you feel you do not have an ipv4 address ? Also, we need to see the config file(s) you edited.
    – Panther
    Jul 16, 2014 at 19:12

1 Answer 1

1

The only way to completely disable IPv6 is by blacklisting the kernel module. Put the following line in /etc/modprobe.d/blacklist:

blacklist ipv6

Warning: IPv6 is becoming more important each day and IPv6 support is assumed by more and more software these days, even if you don't use it (yet). Blacklisting the kernel module might break things.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .