OpenVZ Forum


Home » General » Support » *SOLVED* disable ipv6
*SOLVED* disable ipv6 [message #13429] Sat, 26 May 2007 17:28 Go to next message
Cri74 is currently offline  Cri74
Messages: 7
Registered: November 2006
Junior Member
Hi,
I would like to disable ipv6 on my FC6 x86_64 with the kernel
2.6.18-ovz028stab031.1-smp

I try to set on modprobe.conf this alias
alias net-pf-10 off
alias ipv6 off

but if I try ifconfig
eth2 Link encap:Ethernet HWaddr 00:08:A1:3C:52:E7
inet addr:192.168.251.2 Bcast:192.168.251.3 Mask:255.255.255.252
inet6 addr: fe80::208:a1ff:fe3c:52e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:164860 errors:0 dropped:0 overruns:0 frame:0
TX packets:101105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:172301020 (164.3 MiB) TX bytes:12537445 (11.9 MiB)
Interrupt:19 Base address:0xc00

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:20459 errors:0 dropped:0 overruns:0 frame:0
TX packets:20459 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28980866 (27.6 MiB) TX bytes:28980866 (27.6 MiB)


It seems that ipv6 is active
Is it possible to disable it?
Thanks

Cristina

[Updated on: Sun, 27 May 2007 07:44] by Moderator

Report message to a moderator

Re: disable ipv6 [message #13436 is a reply to message #13429] Sat, 26 May 2007 21:10 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

As far as I remember on FC6 there is /etc/sysconfig/network file:
# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
You can use it to trigger ipv6.

However, this operation, certainly will not remove "inet6 addr: ..." line from ifconfig output. It is ok: IPv6 support is compiled in OVZ kernels, but interface will use the protocol (IPv4 or IPv6) which user wishes! Wink So this line shouldn't worry you.

HTH,
Vasily.
Re: disable ipv6 [message #13443 is a reply to message #13436] Sun, 27 May 2007 05:27 Go to previous messageGo to next message
Cri74 is currently offline  Cri74
Messages: 7
Registered: November 2006
Junior Member
Ok,
Thank you very much! Smile
Re: disable ipv6 [message #32875 is a reply to message #13436] Sat, 06 September 2008 12:21 Go to previous message
sHaggY_caT is currently offline  sHaggY_caT
Messages: 144
Registered: August 2008
Location: Moscow, Russian Federatio...
Senior Member

I set this options

[shaggycat@hn ~]$ cat /etc/sysconfig/network | grep NETWORKING
NETWORKING=yes
NETWORKING_IPV6=no
[shaggycat@hn ~]$ 


But, why some servises on HN bind from ipv6:


[shaggycat@hn ~]$ netstat -nl | grep LISTEN | grep -v unix
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:4000                0.0.0.0:*                   LISTEN      
tcp        0      0 10.0.10.3:4001              

.....

0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:4662                0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN      
tcp        0      0 :::80                       :::*                        LISTEN      
tcp        0      0 :::959                      :::*                        LISTEN      
[shaggycat@hn ~]$ 


What's wrong?

Thanks.


IT-outsource for UNIX servers,
http://ha-systems.ru

[Updated on: Sat, 06 September 2008 12:28]

Report message to a moderator

Previous Topic: Network issue
Next Topic: simfs not showing up
Goto Forum:
  


Current Time: Thu Jul 11 16:36:30 GMT 2024

Total time taken to generate the page: 0.02398 seconds