LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-17-2007, 03:24 PM   #1
vsoemlio
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Debian: Problem with configuring a box to a dhcp-server


Hello

I have configured a dhcp-server with this settings. The DHCP-Server is listeing on eth0.

Quote:
Originally Posted by dhcpd.conf
ddns-update-style none;

#option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
On eth1 on the server the adsl-modem is connected. The Modem has the ip 192.168.0.1.
How can i reach the internet if i'm connected to eth0 (dhcp-server) and the internet on eth1?

Quote:
Originally Posted by ifconfig
eth0 Link encap:Ethernet HWaddr 00:C1:26:10:21:46
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2c1:26ff:fe10:2146/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:141 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15243 (14.8 KiB) TX bytes:1836 (1.7 KiB)
Interrupt:169 Base address:0xb000

eth1 Link encap:Ethernet HWaddr 00:16:EC:3A:F6:6F
inet addr:192.168.0.124 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:fe3a:f66f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22440 errors:0 dropped:0 overruns:0 frame:0
TX packets:10515 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19564439 (18.6 MiB) TX bytes:1110197 (1.0 MiB)
Interrupt:193 Base address:0xe800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2025 (1.9 KiB) TX bytes:2025 (1.9 KiB)

Last edited by vsoemlio; 05-18-2007 at 09:04 AM.
 
Old 05-17-2007, 04:11 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
jsut to be sure.. this is actually nothing to do with DHCP whatsoever right?

eth0 and eth1 are on the same subnet. you can't do this in any conventional network. rather than trying to make what you've currently got work, what do you actually want to achieve in the first place? i get the impression going back to grass roots would help the situation a lot.
 
Old 05-17-2007, 05:04 PM   #3
vsoemlio
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Okey.

What about this?

Quote:
Originally Posted by dhcpd.conf
ddns-update-style none;

#option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.1 10.0.0.100;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.155;
option routers 192.168.0.1;
}
Quote:
Originally Posted by ifconfig
eth0 Link encap:Ethernet HWaddr 00:C1:26:10:21:46
inet addr:10.0.0.0 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::2c1:26ff:fe10:2146/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:462 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53422 (52.1 KiB) TX bytes:3170 (3.0 KiB)
Interrupt:169 Base address:0xb000

eth1 Link encap:Ethernet HWaddr 00:16:EC:3A:F6:6F
inet addr:192.168.0.124 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:fe3a:f66f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35165 errors:0 dropped:0 overruns:0 frame:0
TX packets:13718 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22485241 (21.4 MiB) TX bytes:1520075 (1.4 MiB)
Interrupt:193 Base address:0xe800
Edit: Can't someone show me step by step what I should do ?

Last edited by vsoemlio; 05-17-2007 at 05:15 PM.
 
Old 05-18-2007, 12:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well you've really not said what you actually want to do... hence me already asking you to actually ask you to epxlain what you actually want to do. sounds like you want a turn the box into a router...?
 
Old 05-18-2007, 02:48 AM   #5
vsoemlio
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Sorry for an bad explanation

Yes, I think I want to turn the box into a router.

Last edited by vsoemlio; 05-18-2007 at 08:21 AM.
 
Old 05-18-2007, 08:21 AM   #6
vsoemlio
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
This is how I want it

http://img501.imageshack.us/img501/9...arebothrg2.jpg

Last edited by vsoemlio; 05-18-2007 at 10:46 AM.
 
Old 05-18-2007, 11:15 AM   #7
vsoemlio
LQ Newbie
 
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Forget it everybody. I did it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server can ping internally, but cannot reach Internet Tino27 Linux - Networking 4 04-09-2007 06:24 AM
Problems concerning DHCP-server on my Debian 3.0r2 server spaceuser Linux - Networking 9 10-17-2004 12:30 PM
Internet Sharing w/o DHCP Server Mookid77 Mandriva 1 07-20-2004 07:18 AM
Can someone help me reach the Internet!!!??? AMDPwred Linux - General 8 12-23-2001 02:14 AM


All times are GMT -5. The time now is 01:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration