View previous topic :: View next topic |
Author |
Message |
Antimatter Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2003 Posts: 463
|
Posted: Fri Jul 15, 2005 9:22 am Post subject: Needs help with my wierd network setup. [solved] |
|
|
Edit: look at the last post by me for the answer.
Allright here's my network setup.
Quote: |
Satillite modem(ditto) ---> windows xp (ICS)-(192.168.0.1) ---> Gentoo Desktop eth1(192.168.0.2), eth0 to wireless router ----> linksys wireless router ---> ibm thinkpad laptop
|
Anyway so far I've setup the satillite modem to xp using dhcp because of my isp contract requiring dhcp.
However for windows xp to gentoo desktop I use static ip, of 192.168.0.1 for xp machine, and 192.168.0.2 for desktop and it works great.
My Number one issue is geting the gentoo machine to laptop to work, ive tried atleast half an dozen solution and all of them failed horriously.
Attempts:
1) turned off routing stuff in my wireless router, i basically want to set it up as a cheap access point. So my eth0 interfance get set to 192.168.0.3 and the wireless router gets set to 192.168.0.4 and the thinkpad gets set to 192.168.0.5
So i played with this seting around a bit and the laptop to wireless router works just fine but the laptop can't get on the internet so i look up ip masq and checks out home-router-howto setup ip masq via that guide trying my best to use static ip.
that attempt failed.
2) tried to put wireless router in between of the window xp machine and gentoo machine.
Quote: |
satillite --> window xp ---> wireless router ---> gentoo machine
................................................|
...............................................\/
...........................................thinkpad
..... = space, because quotation screws up spacing
|
anyway i got the window xp to router to gentoo machine to work, but my speed was abyssial, i was normaly geting 80KiB/sec down with crossover cable from xp machine to gentoo machine, but now it was dropping down to 20-30's which wasn't acceptable.
and i couldldn't even get the damned thinkpad to access the wireless part and connect at all.
3) tried bridging to the wireless router and that attempt failed massivly also, after i bridged i couldn't access the internet with gentoo machine so i played with it a bit still no good, same thing with laptop.
Quote: |
Satillite modem(ditto) ---> windows xp (ICS)-(192.168.0.1) ---> Gentoo Desktop eth1(192.168.0.2), eth0 to wireless router ----> linksys wireless router ---> ibm thinkpad laptop
|
Quote: |
Satillite modem(ditto) ---> windows xp (ICS)-(192.168.0.1) ---> Gentoo Desktop eth1(192.168.0.2), eth0 to wireless router ---> ibm thinkpad laptop
|
4) setup an sort of dhcp dasy chain
got the gentoo machine to grab the dhcp from the window xp machine, internet worked
wireless router grabs the dhcp address from the gentoo machine, no idea if it worked but it seemed to.
laptop grabs the dhcp address from the wireless router. again no idea.
Quote: |
Satillite modem(ditto) ---> windows xp (ICS)-(192.168.0.1) ---> Gentoo Desktop eth1(192.168.0.2), eth0 to wireless router ----> linksys wireless router ---> ibm thinkpad laptop
|
5) got rid of the wireless router and did a direct connect
Quote: |
satillite ---> window xp ---> laptop
|
using static ip or dhcp i got internet working on laptop but the gentoo machine now had no internet which obiviously was unacceptable, (needs to use it as a rsync mirror/distcc server and so forth)
6) now tried to get rid of the router and did a crossover cable from window xp machine to gentoo machine, then gentoo machine to laptop
Quote: |
satillite --> window xp ---> gentoo machine ---> laptop
|
tried to use static ip, and setup masq and so forth, failed
setup an dhcp server on gentoo machine along w/ dnsmasq and again it failed.
so now here's some facts that i know.
satillite to window xp ---- works
window xp to gentoo machine ---- works
gentoo machine to router ---- unknown, failed, ping dosen't work
wired router to laptop ---- works
wireless router to laptop ----- works
so the main issue that i am having is somewhere in between the gentoo machine and the router, so i suspected mis-config in router so i reviewed it all, and frankly i have no idea there.
so i then think its an failure of knowledge for ip-masq which i figure is the most likly cause, did some reasearch and haven't had much luck.
Requirement
1) What i want to do with the network is to have as much of it being static ip as possiable, hopfully that helps cut out the complexity of using dhcp in chains and what so ever. Perhaps the laptop itself could use dhcp but i'll enable that later after i get the laptop compiled and working correctly but untill then prefer to have the whole network as static ip if possiable.
2) would like to be able convert the router into an wireless access point, from what i know that's mainly by turning off the routing features and so forth. its an linksys wrt54g router
3) for the bootstrap and anything using heavy file transfer and so forth i want to use direct laptop to gentoo machine connection using crossover cables, because both laptop and gentoo machine has gigabyte ethernet, while the linksys router is 10/100 ethernet along with 54 Mbit wireless network.
Btw i'm an network idiot, i understand the basic i think, but i'm not that familar with the masq and other functionality of ipchain, even although ive done some research its still murky matter for me.
so clear and detailed instruction would be apprecated!
Thanks you!
Last edited by Antimatter on Sat Jul 16, 2005 12:53 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rex123 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 Apr 2004 Posts: 272
|
Posted: Fri Jul 15, 2005 2:03 pm Post subject: |
|
|
Wow. Such an epic post deserves a response.
It looks like you got the best results when you were using DHCP. DHCP fetches an IP address, and also sets up a default gateway. It can also work across subnets, which most routing can't. Which I think explains how a machine can get hold of a DHCP lease even if not connected directly to a DHCP server.
What to look at is the routing tables (command is "/sbin/route"). A route needs to know what destinations to go to, what the gateway is, and what the interface is. You are going to need static routes between your machines, and you will need to set up a good default route for each of them to access the world.
The problem is that you have multiple subnets, and you are using IP addresses that look like they are on the same subnet, so you are going to need to either be very careful with your subnet masks or use a different subnet (10.x.y.z maybe) for the gentoo->wireless subnet.
Not very detailed info, but hopefully a start... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Jul 15, 2005 4:25 pm Post subject: |
|
|
I own the same Linksys router as you do. Assuming you're running the latest code, released Jan 2005, you should be able to support DHCP, PPPoE, PPTP, and L2TP from the Linksys. I'd configure the Linksys as a router and set the Internet side to DHCP. Then let all the internal machines use the Linksys as their gateway/NAT/etc. Doing this I've got two destops, 1 Gentoo server, a OS X Imac, and a few laptops on line. I'd give the following setup a shot, assuming the Linksys can DHCP against your ISP.
Code: |
satellite modem
|
Linksys WAN interface set to DHCP against the satellite modem
|
Linksys LAN interface set to provide DHCP for internal machines
| | |
Windows XP Desktop Gentoo Laptop
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antimatter Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2003 Posts: 463
|
Posted: Fri Jul 15, 2005 7:46 pm Post subject: |
|
|
kashani: yep that could work, but number #1 issue with that setup is the satillite modem is USB based, and it requires a window computer to interfance with it, because they use specalized properity software to establish the link, and do packet managing. As far as i know the satillite software will take say X packadge like 20-30 of it, then cluster it into one mega packet then burst it up to the satillite, This is how i get 60-70KiB download, if i disable this and connect it directly to an linux computer or via an router i get max of perhaps 5-6KiB download, because i don't have the software to interprent the properity network whatever with the satillite.
So short summary that is pretty much out of the question as far as i know the best network layout for me atleast is
Quote: |
satillite -> window xp -> gentoo machine -> router as access point -> laptop.
|
i tried with the router between the xp machine and gentoo machine, but that cut my upload/download speed into half. and still couldn't get online with laptop.
rex123: i unfortually am not familar with what the heck subnet masks are, i usualy just default with 255.255.255.0 for most part.
the ip address of my network as i have it right now.
satillite (isp assigned)
window xp( eth0 - 192.168.0.1) (usb - satillite)
gentoo machine( eth1 - 192.168.0.2 ) (eth 0 - wireless router (192.168.0.3) ?
wireless router - (internet - 192.168.0.4) (interial - 192.168.0.5)
laptop - wireless - 192.168.0.6
so it was same subnet and what so ever, but i could always change it to something else like 10.10.10.* if that would ease the translation but i doubit.
Quote: |
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.0.0 U 0 0 0 eth1
loopback saganami.elder 255.0.0.0 UG 0 0 0 lo
default berens.mshome.n 0.0.0.0 UG 0 0 0 eth1
|
this is my current routing table, i'm not sure what i need to alter/add to enable the internet to be accessable on gentoo machine and accessable to the router?
Also another thing i have been trying to figure out is how to get the laptop to talk to the desktop and vice/verse so i can setup an rsync server on desktop.
In response to your post:
so what i should do is for the wired network have it something like this?
window xp - 192.168.0.1
gentoo - 192.168.0.2
then gentoo to router - 10.10.10.1
router internet - 10.10.10.2
router lan - 10.10.10.3
laptop - 10.10.10.4
would that above work? or am i thinking wrong with the internet thing, i connect gentoo to router via the gentoo eth0 interfance and the router internet interfance. should i alter it to gentoo eth0 to one of the lan port on the router?
then can i set the laptop wired interfance to 192.168.0.3 or something for whenever i want to use distcc to compile on both machine over a gigabyte lan?
sorry again for a long post i'm not very familar with network, the most ive ever done is simple 1-2 machine layout. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antimatter Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2003 Posts: 463
|
Posted: Sat Jul 16, 2005 12:32 am Post subject: |
|
|
[edit]: goddamn yes i got the sucker to work.
how? the gentoo machine to router was on the router internet port, so i removed and moved it to router port 2, and now gentoo machine can ping the laptop and router, and router can ping the laptop and gentoo machine, and laptop can ping router and gentoo machine
goddamnit. what a bunch of bull, the majority of the problems regarding the wireless router couldve been avoided by moving the input from the internet port to one of the hub port! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dgaffuri Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Jul 16, 2005 12:53 am Post subject: |
|
|
I'm a little confused. May you please explain clearly how many network cards do you have on each machine, how they're connected to the router and which IP addresses you assigned to all these interfaces?
[edit]unless it's all solved, I've seen only now your last post[/edit]
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antimatter Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2003 Posts: 463
|
Posted: Sat Jul 16, 2005 5:33 am Post subject: |
|
|
dgaffuri wrote: | I'm a little confused. May you please explain clearly how many network cards do you have on each machine, how they're connected to the router and which IP addresses you assigned to all these interfaces?
[edit]unless it's all solved, I've seen only now your last post[/edit]
Thanks. |
sure i can, i'll go ahead and post it all up for furture users if they have the same issue.
Satillite Modem: technicaly 4 ports on it, 2 satillite cables port for ingoing and outgoing signal, one ethernet interfance and one USB interfance. IP address is DHCP from the ISP.
Window Xp: techincaly two port, one 10/100 ethernet and an USB port used to connect to the satillite modem.
USB: IP address is DHCP from the satillite modem (connected to the satillite modem)
10/100: the IP address is set by window xp's internet connection sharing, its 192.168.0.1 (connected to the PCI port of the gentoo machine)
Gentoo Machine: Two port, one motherboard gigabyte ethernet and another gigabyte pci ethernet
PCI: IP address is 192.168.0.2 (Its connected to the 10/100 port off the window xp machine
motherboard: IP address is 10.10.10.1 (its connected to one of the lan port on the wireless router), (also can be connected to the laptop gigabyte ethernet)
Wireless Router: Five ports, one internet port, 4 LAN ports + wireless
internet: this was what was messing me up, nothing is on this one.
lan-1: IP address is 10.10.10.2 (its connected to the Motherboard ethernet of the gentoo machine)
wireless IP address is also 10.10.10.2 this is the device address (connected to the laptop wireless)
laptop: three port, one modem(unused), one gigabyte ethernet, and one wireless.
wireless: IP address is 10.10.10.3 (connected to the wireless router's wireless)
ethernet: IP address is 10.10.10.2 (can be connected to the gentoo machine motherboard ethernet (replacing the wireless router's connection to that port) )
Diagram of my two used network setup, wireless is for general operation, and gigabyte ethernet is for heavy file transfer and for the bootstrap and other sensive things.
Quote: |
satillite ---> window xp machine ---> gentoo machine ----> wireless router ----> laptop
|
Quote: |
satillite ----> window xp machine ----> gentoo machine ---> laptop
|
anyway well there yah all go. this is my current network setup, and it works, the laptop wired IP is 10.10.10.2 and wireless ip address is also 10.10.10.2 but i only use one or the other so no issue there. there's only two useable port on gentoo machine anyway. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|