Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
CentOS is running in a Qemu instance with e1000 ethernet card.
2014-09-07 11:24 GMT+03:00 dE de.techno@gmail.com:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.´
try disabling ipv6 autoconfiguration from sysctl.conf ?
-- Eero
On 09/07/14 14:03, Eero Volotinen wrote:
2014-09-07 11:24 GMT+03:00 dE de.techno@gmail.com:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.´
try disabling ipv6 autoconfiguration from sysctl.conf ?
-- Eero _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Yeah, I set sys.net.ipv6.conf.all.accept_ra to 0. However Linux did not do any auto reconfiguration. There were no ipv6 address on it.
On 09/07/2014 03:24 AM, dE wrote:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
The cool kids are all using 'ip' these days since ifconfig is deprecated.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
Is the device under NetworkManager control (this is the default)?
On 09/07/14 21:20, Jim Perrin wrote:
On 09/07/2014 03:24 AM, dE wrote:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
The cool kids are all using 'ip' these days since ifconfig is deprecated.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
Is the device under NetworkManager control (this is the default)?
Yeah, thanks for the heads up. net-tools got no updates since 3 years and iproute2 looks incredibly complicated (cause it has support for advanced routing and traffic management).
NetworkManager is not installed in the minimal centOS install.
Em 07-09-2014 05:24, dE escreveu:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
CentOS is running in a Qemu instance with e1000 ethernet card.
Almost the same setup here (!minimal install, but everything else similar) works..
What's the current output of ifconfig for this interface? Does it list any ipv6 addresses on it?
And could you try the ip command as suggested by Jim? In your case, it's just: ip -6 addr add dev enp0s3 fc00::1002/124
Marcelo
On 09/11/14 07:51, Marcelo Ricardo Leitner wrote:
Em 07-09-2014 05:24, dE escreveu:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
CentOS is running in a Qemu instance with e1000 ethernet card.
Almost the same setup here (!minimal install, but everything else similar) works..
What's the current output of ifconfig for this interface? Does it list any ipv6 addresses on it?
And could you try the ip command as suggested by Jim? In your case, it's just: ip -6 addr add dev enp0s3 fc00::1002/124
Marcelo
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Ifconfig lists all interfaces normally. There's enp0s3 and lo. Both are up, and no, they've no ipv6 addresses (cannot assign them even using ifcfg).
ifcfg enp0s3 add fc00::1002/124 results in arping: Unknown host fc00:1002 Error: some host already uses address fc00:1002 on enp0s3.
You know the last error message sounds ridiculous. The virtual interface on the host has IP fc00::1001/124
Using ip, it also complains "RTNETLINK answer: Permission denied".
Since this's a fresh install, I think I should file a bug.
On 11 September 2014 05:30, dE de.techno@gmail.com wrote:
ifcfg enp0s3 add fc00::1002/124 results in arping: Unknown host fc00:1002 Error: some host already uses address fc00:1002 on enp0s3.
You know the last error message sounds ridiculous. The virtual interface on the host has IP fc00::1001/124
Using ip, it also complains "RTNETLINK answer: Permission denied".
Since this's a fresh install, I think I should file a bug.
Um ifcfg doesn't handle ipv6 - just take a look at the shell script that makes it up ...
This is highlighted by arping ... ipv6 does not use arp
I just built a minimal C7 instance to verify the behaviour...
systemctl status NetworkManager shows that it is running
ip addr add fc00::1001/124 dev eth0 adds the IP address to the interface
NetworkManager does not remove this from the interface
On 09/11/14 13:54, James Hogarth wrote:
On 11 September 2014 05:30, dE de.techno@gmail.com wrote:
ifcfg enp0s3 add fc00::1002/124 results in arping: Unknown host fc00:1002 Error: some host already uses address fc00:1002 on enp0s3.
You know the last error message sounds ridiculous. The virtual interface on the host has IP fc00::1001/124
Using ip, it also complains "RTNETLINK answer: Permission denied".
Since this's a fresh install, I think I should file a bug.
Um ifcfg doesn't handle ipv6 - just take a look at the shell script that makes it up ...
This is highlighted by arping ... ipv6 does not use arp
I just built a minimal C7 instance to verify the behaviour...
systemctl status NetworkManager shows that it is running
ip addr add fc00::1001/124 dev eth0 adds the IP address to the interface
NetworkManager does not remove this from the interface _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Minimal CentOS does not have NetworkManager.
On 15 Sep 2014 18:12, "dE" de.techno@gmail.com wrote:
Minimal CentOS does not have NetworkManager.
*blink*
I built a minimal (just the minimal package group) CentOS 7 to test this just for you and I assure you NetworkManager was there. C6 did not have it in minimal but C7 does.
Read the comps file if you want:
http://mirror.centos.org/centos/7/os/x86_64/repodata/2bc0054a9f0f4cd3d2806d9...
@core is the only group in the grouplist for the minimal environment and has NetworkManager in the default set.
If you do a minimal C7 install it includes NM unless you take steps not to have it there such as a kickstart with -NetworkManager in %packages
On 09/15/14 23:34, James Hogarth wrote:
On 15 Sep 2014 18:12, "dE" de.techno@gmail.com wrote:
Minimal CentOS does not have NetworkManager.
*blink*
I built a minimal (just the minimal package group) CentOS 7 to test this just for you and I assure you NetworkManager was there. C6 did not have it in minimal but C7 does.
Read the comps file if you want:
http://mirror.centos.org/centos/7/os/x86_64/repodata/2bc0054a9f0f4cd3d2806d9...
@core is the only group in the grouplist for the minimal environment and has NetworkManager in the default set.
If you do a minimal C7 install it includes NM unless you take steps not to have it there such as a kickstart with -NetworkManager in %packages _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Yeah, I'll try this again.
Thanks for the help. Currently I'm working with CentOS 6.5
On 16 Sep 2014 04:14, "dE" de.techno@gmail.com wrote:
Yeah, I'll try this again.
Thanks for the help. Currently I'm working with CentOS 6.5
That's fairly important information to know due to the huge differences in behaviour.
Your original post stated CentOS 7
On 09/16/14 11:37, James Hogarth wrote:
On 16 Sep 2014 04:14, "dE" de.techno@gmail.com wrote:
Yeah, I'll try this again.
Thanks for the help. Currently I'm working with CentOS 6.5
That's fairly important information to know due to the huge differences in behaviour.
Your original post stated CentOS 7 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
No, I migrated to CentOS 6. This problem persists with CentOS 7.
Em 07-09-2014 05:24, dE escreveu:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
CentOS is running in a Qemu instance with e1000 ethernet card.
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if its not configured via NM...
Marcelo
On 09/17/14 21:03, Marcelo Ricardo Leitner wrote:
Em 07-09-2014 05:24, dE escreveu:
Hi!
I installed CentOS 7 today, it's a minimal install, so it didn't have ifconfig command. So I installed net-tools, however I can't add ipv6 address to it.
# ifconfig enp0s3 add fc00::1002/124 SIOCSIFADDR: Permission denied.
Yes, I'm running as root.
CentOS is running in a Qemu instance with e1000 ethernet card.
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if its not configured via NM...
Marcelo
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Yes, that was it. Thanks!!
But this's the default? The installer should be checked for this.
On 18 Sep 2014 09:07, "dE" de.techno@gmail.com wrote:
On 09/17/14 21:03, Marcelo Ricardo Leitner wrote:
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if
its not configured via NM...
Yes, that was it. Thanks!!
But this's the default? The installer should be checked for this.
The default is not to disable ipv6 so something in your environment actively did this.
This does, however, leave me somewhat confused as to how you claimed there was a fc00::1001 address on there and you were adding the additional address when you saw the refused message...
On 18-09-2014 13:57, James Hogarth wrote:
On 18 Sep 2014 09:07, "dE" de.techno@gmail.com wrote:
On 09/17/14 21:03, Marcelo Ricardo Leitner wrote:
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if
its not configured via NM...
Yes, that was it. Thanks!!
But this's the default? The installer should be checked for this.
The default is not to disable ipv6 so something in your environment actively did this.
Well... NM needs to put the interface UP so it can reliably monitor the link state. But that was turning ipv6 addr auto-config on and was considered a security issue and thus NM started disabling ipv6 on such (non-configured via NM but monitored) interface to avoid the address auto-configuration from happening, yet causing this.
The fix (to be able to bring it up without ipv6 address autoconfig) needed kernel & NM patches and show be available on 7.0.z very soon.
This does, however, leave me somewhat confused as to how you claimed there was a fc00::1001 address on there and you were adding the additional address when you saw the refused message...
Such address was on the host, no?
Cheers, Marcelo
On 09/20/14 02:22, Marcelo Ricardo Leitner wrote:
On 18-09-2014 13:57, James Hogarth wrote:
On 18 Sep 2014 09:07, "dE" de.techno@gmail.com wrote:
On 09/17/14 21:03, Marcelo Ricardo Leitner wrote:
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if
its not configured via NM...
Yes, that was it. Thanks!!
But this's the default? The installer should be checked for this.
The default is not to disable ipv6 so something in your environment actively did this.
Well... NM needs to put the interface UP so it can reliably monitor the link state. But that was turning ipv6 addr auto-config on and was considered a security issue and thus NM started disabling ipv6 on such (non-configured via NM but monitored) interface to avoid the address auto-configuration from happening, yet causing this.
The fix (to be able to bring it up without ipv6 address autoconfig) needed kernel & NM patches and show be available on 7.0.z very soon.
This does, however, leave me somewhat confused as to how you claimed there was a fc00::1001 address on there and you were adding the additional address when you saw the refused message...
Such address was on the host, no?
Cheers, Marcelo
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Ok, NM IS installed. My bad, I didn't realize.
On 09/18/14 22:27, James Hogarth wrote:
On 18 Sep 2014 09:07, "dE" de.techno@gmail.com wrote:
On 09/17/14 21:03, Marcelo Ricardo Leitner wrote:
One more test. Please check sysctl -a | grep disable_ipv6 output And if it's =1, set it to 0.
When NetworkManager is running, it may disable ipv6 on the interface if
its not configured via NM...
Yes, that was it. Thanks!!
But this's the default? The installer should be checked for this.
The default is not to disable ipv6 so something in your environment actively did this.
This does, however, leave me somewhat confused as to how you claimed there was a fc00::1001 address on there and you were adding the additional address when you saw the refused message... _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I did not claim that, I said that's the host's address. I was not able to set the guest address.