0

I have herd 3 different ways to store gateway information on redhat system

  1. /etc/sysconfig/network
  2. /etc/sysconfig/static-routes
  3. /etc/sysconfig/network-scripts/route- files

I am not aware of differences between above ways. Help me to know differences and correct way

1 Answer 1

1

According to the RHEL documentation the default gateway configuration is done through the /etc/sysconfig/network file.

Configuring the Default Gateway

The default gateway is determined by the network scripts which parse the /etc/sysconfig/network file first and then the network interface ifcfg files for interfaces that are “up”.

/etc/sysconfig/network:

GATEWAY=<value>, where <value> is the IP address of the network's gateway.

1
  • is /etc/sysconfig/network is deprecated ? Commented Feb 2, 2021 at 10:22

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.