paulwong

Disable ipv6 on ubuntu

  1. For disable IPv6 on Ubuntu Server, we need add these configuration lines in /etc/sysctl.conf
    # IPv6 configuration
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1

  2. Reload configurationf or sysctl.conf
    sysctl -p
  3. Check IPv6 is disabled on Ubuntu Server
     root@ip-10-48-234-13:/# ip addr
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 12:31:3c:03:e9:fb brd ff:ff:ff:ff:ff:ff
    inet 10.48.234.13/23 brd 10.48.235.255 scope global eth0




posted on 2013-10-08 21:19 paulwong 阅读(333) 评论(0)  编辑  收藏 所属分类: LINUX


只有注册用户登录后才能发表评论。


网站导航: