Disable IPv6 support in Ubuntu/Linux.

As many people know, Ubuntu supports IPv6 by default.
It's nice but sometimes you don't have chance to use IPv6 in your network environment.
And maybe, sometimes it brings few more complexity for your system administration tasks.

For example, if you set [i]listen_ip=0.0.0.0:80[/i] in a services daemon's config file and hope it can listen to all of the IPv4 IPs of your network interfaces, you might not get what you want.

This is because, if the daemon supports both IPv4 and IPv6, it will listen to [i]IPv6 :::80[/i] by default. That's why you cannot connect to your service even the network link is up.

[b]HOWTO:[/b]
There are many different, alternative, or strange ways people tell you that it can disable IPv6.
But the best way is using [u]/etc/sysctl.conf[/u] to disable it in your kernel.

  1. Using those commands to append kernel settings/parameters into [u]/etc/sysctl.conf[/u]
    [i]echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf[/i]
    [i]echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf[/i]
    [i]echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf[/i]
    [i]echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf[/i]
  2. Enable those settings Righ Now!
    [i]sysctl -p[/i]

[b]Done![/b]
All those setting will will be kept and will be applied/enabled automatically at future boot time.


Tested on: Ubuntu 8.04 LTS, Ubuntu 10.04 LTS

Comments

Celine box Bag

Welcome to help celine bag website, celine shopping bags having superior excellent on sale, cheap Celine Purse will save nearly 50% down.Celine Boogie Bag offer people 2012 styles, many Celine Box Bag price cut available for you.This influx of people from the avenues give pull Celine Luggage Bag, a type of cell phone.This gals along with the almost all happy to spend money on designer shopping bags, although high priced, although given that this carefully determined typical evergreen model, is incredibly worth this investment.Breathtaking in addition to exquisite Celine Phantom Bag.This can be the case intended for slip of which everybody is dealing with along with the wait number is usually a mile very long! CelineTote Bag extravagance light in weight substantial sizzling supermodel instruct this selection concept, this addition towards online coloration Trainspotting reddish colored pattern, together with leopard, Beam of light Slice pattern in addition to studs design.

Forward

Email this page

Syndicate

Syndicate content