LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2005, 10:26 PM   #1
myouch
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
How to connect Internet via a router?


It's Fedora core 2.

Everything used to be fine. My ISP doesn't support Linux, and I set up my router (linksys) under windows with Linksys CD. After I connected my linux machine to the router, it worked very well without any configuration.

My ISP sent me a new wirelss modem recently and I installed it, connected to router again. I could connect to Internet with my desktop Fedora, but it was not very stable. It took long time to resove the name sometimes. I installed the same Fedora in my laptop, and it could never connect to Internet, I couldn't activate ethernet connection either (eth0).

I decided to change back to my old modem. This time, Fedora in my desktop can't connect to Internet any more! Fedora in my laptop can't gain IP address either (can't activate the LAN connection)! My desktop always says it can't resolve the name. I set up as DHCP already.

Please help me!!! I need to do my project under linux urgently! Millions of thanks!

Some set up parameters;
DNS:
hostname: localhost.localdomain
primary DNS: 192.168.2.1
DNS search paht: no-domain-set.bellcanada

The device (eth0) is active in my desktop but it's inactive in my laptop. Both m desktop and laptop cannot connect to Internet. But the same configuration worked before.(((

Last edited by myouch; 10-06-2005 at 10:28 PM.
 
Old 10-07-2005, 01:11 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi

If you open an x-terminal on the two systems, and type in

netstat -r

do you get something like this:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.255.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 169.254.255.100 0.0.0.0 UG 0 0 0 eth0

?

If you don't, that can be part of the problem. This line comes from my system - I also use a router to connect to the internet.

Most likely, you might find that the line with the "UG" in it is missing - this means that your kernel does not have a current "gateway" address to use when it must get packets off the internet for you, which might be why you cannot connect.

To add a gateway entry into the kernel routing tables, enter the following line in an x-terminal (I think you'll need to be root):

/sbin/route add default gw 169.254.255.100 netmask 0.0.0.0 eth0

Where you of course replace "169.254.255.100" with your router's address.

Don't know about DHCP, but you might try switching it off (erm... kill the DHCP process?) and configuring your /etc/resolv.conf file to contain the address of your ISP's DNS server.

Then, try to connect again to the net.

Hope this helped,
 
Old 10-07-2005, 01:30 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Can you post the output fo dhclient eth0? You'll have to be root and post also what happens afterwards (ie can you access internet or not).
 
Old 10-07-2005, 07:36 PM   #4
myouch
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks rylan76 and adz!

I did what you suggested. please see the following link.

I didn't know how to post my machine information when writing this last night. Pls go to see here for more information: http://www.linuxquestions.org/questi...hreadid=370786
 
Old 10-07-2005, 09:27 PM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well then can you post it now?
 
Old 10-07-2005, 09:35 PM   #6
myouch
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
to adz:

Please click the link I gave above and see more information. Yes, I tried and got:

Code:
sit0: unkonw hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:0f:b0:72:c7:db
Sending on LPF/eth0/00:0f:b0:72:c7:db
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPDISCOVER received
No working leases in persistent database - sleeping
I still can't connect to Internet.
 
Old 10-07-2005, 10:47 PM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
.
 
Old 10-07-2005, 10:59 PM   #8
myouch
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
For all the nice persons reading this post:

Now the network situation is changed. I did nothing and the desktop can connect Internet suddenly. The laptop¡¯s eth0 can¡¯t be activated. It means that the router is good, the problem is in the laptop itself. You only need to concentrate on the information in the following link: http://www.linuxquestions.org/questi...hreadid=370490

Sorry I am new here and I don¡¯t know if I violate the rules here to say this. I just want to save your time. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't connect to Internet with adsl router buzzgrowl Linux - Newbie 8 10-06-2005 09:49 AM
Connect to Internet via a router Hazzie Red Hat 4 10-27-2004 02:24 AM
Connect to the internet with a belkin router.....What do i have to do?????? PaulBak Linux - Networking 26 09-01-2004 03:57 PM
cannot connect to internet after switching dsl router Skunk_Face Linux - Networking 4 03-03-2004 04:08 AM
Can't connect to internet. (router) NomDeGuerre Slackware 9 02-27-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration