Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

Translate IP commands to Netplan
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Translate IP commands to Netplan

I set up an IPv6 tunnel and create a routing prefix with the following command.

ip tunnel add tun0 mode sit remote 10.0.0.2 local 10.0.0.3 ttl 255
ip link set tun0 up
ip addr add 2001:db8:214b:1000::/64 dev tun0
ip route add 2001:db8:214b:1001::/64 dev tun0

I'm going to convert to Netplan configuration, but I don't know how to complete the last command (create route prefix)

network:
  version: 2
  renderer: networkd
  tunnels:
    tun0:
      mode: sit
      remote: 10.0.0.2
      local: 10.0.0.3
      addresses:
        - "2001:db8:214b:1000::2/64"
      routes:
        - to: "2001:db8:214b:1001::/64"
          via: "2001:db8:214b:1000::2"
          from: "::/0"
          on-link: true

via is not set to an interface,hope to get your help, thank you.

Comments

  • yoursunnyyoursunny Member, IPv6 Advocate

    Since 2001:db8:214b:1001::/64 is on the same link, you can change your own address to 2001:db8:214b:1000::/63, which covers both subnets.

    Thanked by 1jerry_me
Sign In or Register to comment.