LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   debian: dhcp server works, just no internet on 2nd machine (https://www.linuxquestions.org/questions/linux-server-73/debian-dhcp-server-works-just-no-internet-on-2nd-machine-615111/)

figmentium 01-21-2008 01:26 AM

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!


All times are GMT -5. The time now is 02:20 AM.