1. at the command line type system-config-network
 2. select Devices > New
 3. select Ethernet connection
 4. select the Ethernet card you wish to configure from the list
 5. Either select DHCP or Statically set IP addresses.For the later you will need to specify:
        o IP address you want to use
        o netmask required for the subnet
        o the Default Gateway
 6. once you completed the above, click forward
 7. The new card should now appear in the list of devices

You should now have a network connection. You can check this with the command ifconfig -a . This should display the NIC with the IP address you assigned. You can also check connectivity with the ping command (man ping for details)

To add a card manually, you will need to set the following variables by editing the following files, setting them to appropriate values:

  • /etc/sysconfig/network - HOSTNAME GATEWAY
  • /etc/sysconfig/network-scripts/ifcfg-ethx - IPADDR NETMASK ONBOOT (set ONBOOT to yes)
  • /etc/sysconfig/static-routes - if extra static routes are required.

The entries in file static-routes should be in the following format:

    ethx net ip- address netmask 255.netmask gw gateway-ipaddr

At this point you can perform a reboot to restart the OS with the new network settings. Alternatively, if you don't want to perform a restart, you can dynamically update the network settings in addition to editing the files:

 1. To update the card, ifconfig ethx ipaddress netmask netmask up
 2. To add the default gateway, route add default gw gateway-ipaddr
 3. To add additional routes, route add -net network-ipaddr ethx

NOTE, this procedure was recently updated so that the GUI configuration specifies system-config-network (instead of linuxconf). If you have an old version of RedHat, see the procedure in the archive section.

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password