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 at 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/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)? -- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77
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
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