Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Two problems: routing and dhcpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fisknils
n00b
n00b


Joined: 25 Oct 2005
Posts: 4

PostPosted: Tue Oct 25, 2005 8:03 pm    Post subject: [SOLVED] Two problems: routing and dhcpd Reply with quote

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
View user's profile Send private message
Fisknils
n00b
n00b


Joined: 25 Oct 2005
Posts: 4

PostPosted: Tue Oct 25, 2005 8:06 pm    Post subject: Reply with quote

Ignore the dhcpd problem. I managed to solve it by restarting the NIC's.
:oops:


oh... there was an edit button as well. sorry for the double posts.
_________________
Speeling is a lossed art.
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Tue Oct 25, 2005 8:14 pm    Post subject: Re: Two problems: routing and dhcpd Reply with quote

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".

Fisknils wrote:
dhcpd claims that it is Not configured to listen on any interfaces!

here is my dhcpd.conf:

What about your /etc/conf.d/dhcp ?

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Fisknils
n00b
n00b


Joined: 25 Oct 2005
Posts: 4

PostPosted: Tue Oct 25, 2005 8:29 pm    Post subject: Reply with quote

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 :D!
_________________
Speeling is a lossed art.
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Thu Oct 27, 2005 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fisknils
n00b
n00b


Joined: 25 Oct 2005
Posts: 4

PostPosted: Thu Oct 27, 2005 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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