fir3net
PPS-Firenetbanner-780.5x190-30-03-17

UNIX - Add an interface Redhat / Fedora

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.

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001