To add a interface you need to do the following,
1. Confirm what the mac address is by running ifconfig -a
2. Then edit the relevant script , which can be found at /etc/sysconfig/network-scripts/ifcfg-eth0. The script can be ifcfg-eth1, ifcfg-eth2 etc etc.
3. And it should look something like this (for a static IP),
IPADDR=10.10.10.111
DEVICE=eth0
HWADDR=00:02:Z3:F8:LE:4D
NETMASK=255.255.255.0
GATEWAY=10.10.10.100
ONBOOT=yes
4. Reboot your system.
Latest posts by Rick Donato (see all)
- NETCONF & YANG: Automate Network Configs via Python - April 2, 2026
- Palo Alto – How to Configure Your Next-Generation Firewall - April 2, 2026
- How to Harden Linux SSH: Keys, Fail2ban & Ciphers - March 1, 2026
Want to become a UNIX expert ?
Here is our hand-picked selection of the best courses you can find online:
UNIX Administration Fundamentals
Vim Masterclass
and our recommended certification practice exams:
Delta Practice Tests