Solaris 11 disable IPv6


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 11 disable IPv6
# 1  
Old 07-24-2012
Question Solaris 11 disable IPv6

I've new installed Solaris 11 on Sparc T4-1.

I'd like to disable IPv6 but with no luck.

Code:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
net0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.230 netmask ffffff00 broadcast 192.168.0.255
        ether 0:21:28:fa:3:32
net4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
        ether 2:21:28:57:47:17
net4: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 4
        inet6 ::/0
        ether 2:21:28:57:47:17
root@endeavour-db:~#

I tried to use ipadm but I'm not getting the right way to do it.

Code:
root@endeavour-db:~# ipadm disable-if net4/v6
ipadm: persistent operation not supported for disable-if
root@endeavour-db:~# ipadm delete-addr net4/v6
ipadm: cannot delete address: Object not found
root@endeavour-db:~# ipadm disable-addr net4/v6
ipadm: persistent operation not supported for disable-addr

I'd appreciate if someone can help me.

many thanks

Last edited by samer.odeh; 07-24-2012 at 04:46 AM.. Reason: mistyping
# 2  
Old 07-25-2012
I have not done this in many months.
so I am working from my notes.

ipadm can be used like this:
Code:
ipadm down-addr net0/v6

or
hack the config file:
/etc/ipadm/ipadm.conf & remove family=26



my understanding of things is that disabling IPV6 is NOT supported by oracle, and not recommended.

also I disabling IPV6 on the loopback can result in strange bugs.
# 3  
Old 07-26-2012
Thanks for reply,

it looks fine now.


Code:
root# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.238 netmask ffffff00 broadcast 192.168.0.255
        ether 0:21:28:fa:3:32

Appreciate your support.

Last edited by samer.odeh; 07-26-2012 at 04:05 AM.. Reason: mistypo
# 4  
Old 07-29-2012
Hello


After I rebooted I get IPv6 back, what's bad that when I tried to create an IPMP by issuing ipadm command, it created two ipmp for me, one is v4 and v6.
Code:
 ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
net0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.0.223 netmask ffffff00 broadcast 192.168.0.255
        groupname ipmp0
        ether 0:21:28:f9:9d:e8
net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 0.0.0.0 netmask ff000000
        groupname ipmp0
        ether 0:21:28:f9:9d:e9
net4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
        ether 2:21:28:57:47:17
ipmp0: flags=8001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,IPMP> mtu 1500 index 5
        inet 192.168.0.157 netmask ffffff00 broadcast 192.168.0.255
        groupname ipmp0
net4: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
        inet6 ::/0
        ether 2:21:28:57:47:17
ipmp0: flags=28002000840<RUNNING,MULTICAST,IPv6,IPMP> mtu 1280 index 5
        inet6 ::/0
        groupname ipmp0


is there someway to disable IPv6 permanently.

Best Regards
# 5  
Old 07-30-2012
your only choice may be to hack the config file:
/etc/ipadm/ipadm.conf & remove family=26

this should work across reboots.


Quote:
Originally Posted by samer.odeh
Hello


After I rebooted I get IPv6 back, what's bad that when I tried to create an IPMP by issuing ipadm command, it created two ipmp for me, one is v4 and v6.
Code:
 ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
net0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.0.223 netmask ffffff00 broadcast 192.168.0.255
        groupname ipmp0
        ether 0:21:28:f9:9d:e8
net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 0.0.0.0 netmask ff000000
        groupname ipmp0
        ether 0:21:28:f9:9d:e9
net4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
        ether 2:21:28:57:47:17
ipmp0: flags=8001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,IPMP> mtu 1500 index 5
        inet 192.168.0.157 netmask ffffff00 broadcast 192.168.0.255
        groupname ipmp0
net4: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
        inet6 ::/0
        ether 2:21:28:57:47:17
ipmp0: flags=28002000840<RUNNING,MULTICAST,IPv6,IPMP> mtu 1280 index 5
        inet6 ::/0
        groupname ipmp0


is there someway to disable IPv6 permanently.

Best Regards
# 6  
Old 07-30-2012
Hello Robsonde

Unfortunately after reboot family26 is getting created again in ipadm.conf


