Disabling IPv6 on one NIC

Alexander Apprich a.apprich at science-computing.de
Tue Mar 15 11:57:22 UTC 2005


Paul Howarth wrote:
> Alexander Apprich wrote:
> 
>> buntschu wrote:
>>
>>> Hi,
>>>
>>> On a system running FC3 I have 2 NIC cards. I would like to activate 
>>> IPv6 only on one card and only IPv4 on the other one.
>>>
>>> My /etc/sysconfig/network-scripts/ifcfg-eth0 looks like:
>>>
>>> DEVICE=eth0
>>> BOOTPROTO=none
>>> ONBOOT=yes
>>> TYPE=Ethernet
>>> NETMASK=255.255.255.0
>>> IPADDR=192.168.1.10
>>> USERCTL=yes
>>> PEERDNS=yes
>>> GATEWAY=192.168.1.1
>>> IPV6INIT=no
>>> IPV6_AUTOCONF=no
>>>
>>> And when running:
>>>
>>> /etc/init.d/network restart
>>>
>>> I still have IPv6 active on eth0 and autoconfiguration running..
>>>
>>> Any ideas ?
>>>
>>>
>>
>> Google found this
>>
>> http://www.mjmwired.net/resources/mjm-fedora-fc3.shtml
>>
>> [snip]
>> To disable IPV6: As root, you must add the line: "alias net-pf-10 off" 
>> (without quotes)
>> to the end of your /etc/modprobe.conf file.
>>
>> -OR-
>>
>> Quick solution:
>>
>> [root at charon fc3]# echo "alias net-pf-10 off" >> /etc/modprobe.conf
>>
>> A reboot is required.
>> [/snip]
> 
> 
> Which totally disables IPv6 on the system, not what the OP wanted to do.

Yep, my fault. I just read disable ipv6 and... nevermind :-)

> 
> Paul.
> 

root at elmstreet / # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:11:5D:81:B0
           inet addr:10.0.0.129  Bcast:10.0.30.255  Mask:255.255.255.0
           inet6 addr: fe80::211:11ff:fe5d:81b0/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:40793910 errors:0 dropped:0 overruns:0 frame:0
           TX packets:33752564 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:2759283693 (2.5 GiB)  TX bytes:1791346460 (1.6 GiB)
           Base address:0xbc00 Memory:feae0000-feb00000

root at elmstreet / # ifconfig eth0 del fe80::211:11ff:fe5d:81b0/64

root at elmstreet / # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:11:5D:81:B0
           inet addr:10.0.0.129  Bcast:10.0.30.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:40796792 errors:0 dropped:0 overruns:0 frame:0
           TX packets:33754876 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:2761134766 (2.5 GiB)  TX bytes:1791518943 (1.6 GiB)
           Base address:0xbc00 Memory:feae0000-feb00000

I would guess my eth0 wouldn't listen to ipv6 from now on...

Alex




More information about the fedora-list mailing list