Master Linux Like a Pro: Dive into the 2026 RHEL Red Hat Challenge!

1 / 400

Which file defines static routes in RHEL?

/etc/sysconfig/network-scripts/route-[interface_name]

The file that defines static routes in RHEL is indeed located at /etc/sysconfig/network-scripts/route-[interface_name]. In Red Hat-based distributions (such as RHEL), network configuration files for various interfaces are organized under the /etc/sysconfig/network-scripts/ directory. When you want to set static routes for a specific network interface, you create a file named route-[interface_name], where [interface_name] should be replaced with the actual name of the network interface (like eth0 or ens33).

Inside this file, you can specify your static routes in a format that is read during the network service startup. This allows the system to configure the specified routes automatically when the interface is brought up, ensuring that your desired routing configuration is in place.

Files like /etc/network/interfaces or /etc/routes.d/config are associated with other Linux distributions or specific networking setups but do not apply directly to RHEL configurations for static routes. The file /etc/sysconfig/static-routes also does not conform to the RHEL standard, as it is not recognized for defining interface-specific static routes in the manner that RHEL utilizes. Therefore, option A stands as the most accurate choice for defining static routes specifically in RHEL.

Get further explanation with Examzify DeepDiveBeta

/etc/network/interfaces

/etc/sysconfig/static-routes

/etc/routes.d/config

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy