Hurricane Electric's IPv6 Tunnel Broker Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Add default route without gateway nmcli  (Read 362 times)

sparksis

  • Newbie
  • *
  • Posts: 1
    • View Profile
Add default route without gateway nmcli
« on: November 03, 2016, 06:09:55 PM »

I'm trying to configure NetworkManager to perform the following action for an interface

Code: [Select]
ip route add ::/0 dev he-ipv6
he-ipv6 is a point-to-point ipv4 sit mode tunnel and running the above command directly works. Unfortunately when the device is rebooted the default gateway is not reconfigured and therefore all IPv6 traffic outside the network is dropped.

I've tried configuring a manual route via:

Code: [Select]
nmcli c modify he-ipv6 ipv6.routes '::/0'
but of course nmcli will not let you configure static routes for the default gateway.

Code: [Select]
Error: failed to modify ipv6.routes: invalid prefix '0'; <1-128> allowed.

StackExchange
Logged

greysector

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Add default route without gateway nmcli
« Reply #1 on: March 14, 2017, 04:21:27 AM »

Fedora's IPv6 HOWTO contains a section on he.net and NetworkManager - https://fedoraproject.org/wiki/IPv6_tunnel_via_Hurricane_Electric:
Code: [Select]
nmcli connection add type ip-tunnel con-name sit1 ifname sit1 mode sit \
  remote SERVER_IPV4_ADDRESS -- ipv4.method disabled ipv6.method manual \
  ipv6.address CLIENT_IPV6_ADDRESS ipv6.gateway SERVER_IPV6_ADDRESS \
  ip-tunnel.ttl 64

HTH
Logged