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?
static IP in centos 4.5
Re: static IP in centos 4.5
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
vim /etc/resolv.conf
#add the following:
domain yourdomain.com
search yourdomain.com
nameserver ip.of.dns.server