LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-23-2007, 07:09 PM   #1
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Rep: Reputation: 15
Need help setting up internet connection over Windows Network.


Last experience with Mandriva did this for me, but Debian isn't, so I need some help.

Here is the scenerio:

DSL Modem -> Wireless Router -> Windows Machine (Vista) -> Network Hub -> Linux Machine (Debian)

(the Linux box has no Wireless connection, so it has to share the internet connection with the Windows box)

The windows machine has the Wireless and Cable connections bridged. The Network settings in Debian is showing the proper Network connection (eth2, built in networking on the motherboard.)

General Tab has:

Hostname: debain
Domain name: (blank)

DNS Tab has the proper DNS Servers as showing by ipconfig on the Windows Box.

Hosts tab has a lot of stuff:

Code:
ff00::0 ip6-mcastprefix
127.0.0.1 localhost debian
fe00::0 ip6-localnet
ff02::2 ip6-allrouters
ff02::1 ip6-allnodes
::1 ip6-localhost ip6-loopback
127.0.1.1 debian.mshome debian
ff02::3 ip6-allhosts
The properties for eth2:

Code:
Enable this connection is checked

Configuration: DHCP
IP/Subnet/Gateway are all blank
everything I try to load keeps timinig out on me. So what's wrong?

Last edited by DAKPluto; 09-23-2007 at 09:08 PM.
 
Old 09-23-2007, 11:12 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Try a few command line tools. First off, try:
Code:
/sbin/ifconfig eth2
That should give you the address info for your card. It should look something like this (I used eth1 for my connection):

Code:
jim@jimsworktop:~$ /sbin/ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:12:F0:E8:BD:4D
          inet addr:192.168.68.106  Bcast:192.168.68.255  Mask:255.255.255.0
          inet6 addr: fe80::212:f0ff:fee8:bd4d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12669 errors:0 dropped:522 overruns:0 frame:0
          TX packets:5126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:273724629 (261.0 MiB)  TX bytes:108331558 (103.3 MiB)
          Interrupt:11 Base address:0x4000 Memory:c0214000-c0214fff
Also, I think your network connection map is wrong, or if it is correct, that would be your problem. The wireless router should be plugged into the network hub, and then all the computers should be plugged into the hub. That allows the DHCP from the router to be passed to every wired computer. If you did for some reason have the wireless router plugged only into the Vista machine, then plugged that computer into the hub, the DHCP requests from the linux computer would never reach the router, so it wouldn't get an address.

If you have an address on the linux box, you should be able to ping the wireless router. It probably is something like 192.168.1.1, or 192.168.0.1. You also should be able to ping the Vista machine, although the firewall settings on that machine may prevent that from working.

The hosts file is of no importance. Reaching the DNS servers is very important though. If you have an address found by the /ebin/ifconfig eth2 command, then try this one:

Code:
dig google.com
That should come back with the IP address of the google webservers.

If you don't have an address, issuing this command as root and check for problems:
Code:
/etc/init.d/networking restart
Peace,
JimBass
 
Old 09-24-2007, 04:06 PM   #3
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
the network map is correct.

The DSL Modem goes into the Wireless router. The Wireless router than has 3 computers connected on that wireless network. One of those is this Vista box. Because the Linux box does not have a Wireless card, I setup the network hub between the vista box and the linux box. (they are on the same desk, and there is no way to route a cable to the Wireless Router)

The basic idea is for the linux box just to piggy back the internet connection on the Windows Box. This worked with Mandriva out of the box, but I really wanted to try debain.
 
Old 09-24-2007, 05:02 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Ok, then go through the requests I made for code. We need to see if your Debian box is requesting an address from from the wireless router, and if it is getting an address from the router. For that to happen, your Vista box would have to be forwarding requests from one NIC to the other, which is not default behavior, you would have had to configure it as a router to make that happen. That isn't impossible, just not very likely.

Peace,
JimBass
 
