LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   IPv6 only configuration (https://www.linuxquestions.org/questions/red-hat-31/ipv6-only-configuration-4175458451/)

ruben.romartinez 04-17-2013 06:11 AM

IPv6 only configuration
 
Hi,

I am running an application that can work in both environments, IPv4 and IPv6. What I want to test is that if it works in an IPv6 environment only, so I need to deactivate the IPv4. I think I made it works with the eth0 interface but I cant manage to do the same with the loopback interface. Each time I restart the network adapters the lo IP address cames back even after removing the IPv4 value from the ifcfg-lo and adding the IPv6 one. What I finally try after going around is to remove the IPv4 address manually after restarting the network adapters. It worked but when I run my application, it can still create IPv4 sockets.

I run out of ideas so any help will be helpfull.

Kind regards,

Ruben

Ser Olmy 04-18-2013 05:25 PM

You will probably have to recompile the kernel to remove IPv4 support completely.

If you decide to do that, make sure you install the new kernel as a separate boot option in addition to the kernel you're currently using.

ruben.romartinez 04-19-2013 04:25 AM

Thanks. That was what I though after looking around for two days.

mikey99 04-25-2013 06:04 AM

Why don't you just block lo using iptables, and open up in ip6tables.

Mike


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