Redhat network interface configuration
Redhat Linux network interface names start with ethX. First Ethernet network interface name is eth0, second is eth1 and so on.
Login as a root user, use su - command:
$ su -
To list or display more information about network interface type command:
# ifconfig | less
To assign an IP address type following command:
# ifconfig eth0 192.168.1.1 up
To take down network interface type following command:
# ifconfig eth0 down
To configure network card using GUI tool type command:
# redhat-config-network
You can also type command setup and select network configuration from menu:
# setup
If you wish to configure network interface manually then you need to edit files stored in /etc/sysconfig/network-scripts/ directory. For example here is my sample /etc/sysconfig/network-scripts/ifcfg-eth0 file for eth0 network interface:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:0F:EA:91:04:07
IPADDR=192.168.1.111
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
See also:
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Setting Up a CentOS / Red Hat Linux DHCP Client
- Fedora Linux reconfigure X server
- OpenBSD Change / Set IP Address For Network Interface
- OpenBSD Restart Networking Service
- How To AIX UNIX Configure TCP/IP Networking ( NIC )
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
~ Last updated on: March 29, 2006


Recent Comments
Today ~ 7 Comments
Yesterday ~ 9 Comments
Yesterday ~ 3 Comments
Yesterday ~ 1 Comment
05/10/2008 06:08 pm (2 days ago) ~ 7 Comments