Code:
# less /etc/ipadm/ipadm.conf
#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# DO NOT EDIT OR PARSE THIS FILE!
#
# Use the ipadm(1m) command to change the contents of this file.
_ifname=lo0;_family=2;_class=2;
_ifname=lo0;_aobjname=lo0/v4;_ipv4addr=127.0.0.1,;up=yes;
_ifname=lo0;_aobjname=lo0/v4;prefixlen=8;
_ifname=net0;_family=2;_class=0;
_ifname=net0;_aobjname=net0/v4;_ipv4addr=192.168.0.238,;up=yes;
_ifname=net0;_aobjname=net0/v4;prefixlen=24;
_ifname=net4;_family=2;_class=0;
_ifname=net4;_family=26;_class=0;
_ifname=net4;_aobjname=net4/v4;_ipv4addr=169.254.182.77,;up=yes;
_ifname=net4;_aobjname=net4/v4;prefixlen=24;


Something else looks weird, command is showing net0-4 which means 5 network interfaces while I have only 4 built-in network interfaces in my T4-1:


Code:
root@endeavour-db:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0      unknown   igb1
net4              Ethernet             up         10     full      usbecm2
net3              Ethernet             unknown    0      unknown   igb3
net0              Ethernet             up         100    full      igb0
net2              Ethernet             unknown    0      unknown   igb2
root@endeavour-db:~#  dladm show-link
LINK                CLASS     MTU    STATE    OVER
net1                phys      1500   unknown  --
net4                phys      1500   up       --
net3                phys      1500   unknown  --
net0                phys      1500   up       --
net2                phys      1500   unknown  --
root@endeavour-db:~#

At the same time ipadm showing only v4 IP addresses, the only problem is with ifconfig.


Code:
~# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
net0/v4           static   ok           192.168.0.238/24
net4/v4           static   ok           169.254.182.77/24

# 7  
Old 07-31-2012
I am sorry, but I have not really used sol11 much yet.

maybe put the ipadm down-addr net0/v6 command into a startup script?

ugly , but it should get results.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 IPv6

Hello Dears , please I need your support I have Oracle Solaris 10 X86 server please if you can advise how can I add IP v6 on my server and if IPv6 was disabled how can i enable it also how can i add two IP (v4 and v6) on the same interface or I have to add another interface . Thanks in... (1 Reply)
Discussion started by: ttashman
1 Replies

2. UNIX for Dummies Questions & Answers

Assigning ipv6 to bonding interface - getting old as well as changed ipv6 in ifconfig output

Hi, I have created a bonding bond1 interface with 6 Eth , mode=4. Recently i have changed my old ipv6 to new one and tried to restart as well as reload network service. Post which i can see old as well as changed ipv6 in ifconfig command output. Below are few files and command output for your... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies

3. Solaris

IPv6 for Solaris DNS

I have Bind running on a Solaris box that is our main public DNS. Given my very limited knowledge on DNS, I changed a few of the zones in the DNS to be 'dual-stack'. I did it through Webmin, but I know that I can also do it by adding an AAAA-record to the zone file. My question is how can I make... (2 Replies)
Discussion started by: Dardeer
2 Replies

4. IP Networking

RedHat/Centos Disable IPv6 Networking

Guide on how to disable ipv6 for Centos and RedHat 1) Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and change: NETWORKING_IPV6=yes to NETWORKING_IPV6=no 2) Edit /etc/modprobe.conf and add these lines: alias net-pf-10 off alias ipv6 off 3) Stop the ipv6tables service: ... (0 Replies)
Discussion started by: zanna91
0 Replies

5. UNIX and Linux Applications

Konqueror disable IPv6

Does anyone know how to disable IPv6 in Konqueror in Fedora? (5 Replies)
Discussion started by: cokedude
5 Replies

6. Solaris

Solaris 19 10/09 ipv6 interface configuration

Hi, anyone has had experience in a static setting an IPv6 interface?, I'm trying accordance with the admin guide (ipv6 network configuration tasks), configure one interface in the server, actually i can do ping to my default gateway and access the Internet in IPv6, the specific point is however,... (3 Replies)
Discussion started by: pabloluja
3 Replies

7. IP Networking

IPv6 on Solaris 10

Hi! I have to configure ipv6 network between two computers with Solaris 10 but I not an expert in using any unix system and I do it becouse I need it to my study. Is someone here who could help me and describe step-by-step how to do it? please!!! PS. I need to configure network to do secure... (1 Reply)
Discussion started by: kolec
1 Replies

8. IP Networking

Solaris IPv6

Hi, Anybody who worked with IPv6 on Solaris 8. I want to get rid of IPv6 (Uninstall). Any comments ...ideas...will be highly appreciated. (4 Replies)
Discussion started by: s_aamir
4 Replies
Login or Register to Ask a Question