Quick Answer: How Do I Permanently Add Ipv6 Route in Linux?
Contents

How do I permanently add an IP route in Linux?

Adding permanent static routes

On RHEL or CentOS, you need to modify the interface file in ‘/etc/sysconfig/network-scripts’. For example, here, we have to add routes on network interface ens192. Hence, the file we need to modify will be ‘/etc/sysconfig/network-scripts/route-ens192’.

How do you add IPv6 address in Linux permanently?

You have logged on to the server as an administrator.

  1. To add the main address, you must add the following entries to /etc/network/interfaces: allow-hotplug ens192. # IPV6 Setup. …
  2. To add the additional IPv6 address, you need to add the following additional entries to /etc/network/interfaces: iface ens192 inet6 static.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest