LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-12-2010, 07:41 AM   #16
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197

Quote:
Originally Posted by johnsfine View Post
You should also post the output of the following command issued on the Windows computer (to see what address, mask and gateway Windows got from the router by DHCP)
ipconfig
The importance of getting that info is growing with each strange detail you post from the Linux system.

We don't know which routing and IP info on the Linux system is wrong vs. merely strange. By comparing to the corresponding info on the Windows system, you can get a better idea what is wrong.

You may need admin privileges to run ipconfig in Windows. I'm used to XP, where you just run it. I found Vista instructions
Code:
1. Click Start
2. Click All Programs expand the Accessories menu
3. In the Accessories menu, Right Click Command Prompt and choose Run as administrator
4. Type ipconfig hit enter
I'm not sure of Win7 instructions for that.

Last edited by johnsfine; 08-12-2010 at 07:49 AM.
 
Old 08-12-2010, 07:52 AM   #17
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
My wlan is off. I also unchecked 'enable wireless' in gnm. Also, all surrounding wlans are WEP, and I can't even hack my own dsl router, let alone a neighbours! Rule out wireless!

I will try the line in BOOTPROTO=dhcp, but I'm already sure my machine uses it: surely someone would have told me if I have a fixed IP?? And I would have to enter it somewhere on this machine.
 
Old 08-12-2010, 08:04 AM   #18
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
ipconfig from Win 7

Here the gen!

It's a bit long so I added it as attachment: The only thing I see, as an amateur, is he has gateway 192.162.1.1, whereas I have something different. Does that explain why I can't open 192.162.1.1? As you said, I am out of the inner network, and my request addresses the gateway router??
Attached Files
File Type: txt my ipconfig.txt (2.0 KB, 9 views)
 
Old 08-12-2010, 08:07 AM   #19
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Am I looking at buying a router to put in front of the router?? Or just for home use?

Is Default route the same as gateway??

Last edited by Pedroski; 08-12-2010 at 08:29 AM.
 
Old 08-12-2010, 08:10 AM   #20
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
The part I was looking for in your Windows ipconfig output is
Code:
   IPv4 Address. . . . . . . . . . . : 192.168.1.3
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
That is perfectly typical for the results of a DHCP connection of a Windows or Linux computer to a typical home router.

So what we're trying to figure out is what setting in the Linux laptop stops it from getting similar information from DHCP on each reboot.

Quote:
Originally Posted by Pedroski View Post
Am I looking at buying a router to put in front of the router?? Or just for home use?
Why do you think you need another router?

I'm pretty sure you just need to change some setting in the Linux network configuration that is currently either overriding or disabling DHCP. After finding and fixing whatever that is, I think you'll need to reboot the laptop to get the new settings to take effect.

Last edited by johnsfine; 08-12-2010 at 08:15 AM.
 
Old 08-12-2010, 08:59 AM   #21
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Just rebooted with the changed ifcfg-eth0 file BOOTPROTO=dhcp

No change in the status quo!
 
Old 08-12-2010, 11:08 PM   #22
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Interesting development: this morning I made a new wired connection: Homewired, manual IP

I gave it 192.168.1.10, 255.255.255.0 Gateway 192.168.1.1 DNS 218.2.135.1

Now, using that, I can connect to my son's computer, and the router. Sadly, the router page is only in Chinese, and I am still learning, so I won't do anything there yet. From the Win 7 computer I still can't see my share.

Also sadly, I can't reach the internet from Homewired. But still, this is progress!!

Any tips??
 
Old 08-13-2010, 05:15 AM   #23
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Try using 192.168.1.1 for DNS in addition to using it for Gateway.
 
Old 08-13-2010, 05:38 AM   #24
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Nope, no joy!!
 
  


Reply



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
Accessing a Router from linux comp shahid khan Linux - Networking 7 06-24-2009 03:22 AM
linux as router/gateway/firewall to dsl-router sjoerdvvu Linux - Networking 2 02-24-2006 10:56 PM
Linux Router /w 2 DSL Connections adamantium Linux - Networking 1 01-14-2004 01:20 PM
DSL Linux Router cheezey Linux - Networking 3 10-23-2003 07:17 AM
DSL/ Linksys DSL Router/ Linux cant see the network... Robert0380 Linux - Networking 9 04-03-2002 04:09 AM

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

All times are GMT -5. The time now is 10:36 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