Link to home
Start Free TrialLog in
Avatar of wsyy
wsyy

asked on

How to configure CentOS 5.5 network

Hi,

I have a CentOS 5.5 server which is connected to a wireless router's Ethernet port. The wireless router has an IP 192.168.1.1, and is connected to an ADSL modem which then is connected to the Internet service provider.

I don't have a static IP assigned, but DHCP. I used tracert command and find that the dynamically assigned IP is xxx.xx.120.21.

All windows laptops and desktops are smoothly connected to the wireless router at the moment, meaning the Internet is working.

The CentOS server is not network pre-configured when shipped here. I want to configure the server to connect to Internet. How can I do it? I was told to use SETUP command, which seems a little bit difficult as I am new to CentOS.

Is there a way around?

Thanks.
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

First things first, to find out your IP address for certain use the command:
ifconfig

The left hand column shows you your interface i.e. eth0, eth1, lo.
The first line of each interface is the encapsulation method (usually Ethernet) and the MAC address.
The second line is your IP, Broadcast and subnet. The rest is not useful except in advanced configuration and troubleshooting.

To configure your DNS settings for the server you need to edit the file /etc/resolve.conf
This takes effect imediately.

To configure your network settings the easiest way is to use the utility:
system-config-network

To enable and disable a network connection use:
ifup eth0

and:
ifdown eth0
Avatar of wsyy
wsyy

ASKER

Thanks Red-King. Could you tell me what exactly DNS/IP/Network Mask to set?
ASKER CERTIFIED SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wsyy

ASKER

great, detailed info!!!