View previous topic :: View next topic |
Author |
Message |
krovisser Tux's lil' helper
Joined: 01 Feb 2006 Posts: 105 Location: TX, USA
|
Posted: Sat Nov 15, 2008 4:37 am Post subject: Getting Gentoo Router, Linksys router to work 2gthr [SOLVED] |
|
|
I just got a new intel ITX mobo from Fry's since I've been wanting to set up a Gentoo router. It's fanless so I can put in the game room (where my wireless router currently is) without adding any noise.
So, this router, which is also an Apache, rsync, mediatomb, ampache and ssh server, is configured as per the home router guide.
eth0 is facing the internets
eth1 is my local lan (and it's ip is set at 192.168.0.1, bcast 192.168.0.255, mask 255.255.255.0)
eth1 goes to my linksys wrt54g router (which is running DD-WRT). The router is at 192.168.1.1, gateway 192.168.0.1, mask 255.255.255.0
Now, I have the internet up and running, ssh and apache work fine... sort of... if I am away from home, connecting in on eth0, the internet side. If I am on the LAN, DNS fails for the hostname, and I have to type in the gentoo router's address to see the webserver, mediatomb server, whatever. Same with samba, I have to setup everything up using ip addresses.
Now, I was thinking that this was because wrt54 is in one subnet or something(the gentoo routers) and all my actual PCs are in the wrt54's subnet, which isn't the same. I'm pretty much clueless to this routing thing. I tried setting my wrt54 to just be a router instead of a "gateway", which didn't work. I tried combining that with turning the wrt54's DHCP server off, since the gentoo router has its own. Didn't work.
I'm really wondering if it's because my gentoo router's eth1 goes to the WAN port on the wrt54. I would think if I plugged in the gentoo router to a LAN port, turned off my gentoo router's DHCP server and turned on the wrt54's dhcp server, but then somehow setup my internet connection to come from one of the LAN clients ... and... I ... am so lost.
This site was the only place I could seem to get information, because I can't seem to think of any google terms that will pull up info about my situation with going through thousands of "linux router" howtos... _________________ http://www.krovisser.com/
Last edited by krovisser on Sun Nov 16, 2008 8:36 pm; edited 1 time in total |
|
Back to top |
|
|
Stupendoussteve n00b
Joined: 06 Sep 2005 Posts: 72 Location: US West
|
Posted: Sat Nov 15, 2008 5:04 am Post subject: |
|
|
I do similar, but with FreeWRT. I find turning the router into a switch takes the bare minimum of features, so it's easier not to even have them present.
Set WRT internal IP to be on the same subnet as Gentoo router (something like 192.168.0.2) and turn off DHCP on the WRT. Plug Gentoo system into a LAN port on the router, or disable WAN setup and put all of the ports on the WRT in the same VLAN/bridge. Reason to run DHCP on the Gentoo box? Dnsmasq or whatever is better configured on there.
With this the router will be running as a switch, and you can still reach it via the web interface on its internal IP. Wireless clients should be able to get an IP address from the DHCP server running on the Gentoo box as well, and dnsmasq will resolve internal hostnames. |
|
Back to top |
|
|
krovisser Tux's lil' helper
Joined: 01 Feb 2006 Posts: 105 Location: TX, USA
|
Posted: Sun Nov 16, 2008 8:35 pm Post subject: |
|
|
Well, that did the trick. I disabled DNS, DHCP, and the firewall on the WRT54. Then I plugged in my internet facing gentoo box into a LAN port. All other computers that use the internet are plugged in a LAN port (PS3), or wirelessly connected (laptops).
I also changed the gentoo router's IP to 192.168.1.1, with a 255.255.255.0 mask, the WRT54's IP is 192.168.1.2, even though I don't understand how it can even have an IP address since it's just a switch now...
Restarted everything and it's working great. Also found out that mediatomb has two config files, one in /etc/conf.d/ that is by default set to bind it to eht0, which is not what i wanted and spent a few minutes wondering why my other bind setting in the other config file was being ignored...
The only thing that might be causing trouble now is speed. speedtest.net reports only 2200 kbps, but it's supposed to be around 6800... However, about a week ago it was going on and off, and as low as 10KBps to 150KBps for hours at a time. So, I'll just assume they are working on their end for now, although it was fine a few days when I last checked. _________________ http://www.krovisser.com/ |
|
Back to top |
|
|
Stupendoussteve n00b
Joined: 06 Sep 2005 Posts: 72 Location: US West
|
Posted: Sun Nov 16, 2008 8:58 pm Post subject: |
|
|
It is just a switch but the WRT has an internal interface on it, you give it an IP address so you can still configure it through there. Many commercial switches also have an address for the configuration. |
|
Back to top |
|
|
|
|
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
|
|