(12.4-en) Default Gateway Configuration in IGEL OS 12
This article shows how to configure the default gateway in IGEL OS.
Menu path: Network > Default Gateway
Default gateway
☑ Routing is enabled.
☐ Routing is disabled. (Default)
Default gateway
Gateway that routes the packets to the target network
Interface
The network interface via which the route is to run
Predictable Network Interface Names (PNINs)
The names of Ethernet and WLAN interfaces are predictable network interface names (PNINs), see Predictable Network Interface Names. This ensures the stability of interface names on reboot and generally improves the reliability of associating configurations with interfaces.
As "
eth0
", "eth1
", and "wlan0
" have been replaced by PNINs, configurations or custom scripts that include the old names of Ethernet and WLAN interfaces, e.g.eth0
,eth2
,wlan0
, have to be adjusted.
The following already existing configurations do NOT require manual adjustment since old nameseth0
,eth1
, etc. will internally be replaced by the correct PNINs automatically:
To view the PNINs and the order of the configured interfaces, you can use the following commands. The default interface is always listed first, the second interface is listed second, etc.
Ethernet (LAN):cat /config/net/en-interfaces
WLAN:cat /config/net/wl-interfaces
(Note: Only the first wireless interface (formerwlan0
) is supported. All other wireless interfaces will be ignored.)If you need to configure more than two Ethernet interfaces, go to System > Registry > network.interfaces.ethernet.device% and add an instance by clicking Add Instance.
To explicitly assign a configuration instance to a certain interface, enter the corresponding PNIN for the registry key network.interfaces.ethernet.device%.ifname.