Linux – Configure static IPv4 and IPv6 address in OpenSuse 13.2

ipv6linuxopensuse

Please help me to configure both IPv4 and IPv6 address to device eth0 in OpenSuse 13.2, i tried with the following parameters on ifcfg-eth0:

BOOTPROTO='static'
NM_CONTROLLED='no'
USERCONTROL='yes'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.1.20/24'
MTU=''
NAME='eth0'
NETMASK='255.255.255.0'
NETWORK=''
STARTMODE='auto'
############# IPV6 #############
NETWORKING_IPV6='yes'
IPV6INIT='yes'
IPV6ADDR='2607:f0d0:1002:0011:0000:0000:0000:0001/64'
IPV6_DEFAULTDEV=eth0

The wicked service is working, when service restart the IPV6 address is not configured.

Thanks in advance. Regards.

Best Answer

Thanks for your reply, reading a bit more i found the correct parameter to configure IPV4 and IPV6 address in OpenSuse 13.2, the network file config is:

BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.1.20/24'
MTU=''
NAME='eth0'
NETMASK='255.255.255.0'
NETWORK=''
STARTMODE='auto'
IPADDR_0='2607:f0d0:1002:0011:0000:0000:0000:0001'
PREFIXLEN_0=64

I did ping6 test between two linux in my network and is correct. I hope this config helps someone.

Regards.

Related Topic