Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17903

Setting up new network interface for IPv6, device name not detected and route not set.

$
0
0

I'm currently trying to setup a static IPv6 address and am having issues with it properly setting up the route. Running CentOS Linux release 7.2.1511 (Core)

My /etc/sysconfig/network-scripts/ifcfg-eno1:1 file looks like this:

DEVICE=eno1:1 BOOTPROTO=static ONBOOT=yes TYPE="Ethernet" IPV6INIT=yes IPV6ADDR="ipv6:addr:here/128" IPV6_DEFAULTGW="IPV6:GATEWAY:HERE" 

From what I can see, the DEVICE name is not detected so in the /etc/sysconfig/network-scripts/network-functions-ipv6 file it's trying to setup the wrong route. With no device name the function calls:
/sbin/ip -6 route add $networkipv6 via $gatewayipv6 metric 1 2>&1

Expanded: /sbin/ip -6 route add ::/0 via IPV6:GATEWAY:HERE metric 1 2>&1

The error I get after I try to ifup it: ERROR : [ipv6_add_route] 'No route to host' adding route '::/0' via gateway 'IPV6:GATEWAY:HERE' through device ''

When instead the device name should exist and call:
/sbin/ip -6 route add IPV6:GATEWAY:HERE dev eno1:1 1 2>&1

However I don't need the above but rather just the parent device name of eno1.

Everytime I restart the interface (or server) I have to call it manually.


What I've tried for config changes:

  • Adding in IPV6_DEFAULTDEV=eno1:1 . Device name still not detected at all.
  • Adding in IPV6_DEFAULTDEV=eno1 . Not detected
  • Encapsulating the IPV6_DEFAULTDEV name in quotes like: IPV6_DEFAULTDEV="eno1"
  • Appending to IPV6_DEFAULTGW the device name like so: ::%eno1:1
  • Appending to IPV6_DEFAULTGW the device name like so: ::%eno1
  • Encapsulating the DEVICE name in quotes like: DEVICE="eno1:1"

I'm at a loss and I can't find anything by googling.

submitted by /u/Irythros
[link] [comments]

Viewing all articles
Browse latest Browse all 17903

Trending Articles