View Full Version : ping works but can't get internet. please help
razvan_vlad
2007-01-27, 12:23 AM CST
hello guys. i just installed fedora 6 on my server and i can't get the internet connection.
actually, i am trying to set up the server to work as a web, mail.. etc..
so.. i am trying to use a static ip address.
my internet connection comes from the Netgear router.
if i setup the server to work with dhtp .. it does gets internet.. but i don't want that.
So.. by pinging the router, and even my other computers connected to the router, i do get a positive response.
the thing is i just can't get this thing to work with an internet connection.. and it drives me nuts.
i already added the ip and the localhost in the hosts file
also in the /reslove.conf there are the ip's of my dns,
can someone guide me through this?
thanks
stevea
2007-01-27, 02:07 AM CST
You probably DO want to use dhcp to get your static IP, assuming your netgear will support it. Most routers have a configuration what allows you to enter assign static IPs to any interface on the LAN based on it's MAC address. If not then ....
Connecting to a network, joining a LAN, requires these steps
1/ assign an IP & a mask to the interface. Use system-config-network. Select an Ip within your LAN subnet range but OUTSIDE your router's dhcp assignemnt range.
2/ Setup a route table. Otherwise your computer has no clue what to do with packets that aren't on your LAN. Use dhcp once more and when connected type "route", and save the information. You need to reproduce this in a routing table. If you have a singe gateway you can use the "system-config-network" tool. Otherwise you'll need to create a script to enter al lthe route commands and set it to run on every boot.
3/ You need DNS name resolution. The /etc/resolv.conf is the configuration there. Without DNS when you enter a name (like www.google.com) there is no way to resolve this to an IP address.
Anyway the "best practices" way to deal with this is not configure your server, but instead configure your dhcp server (router).
newbie2006
2007-01-27, 06:43 AM CST
You are missing DNS server address. When you do DHCP, the DNS server addresses are from the DHCP. If your Netgear also double as DHCP server, go to the router setup and find the DNS server address there. Usually you will find two addresses, a primary and a secondary. You will need both.
razvan_vlad
2007-01-27, 09:13 AM CST
hey guys. thanks. now.. let me clarify this..
this is an example of what i have here.. .. in the router's configuration. those are random numbers but at least you guys can refer exactly to them now :
Under the ROUTER STATUS i have this : Internet Port
MAC Address 00:0F:A7:EC:5T:GP
IP Address 24.208.96.15
DHCP DHCPClient
IP Subnet Mask 255.255.248.0
Domain Name Server 24.28.6.137
24.28.6.138
LAN Port
MAC Address 00:0F:A7:EC:5T:GQ
IP Address 192.168.10.10
DHCP ON
IP Subnet Mask 255.255.255.0
Now.. under the LAN IP Setup:
LAN TCP/IP Setup
IP Address . . . 192.168.10.10
IP Subnet Mask . . . 255.255.255.0
RIP Direction None Both In only Out only None
RIP Version Disabled RIP_1 RIP_2B RIP_2M Disabled
Use Router as DHCP Server
Starting IP Address . . . 192.168.10.11
Ending IP Address . . . 192.168.10.99
Address Reservation
# IP Address Device Name Mac Address
1 192.168.10.11 SERVER 00:90:6F:37:8D:23
So.. those are my router's settings.
Now.. when i made the server's settings.. i did something like this.. :
IP: 192.168.10.11
Subnetmask: 255.255.255.0
Getway:192.168.10.10
The DNSs for my server.. i just give it random numbers like.. 123.142.9.1 and 142.653.2.3.
Up under the router status section, in the INTERNET PORT there are those DNS 24.28.6.137 and 24.28.6.138, which i think they are from the cable modem. right?
Now.. under resolv.config in my server i do have something like :
nameserver 123.142.9.1
nameserver 142.653.2.3
so.. please tell me.. is there anything wrong with those?
i understood that.. i have to use the DNS from the router , is that right? (24.28.6.137 and 24.28.6.138) but.. why do i have to use the DNS from the routher though?
Please be specific (copy/paste the numbers u are reffering to) so i can't screw anything.
Thanks alot.
see.. that's what happens when somebody is new in this stuff.
i mean.. i used all my other computers in my network but.. yes.. it is true.. they have assigned the dynamic ip. so.. does this mean that.. they use the router's DNS?
Zigzagcom
2007-01-27, 02:09 PM CST
Try giving your computer a static private IP outside the routers' DHCP range/scope.
Network Interface Card on computer:
IP address: 192.168.10.100
Subnetmask: 255.255.255.0
Gateway: 192.168.10.10
Domain Name Server: 24.28.6.137 24.28.6.138
Use Router as DHCP Server
Starting IP Address . . . 192.168.10.11
Ending IP Address . . . 192.168.10.99
Also, you may want to post the output of:
ifconfig -a
To release a dhcp address as root:
dhcpdcd -k
And yes, satelliteX....if you help your fellow, he/she will be so much the quicker to becoming a safe user.
sailor
2007-01-27, 02:20 PM CST
SatellightX please try to follow our Guidelines...specifically this one:
# Do Not be Abusive
Abuse doesn't get anywhere. It generates bad feeling and is very likely to get you suspended from the forum. We're here to help each other not fight.
Those being abused, just ignore and report the post(upper right button on the post).
razvan_vlad
2007-01-27, 03:57 PM CST
hey guys! thanks for help. i did solve the problem. so.. within my router.. it was setup on dhcp and the dns to be get automaticaly from isp. when i configured the eth0 on the server i gave it 2 random dns. now.. i just set the router to have the dynamic internet config and i just set the DNS to be static... and use their DNS. then i setup the eth0 with the same dns and it works. thanks yall
Zigzagcom
2007-01-27, 06:39 PM CST
Glad you got it up and running...happy surfing, and hope you get to know Fedora well.
razvan_vlad
2007-01-27, 06:41 PM CST
yup. thanks
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.