How to Set Up Permanent Static Routes in Ubuntu Server 24 (Netplan Method)

Опубликовано: 14 Март 2025
на канале: RealClearComputing
2,211
24

Learn how to set up permanent static routes in Ubuntu Server 24 using the Netplan configuration file. This tutorial covers the basics of static routing, how to add routes to the Netplan configuration, and how to verify the changes.

Link to the configuration examples used in this video:
https://www.configserverfirewall.com/...

Link to video on setting static IP addresses on Ubuntu using Netplan:
   • How to Set Static IP Addresses in Ubu...  

What You'll Learn:
How to locate and edit the Netplan configuration file.
The syntax for adding static routes for both IPv4 and IPv6.
How to specify routes for different network interfaces.
Steps to apply and verify the new routes.

#linux #ubuntu #ubuntu24 #staticrouting #networkconfiguration #linuxtutorial

Timestamp
00:00 - Intro
00:23 - View the current routing table
00:46 - Locate and edit Netplan config file
01:00 - Netplan route syntax
01:25 - Add static route
02:00 - Adding static routes for multiple network interfaces
02:39 - IPv6 syntax for adding static routes
02:56 - Applying the changes
03:05 - Verifying the routes
03:17 - Outro