Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
05-17-2007, 03:24 PM
#1
LQ Newbie
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11
Rep:
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 .
05-17-2007, 04:11 PM
#2
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853
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.
05-17-2007, 05:04 PM
#3
LQ Newbie
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11
Original Poster
Rep:
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 .
05-18-2007, 12:52 AM
#4
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853
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...?
05-18-2007, 02:48 AM
#5
LQ Newbie
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11
Original Poster
Rep:
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 .
05-18-2007, 08:21 AM
#6
LQ Newbie
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11
Original Poster
Rep:
Last edited by vsoemlio; 05-18-2007 at 10:46 AM .
05-18-2007, 11:15 AM
#7
LQ Newbie
Registered: May 2007
Location: Norway
Distribution: Debian
Posts: 11
Original Poster
Rep:
Forget it everybody. I did it
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 08:31 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News