openSUSE Network Setup

Add the default gateway on your Suse Linux System

Here we use the route add default gw command. Doing this at the command line dynamically sets the kernels routing table so none local packets are routed to the defined gateway.

This won’t survive any reboots. See below on how to make it permanent. But here, we add the default gateway from the command line.


# route add default gw 10.10.21.1  eth0

Make the default gateway permanent in Suse Linux

This configuration won’t survive a reboot. To make a default route permanent in Suse Linux, you need to add an entry in the /etc/sysconfig/network/routes file as follows:


# echo “default 10.10.21.1 – -” > /etc/sysconfig/network/routes

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.