View previous topic :: View next topic |
Author |
Message |
Fisknils n00b
Joined: 25 Oct 2005 Posts: 4
|
Posted: Tue Oct 25, 2005 8:03 pm Post subject: [SOLVED] Two problems: routing and dhcpd |
|
|
Hi.
I recently installed gentoo in order to exchange my DI-604 router for a gentoo router.
The first problem (the most important one) is that I cannot seem to route any information outside the local network into the local network, if you know what I mean.
My network looks like this at the moment, as I want to configure the gentoo box completely before replacing the current router with my gentoo box.
Code: | [INTERNET]
|
[DI-604]
|
------------------
| |
[ROOMIE] [GENTOO]
|
[ME] |
The problem is that neither my roomie or anyone from the internet can access me. Unless of course, I do an ip tunnle through the SSH connection using putty, but that isn't really what I want =P
As as there is currently no attempt on making 192.168.0.x to 192.168.1.x (which is what I'm trying to do), I see no point in submitting the routing table, but if you'd like me to, I will. I have tried numerous of "sollutions" without success and read the manual for "route" (which is what I'm using) several times.
I can access my roomies computer, but he doesn't even get a ping response from me.
The next problem is that of dhcpd, which has been brought up so many times already (but I can't seem to find an answer)
As usual the problem is that dhcpd claims that it is Not configured to listen on any interfaces!
here is my dhcpd.conf:
Code: | ddns-update-style interim;
ddns-updates on;
ddns-ttl 30;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.101;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option domain-name "local.se";
option domain-name-servers 195.67.199.15, 195.67.199.16,
195.67.199.17;
option subnet-mask 255.255.255.0;
}
|
the odd thing is that it worked before I tried to change the subnet-mask (due to a missinterpreted forum post, while trying to solve the former problem) (needless to say, I changed back to the former settings when I realized it didn't work, but apparently I missed something. Thank god I forgot to backup the conf )
This isn't the end of the world though, because I can still set a static ip-adress and gateway on my computer and thus access everything as it should be. _________________ Speeling is a lossed art.
Last edited by Fisknils on Thu Oct 27, 2005 4:41 pm; edited 1 time in total |
|
Back to top |
|
|
Fisknils n00b
Joined: 25 Oct 2005 Posts: 4
|
Posted: Tue Oct 25, 2005 8:06 pm Post subject: |
|
|
Ignore the dhcpd problem. I managed to solve it by restarting the NIC's.
oh... there was an edit button as well. sorry for the double posts. _________________ Speeling is a lossed art. |
|
Back to top |
|
|
darkphader Veteran
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue Oct 25, 2005 8:14 pm Post subject: Re: Two problems: routing and dhcpd |
|
|
Fisknils wrote: | As as there is currently no attempt on making 192.168.0.x to 192.168.1.x (which is what I'm trying to do) |
You've enabled routing?
It's the routing table on your roomies system that needs to know how to get to "me".
What about your /etc/conf.d/dhcp ?
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
|
Fisknils n00b
Joined: 25 Oct 2005 Posts: 4
|
Posted: Tue Oct 25, 2005 8:29 pm Post subject: |
|
|
Quote: | You've enabled routing?
It's the routing table on your roomies system that needs to know how to get to "me". |
I've enabled routing on the gentoo box, yes.
And I've managed to route internet to my WinXP machine.
I've also noticed that while doing a tracert to my ip from my roomies WinXP comp, the router directs the request to the internet =P
So I guess you're right about the routing table on my roomies computer.
How would I go about to fix that?
And never mind about the other problems. I've managed to solve it =P
Never mind. I managed to solve it. Thanks a bunch for giving me the right directions ! _________________ Speeling is a lossed art. |
|
Back to top |
|
|
Abraxa Apprentice
Joined: 14 Jun 2005 Posts: 174 Location: Germany
|
Posted: Thu Oct 27, 2005 4:34 pm Post subject: |
|
|
Would be nice to know for future reference how you managed to solve it :)
Oh and the [solved] in the thread's subject would be nice also.
-Abraxa |
|
Back to top |
|
|
Fisknils n00b
Joined: 25 Oct 2005 Posts: 4
|
Posted: Thu Oct 27, 2005 4:40 pm Post subject: |
|
|
As darkphader claimed, I had to edit the routing table for my roomies computer.
So I googled around for a bit, and found that the command "route" was available in windows as well =)
So basically, "route add 192.168.1.0 mask 255.255.255.0 192.168.0.1" did the trick =)
If I recall right, that is. (otherwise, check the help for the route command and follow the instructions) _________________ Speeling is a lossed art. |
|
Back to top |
|
|
|