Need help setting up internet connection over Windows Network.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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.
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.
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?
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.