static IP in centos 4.5

Issues related to configuring your network
Post Reply
gramberto
Posts: 4
Joined: 2006/02/12 13:41:55

static IP in centos 4.5

Post by gramberto » 2008/06/29 02:47:13

I am on a Mac and using VMWare Fusion with Centos 4.5 running as the guest OS. I have a dlink 624 router. I am using an ethernet connection. I am using bridged connection in vmware. I can get internet access if I use dhcp.

My router has IP address 192.168.0.2 to 192.168.0.100 set as available.

in the GUI I use system settings -> network gui.

I edit eth0

change to static IP. I pick an IP that I am not using 192.168.0.7
subnet mask 255.255.255.0
default gateway 192.168.0.1 (address of my router).

I deactivate and reactivate my connection.

no internet access.

What am I doing wrong?

kentyler
Posts: 161
Joined: 2007/06/20 13:31:05
Location: Northeast Ohio
Contact:

Re: static IP in centos 4.5

Post by kentyler » 2008/08/12 19:58:06

You need to edit the /etc/resolv.conf file to add the dns servers.

vim /etc/resolv.conf

#add the following:
domain yourdomain.com
search yourdomain.com
nameserver ip.of.dns.server

Post Reply

Return to “CentOS 4 - Networking Support”