Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
4.2. Configuring Static Routes Using nmcli
To configure static routes using the nmcli tool, use one of the following:
- the nmcli command line
- the nmcli interactive editor
Example 4.1. Configuring Static Routes Using nmcli
To configure a static route for an existing Ethernet connection using the command line:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
This will direct traffic for the
nmcli connection modify enp1s0 +ipv4.routes "192.168.122.0/24 10.10.10.1"
~]# nmcli connection modify enp1s0 +ipv4.routes "192.168.122.0/24 10.10.10.1"
192.168.122.0/24
subnet to the gateway at 10.10.10.1
Example 4.2. Configuring Static Routes with nmcli Editor
To configure a static route for an Ethernet connection using the interactive editor: