LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-21-2008, 01:26 AM   #1
figmentium
Member
 
Registered: Mar 2002
Location: Alberta, Canada
Distribution: Debian 4.0 Etch
Posts: 64

Rep: Reputation: 15
Cool debian: dhcp server works, just no internet on 2nd machine


hah! Thanks anyway but I figured it out >.< I re-setup my firewall (with easyfwgen) some extra routing settings and made sure the gateway address was eth1 and and it started working ^^ hooray! This can be locked or removed >.<



Hello I'll try to explain this best I can

My server is Debian 4.0 Etch and has 2 network cards, eth0 and eth1. eth0 is the main connection for the internet. eth1 is where my 2nd machine is going to go into.

I've setup my server with dhcp3-server, finally got it working (the 2nd machine pulls an ip address), I just don't know the finer details of how to get the internet go through to the second machine. I've probably just entered something wrong.

/etc/dhcp3/dhcpd.conf
Code:
option domain-name              "andromeda.";
option domain-name-servers      andromeda;
option ntp-servers              andromeda;
option ip-forwarding            off;

default-lease-time      600;
max-lease-time  7200;
authoritative;

log-facility local7;

subnet 192.168.2.0 netmask 255.255.255.0 {
        range   192.168.2.100   192.168.2.105;
        option routers  192.168.2.1;
        allow   unknown-clients;
}
/etc/network/interfaces
Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0

auto eth0
iface eth0 inet dhcp

iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
gateway 127.0.0.1

auto eth1
I'm just lost on how to tell the 2nd card where the internet is coming from.

My gateway entry was my attempt at telling it so >.<


I am using the site: http://easyfwgen.morizot.net/gen/ gateway/router option for my iptables firewall

Sorry for the silly questions

Thanks!

Last edited by figmentium; 01-21-2008 at 02:23 AM. Reason: added iptables info
 
  


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
Debian: Can't reach internet with through DHCP-Server vsoemlio Linux - Networking 6 05-18-2007 11:15 AM
locate infected machine from dhcp server erimar77 Linux - General 2 05-20-2006 09:33 AM
Debian: dhcp works with 2.2 kernel, but not 2.4 Filias Cupio Linux - Networking 4 05-27-2004 04:35 AM
Linux machine as DHCP server spony Linux - Networking 4 12-23-2003 08:47 AM
dhcp server works for win2000, not win95 machines lgetsche Linux - Networking 3 08-17-2002 09:05 AM


All times are GMT -5. The time now is 11:32 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