Centos 5.7 GUI Network Card Configuration

I just installed Centos 5.7 with the GUI interface.  How do i setup the networking so I can have internet access?
deklinmAsked:
Who is Participating?
 
jgiordanoConnect With a Mentor Commented:
system-config-network should look like this -

http://fedorasolved.org/Members/MrHappy/system-config-network
0
 
jgiordanoCommented:
you can do it through the gui open a terminal and run

system-config-network


or use the files -
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking#How_to_Activate.2FShut_Down_Your_NIC

vi /etc/sysconfig/network and put in your gateway

cd /etc/sysconfig/network-scripts


In this directory there should be a file ifcfg-eth<N>

vi this file and set up your network config -

 ##########################################
i.e. static
[root@bigboy tmp]# cd /etc/sysconfig/network-scripts
[root@bigboy network-scripts]# cat ifcfg-eth0

#
# File: ifcfg-eth0
#
DEVICE=eth0
IPADDR=192.168.1.100
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
#
# The following settings are optional
#
BROADCAST=192.168.1.255
NETWORK=192.168.1.0

[root@bigboy network-scripts]#

#######################################
i.e. dhcp

[root@bigboy tmp]# cd /etc/sysconfig/network-scripts
[root@bigboy network-scripts]# cat ifcfg-eth0

#
# File: ifcfg-eth0
#
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

[root@bigboy network-scripts]#


once configured execute

service network restart
0
 
leader716Commented:
If neither of these method work you first need to determine if you network card was recognized by the kernel. What type of network card do you have in your system?

To find out you can execute this command

dmesg | grep eth0

if you get results you then know that you card was detected, if you don't then you need to make sure that the card is supported under linux and that you have the proper module installed.

If it is the posts from the other 2 above should work.
0
 
arnoldCommented:
How is your access to the internet? Do you have a router?
The default behavior is for DHCP and as long as your network has a DHCP server, the system should be internet ready. If you do not have DHCP running on the router, You would need to know what network you are using and configure the system's network interface to match.

But as others pointed out, using system-config-network
0
 
hossamshaabanCommented:
# system-config-network &
0
All Courses

From novice to tech pro — start learning today.