Old 09-24-2007, 06:02 PM   #5
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
In other words my life would be 500x simplier just saying screw the whole Vista/network thing and breaking down and putting the linux on wireless also?
 
Old 09-24-2007, 06:09 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you have a wireless card that behaves well under linux, yes. Many people have problems with wireless, as most of it is run on proprietary windows drivers.

We're talking theory though. What you should do is see if you are getting an address on the linux box. You said you did under Mandriva? This isn't a distro issue at all. One distro can't tunnel a DHCP request through a windows box any easier than any other can. That is controlled by the windows box. If the Mandriva request got through, then the Debian one should also. So please give the info I asked for in my original post.

Also, using a windows machine as a router and buying a wireless only router with no slots for ethernet cables seems like a very bad idea.

Peace,
JimBass
 
Old 09-24-2007, 06:24 PM   #7
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
Code:
eth2     Link encap:Ethernet  HWaddr F8:59:f0:00E7:39
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::fa59:f0ff:fe00:e739/64 Scope: Link
UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric: 1
RX packets:5014 errors:0 dropped:0 overruns:0 frame:0
TX packets:3483 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:653689 (638.3 KiB)  TX bytes:486910 (475.4 KiB)
Interrupt:177 Base address:0xc0000
One bit of confusion, the windows box is only acting as a router to the Linux box. All the other computers (including this window box) are being routed thru the wireless router. The network hub is just the old hub I had before we went wireless.

Last edited by DAKPluto; 09-24-2007 at 06:29 PM.
 
Old 09-24-2007, 06:29 PM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
OK, that look like you have valid address, which is 192.168.1.103. Can you ping the gateway, which is probably 192.168.1.1 or 192.168.1.254? If you can ping that, then try the dig command from my first post too, so we can see if you have name resolution.

Peace,
JimBass
 
Old 09-24-2007, 06:34 PM   #9
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JimBass View Post
OK, that look like you have valid address, which is 192.168.1.103. Can you ping the gateway, which is probably 192.168.1.1 or 192.168.1.254? If you can ping that, then try the dig command from my first post too, so we can see if you have name resolution.

Peace,
JimBass
The 192.168.1.1 does nothing at all, just stay locked.

The 192.168.1.103 keeps giving me

Code:
 From 192.168.1.103 icmp_seq=xx(goes up) Destination Host Unreachable

dig does nothing either, just gives me connection timed out; no servers could be reached.
 
Old 09-24-2007, 07:32 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
OK, then something is allowing your DHCP request to go in and out, but not the pings. Try disabling the firewall on the windows computer, and check what IP address(es) it has. With the firewall off, try and ping the wired address on the windows computer. It that works, then try the gateway address again.

Peace,
JimBass
 
Old 09-24-2007, 07:54 PM   #11
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Dunno 'bout the topography of your network (i.e. the physical location of each component) but you'd really make your life a whole lot easier if you'd invest a few bucks for a (longer) wire from the hub to the router, bypassing that Win-OS machine. Provided of course that the router has an ethernet plug available to start with

If that isn't an option, Jim has the way to go. Btw, there's another way of checking if the Debian box has recieved an address and that's looking it up on the router via it's webinterface. That should also reveal the gateway-IP of the router itself.
 
  


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
Setting up wireless network/internet connection in SuSE 10 ImpelGD Linux - Wireless Networking 7 01-23-2006 02:26 PM
Internet connection via windows xp network (rj45 cable) on Linux itz2000 Linux - Networking 15 12-19-2005 09:00 AM
Setting up Suse9.1 to use ADSL connection, on my Windows network. andre_bergh Linux - Networking 4 03-23-2005 06:36 AM
Problems setting up my internet connection, DSL with two network cards ALInux Linux - Networking 8 08-23-2004 02:48 PM
How to connect to a network using Windows and use a internet(LAN) connection JulianS Slackware 5 03-06-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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