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:
- Linux How do I find out what network services are running or listing?
- How can I find out if my Ethernet card (NIC) is being recognized or not?
- How to find out what my dns servers address is?
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 7 comments… read them below or add one }
i like this command and please more information on my mail id “”
Thanks you!
I just install red hat linux in vmware player and it shows in GUI mode so how i can change in command line interface.
thanks
open your terminel.
HI Dears,
I am a new user in linux and I install redhat 4 into my machine. but I can not configure the network card. when I tried what you describ here, I found eth0 only and when I used ifconfig comand, there is a message the command is not exist. But I can see the help of ifconfig.
would you please help me to setup the network card step by step.
Thank you
/sbin/ifconfig
Dear Sir,
i like this command and please more information on my mail id &I am a new user in linux and I install redhat 4 into my machine. but I can not configure the network card. when I tried what you describ here, I found eth0 only and when I used ifconfig comand, there is a message the command is not exist. But I can see the help of ifconfig.& thangs
would you please help me to setup the network card step by step.
Thanks & Regards
Dinesh Rao