LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to check whether ipv6 is enables or not in my system (https://www.linuxquestions.org/questions/linux-networking-3/how-to-check-whether-ipv6-is-enables-or-not-in-my-system-677728/)

srinivas1224 10-20-2008 03:51 AM

how to check whether ipv6 is enables or not in my system
 
Hi,

I'm using Linux Fedora core6, I want to check whether the my system is enable to ipv6 or not. Is there any commands to check this.

bathory 10-20-2008 06:37 AM

You can run
Code:

ifconfig
and see if your nic has an ipv6 address, or
Code:

lsmod|grep ipv6
to see if the ipv6 module is loaded into the kernel.

srinivas1224 10-21-2008 01:16 AM

Quote:

Originally Posted by bathory (Post 3316384)
You can run
Code:

ifconfig
and see if your nic has an ipv6 address, or
Code:

lsmod|grep ipv6
to see if the ipv6 module is loaded into the kernel.

hi bathory !

Thanks for reply.

Already I did the same. but my network manager is arguing reg in my system ipv6 is disabled but kernel is ready to support ipv6, if ipv6 service is enabled.

Case1:
[root@srinivas ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain


Case2:

[root@srinivas ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82557/8/9 [Ethernet Pro 100]
DEVICE=eth0
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.119
GATEWAY=192.168.0.13
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
BOOTPROTO=none
HWADDR=00:a0:c9:db:90:81
[root@srinivas ~]#



As per you mail these are the results for those commands,

[root@srinivas ~]# lsmod|grep ipv6
ipv6 267745 14

[root@srinivas ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:C9:DB:90:81
inet addr:192.168.0.119 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:c9ff:fedb:9081/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72774 errors:3 dropped:0 overruns:0 frame:3
TX packets:53070 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20612174 (19.6 MiB) TX bytes:6169872 (5.8 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1982 errors:0 dropped:0 overruns:0 frame:0
TX packets:1982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6740142 (6.4 MiB) TX bytes:6740142 (6.4 MiB)

[root@srinivas ~]#

Let me know is really ipv6 is enabled in my system or not. Incase if it is enabled how can I disable it.

bathory 10-21-2008 03:50 AM

Quote:

[root@srinivas ~]# lsmod|grep ipv6
ipv6 267745 14
The ipv6 module is loaded into kernel, that means that your system supports ipv6 (you can say it's enabled). But according to your nic configuration you've stop the ipv6 networking ability.
If you want to disable it completely, then make sure that the ipv6 module is not loaded at startup. I don't know about Fedora, but in general you can put the module in /etc/modprobe.d/blacklist to prevent it from loading on boot.

Regards

srinivas1224 10-21-2008 12:46 PM

how can I set the disabling ipv6 environment to existing /etc/modprobe.d/blacklist file. Is there any problem with this update?

bathory 10-21-2008 12:58 PM

Add the following in /etc/modprobe.d/blacklist:
Code:

blacklist ipv6
There would be no problem disabling ipv6, if you don't need it.

Regards


All times are GMT -5. The time now is 06:36 PM.