0% found this document useful (0 votes)
0 views2 pages

Linux Cheatsheet ConfigFiles

The document provides a cheat sheet for configuring network settings in Red Hat Enterprise Linux 9, specifically within the /etc/sysconfig/network-scripts/ifcfg-eth# files. It includes examples for both static and dynamic IP configurations, detailing various arguments such as DEVICE, BOOTPROTO, and GATEWAY. Each argument is explained with its corresponding value to assist users in setting up network interfaces.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

Linux Cheatsheet ConfigFiles

The document provides a cheat sheet for configuring network settings in Red Hat Enterprise Linux 9, specifically within the /etc/sysconfig/network-scripts/ifcfg-eth# files. It includes examples for both static and dynamic IP configurations, detailing various arguments such as DEVICE, BOOTPROTO, and GATEWAY. Each argument is explained with its corresponding value to assist users in setting up network interfaces.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Complete Guide to Red Hat Enterprise Linux 9

with Grant McWilliams

Config Files Cheat Sheet


/etc/sysconfig/network-scripts/ifcfg-eth#

The /etc/sysconfig/network-scripts/ifcfg-eth# contains network settings for each network interface.

Static ip example:

DEVICE=eth0
BOOTPROTO=none
IPV6INIT=yes
MTU=1500
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
HWADDR=00:19:87:65:43:21
IPADDR=192.168.0.101
NETMASK=255.255.255.0
GATEWAY=192.168.0.10
DNS1=192.168.0.100
USERCTL=no

Dynamic IP example:

DEVICE=eth0
BOOTPROTO=dynamic

Argument Value

DEVICE= Network DeviceName (eth0, eth1)

BOOTPROTO= Static (none) or dynamic

IPV6INIT= Initialize IPv6

MTU= Maximum transmission unit

NM_CONTROLLED= Control with NetworkManager? (yes, no)

ONBOOT= Start interface on boot?

TYPE= Type of network card (Ethernet)

HWADDR= Hardware address (MAC)

Complete Guide to Red Hat Enterprise Linux 9 with Grant McWilliams 1 of 2


IPADDR= IP address

NETMASK= Network subnet mask

GATEWAY= Default gateway for the interface

DNS1= Nameserver for the interface

USERCTL= Type of network card (Ethernet)

Complete Guide to Red Hat Enterprise Linux 9 with Grant McWilliams 2 of 2

You might also like