Sharing my internet with my router
I know this isnt a programming question but who better to ask than people that write software for networks?!
I don't like being behind a router so I have my DSL modem hooked to my on-board eth0 and my router (WAN hookup) hooked to a PCI eth1, I ran the windows network wizard and all looks good on my PC (router obtained an IP), but when I connect to the router on my lappy and log into the router it infact hasnt obtained an IP thus it cant give my lappy the internet...
What am I over looking?
Re: Sharing my internet with my router
Code:
http://www.gyre.co.uk/images/microsoft_ics_2.png
I want to do something like the above image, but instead of a switch, a router. Why a router? Because its also a wireless access point and my lappy and second computer will be connecting to it via wireless.
Re: Sharing my internet with my router
Did you run the Network setup wizard on Both PC's?
As far as I know it wont just work, in the old days you needed extra software for that, now with XP you need to at least run the Set Up wizard and create the proper connections ... basically you are sharing your PC with other computers ..
Re: Sharing my internet with my router
I don't think you understand my situation.
The router isn't connecting to my computer properly.
Re: Sharing my internet with my router
don't hook the wan port to eth1, rather hook one of the switch ports to eth1
WAN will attempt to connect to your ISP
Re: Sharing my internet with my router
Quote:
Originally Posted by frozen
Code:
http://www.gyre.co.uk/images/microsoft_ics_2.png
I want to do something like the above image, but instead of a switch, a router.
In this case, Computer1 is the router. That's where you'd put your router. You wouldn't need a switch because your router has a switch built in. (One socket of the switch goes to the wireless access point in the router, the others are the LAN jacks.)
If you want to use your computer as the router, connect a LAN jack of the router to your computer, turn the DHCP server in the router off (turning your router into a switch) and do network address translation in your computer (it's called ICS in Windows, but it sounds as if you're running *nix, so you'd have to find out how to do that in *nix.) That'll allow your wireless connection to work and to obtain an address (from the DHCP server in the computer).
Quote:
I don't like being behind a router
You have to be if you want to share one IP address among more than one computer. It's the router that does the sharing, whether the function is done by a box that says "Router" on the front or by a computer. But the easiest solution to your problem is to learn how routers work and forward the ports you need to the computers that need them. I sit behind a router, yet I can access anything I like - and have a hardware firewall as a bonus. (At very worst, put the computer in the router's DMZ.)
Re: Sharing my internet with my router
I know Computer #1 would be the router (it's running Windows XP Pro by the way), but as far as my router is concerned it should't matter that its getting a private IP from my computer rather than a public IP from my modem. I tried hooking the LAN ports up rather than WAN, no luck... lappy still connects to router via wireless, just no internet.
Re: Sharing my internet with my router
is the laptop able to ping your pc? and is the pc able to ping your laptop?
Re: Sharing my internet with my router
My lappy can ping the router, but my computer can't... the router fails to obtain an IP from my computer.
Re: Sharing my internet with my router
What segments are where? IOW, what are the first 3 octets (192.168.0, 192.168.1, etc) of the laptop, the router (look at the address it thinks it's getting from the WAN), your computer and anything else connected to your modem.
You may be doing multiple NATs, which most SOHO routers, modems and ICS can't do. They'll make addresses, but they lose packets.
I still don't see why you won't do it the easiest way - modem to router to computers. Unless the modem is doing NAT, that works off the shelf.
1 Attachment(s)
Re: Sharing my internet with my router
Code:
2Wire
Download Speed: 2779 kbps (347.4 KB/sec transfer rate)
Upload Speed: 472 kbps (59 KB/sec transfer rate)
DLink
Download Speed: 2776 kbps (347 KB/sec transfer rate)
Upload Speed: 692 kbps (86.5 KB/sec transfer rate)
2Wire
Download Speed: 2732 kbps (341.5 KB/sec transfer rate)
Upload Speed: 475 kbps (59.4 KB/sec transfer rate)
Dlink
Download Speed: 2783 kbps (347.9 KB/sec transfer rate)
Upload Speed: 691 kbps (86.4 KB/sec transfer rate)
2Wire
Download Speed: 2774 kbps (346.8 KB/sec transfer rate)
Upload Speed: 472 kbps (59 KB/sec transfer rate)
DLink
Download Speed: 2782 kbps (347.8 KB/sec transfer rate)
Upload Speed: 690 kbps (86.3 KB/sec transfer rate)
2Wire
Download Speed: 2778 kbps (347.3 KB/sec transfer rate)
Upload Speed: 474 kbps (59.3 KB/sec transfer rate)
DLink
Download Speed: 2769 kbps (346.1 KB/sec transfer rate)
Upload Speed: 687 kbps (85.9 KB/sec transfer rate)
2Wire
Download Speed: 2780 kbps (347.5 KB/sec transfer rate)
Upload Speed: 474 kbps (59.3 KB/sec transfer rate)
DLink
Download Speed: 2781 kbps (347.6 KB/sec transfer rate)
Upload Speed: 687 kbps (85.9 KB/sec transfer rate)
2Wire
Download Speed: 2780 kbps (347.5 KB/sec transfer rate)
Upload Speed: 474 kbps (59.3 KB/sec transfer rate)
DLink
Download Speed: 2780 kbps (347.5 KB/sec transfer rate)
Upload Speed: 685 kbps (85.6 KB/sec transfer rate)
2Wire
Download Speed: 2778 kbps (347.3 KB/sec transfer rate)
Upload Speed: 473 kbps (59.1 KB/sec transfer rate)
DLink
Download Speed: 2778 kbps (347.3 KB/sec transfer rate)
Upload Speed: 685 kbps (85.6 KB/sec transfer rate)
2Wire
Download Speed: 2763 kbps (345.4 KB/sec transfer rate)
Upload Speed: 471 kbps (58.9 KB/sec transfer rate)
DLink
Download Speed: 2781 kbps (347.6 KB/sec transfer rate)
Upload Speed: 686 kbps (85.8 KB/sec transfer rate)
By "2Wire" I mean 2Wire Gateway 2700HG-E and by "DLink" I mean DLink DSL-300G.
My 2Wire (I've been calling it my router in previous posts) slows down my upload.
Re: Sharing my internet with my router
I believe the DSL300G is a router also, so you'd want to connect a LAN jack of the router to the modem, connect all computers to either LAN jacks or by wireless, and turn the DHCP server in the router off. Using two NAT devices in series won't work. (Which is why using your modem and ICS in a computer won't work either.) Your internal address range for all computers in your LAN should be in the 192 range, not the 172 range. If you're getting any 172 range addresses (like on a wireless connection), the router is still doing NAT and it won't work.
The other way is to set the modem to bridging mode (you'll have to call tech support, because they have to give you a bridged connection) and use the router for all NAT work.
The way you're running it now you have a router in your modem, another one in your wireless router and, if you use ICS, a third one in your computer. Since none of them is set up to bridge segments, it's not working.
Re: Sharing my internet with my router
hmm
Modem --> Computer with ICS Enabled (2 Nic Cards) --> Wifi Router --> client
you need a cross over cable between the nic card and the wifi router (WAN Port)
Uplink ports are crossed.
Re: Sharing my internet with my router
Quote:
Originally Posted by TokersBall_CDXX
you need a cross over cable between the nic card and the wifi router (WAN Port)
Tried this, wifi router still failed to obtain an IP. Oddly enough my computer still says "wan-2wire connected @ 10mbps", weather im using cross over or just patch! So I did a test to see if it was maybe my computer failing to assign an IP and hooked my lappy up to the NIC card im trying to hook the wifi router to and it obtained an IP and the internet works.
So I need to use cross-over when hooking NIC to WAN and a patch when hooking NIC to LAN?
I would just use the wifi router as a switch by hooking my NIC to a LAN port on the wifi router but then I couldnt manage who is using my wireless. lol
I would like to be able to see who is using my wireless.
Re: Sharing my internet with my router
Quote:
Originally Posted by frozen
So I need to use cross-over when hooking NIC to WAN and a patch when hooking NIC to LAN?
This is correct, LAN ports are smart enough to auto sense cross/patch cables. However WAN/Uplink ports are crossed and are not autosensed (most of the time).
With this setup you should still be able to use the wifi router as a router (and control who connects to it).
(The internet consists of many ATM Routers Daisy Chained (Router upon router, using uplink ports))
Good luck.
Re: Sharing my internet with my router
I used Ethereal and monitered eth1 then hooked it up to my routers WAN and found out my router uses BOOTP, so I tried to configure it a static IP in my routers settings but it says invalid ip when I put in 192.168.0.2.