Debian :: Local DHCP Server With Two Ethernet Cards

Jul 5, 2015

I recently bought a used Server (FSC RX200 S4) and set it up running Debian 7. Being used to Ubuntu, that was no big deal. It works as it should out of the box. This magic computing machine has four Network cards (eth0 - eth3). Now, I want to set it up as a multi-purpose server. On the one hand, it shall provide a Apache2 webserve, a SQL Server, a File/Streaming Server and so on. I have no problems setting up these.

On the other hand, it should work as a DHCP server in my local lan with some PCs and a printer/scanner. Until now, my cheap router did that job including to connecting me to the internet. Since I can't really set up a proper firewall with that box, I want to use my server for that.

Thats's my desired setup I want to achieve:
[] Router provides internet connection to Server
--> cable goes into eth0
[] Server therefore has a internet connection
--> Some internal magic routes the internet from eth0 to eth1 (preferably as a iptables setup) and does the Firwall & DHCP Service
--> cable goes from eth1 to a switch
--> switch connects the PCs and printer
[] PCs have internet and I can use the printer

So far so good, here's what I've come up with. I installed dnsmasq and isc-dhcp-server. I got some config files for both. I got a script to set up my iptables

Iptables script:
Code: Select all#!/bin/sh
#
# rc.firewall
# firewall with iptables ... stronger version
#
FWVER=0.88s

echo -e "
Loading STRONGER rc.firewall - version $FWVER..

[CODE].....

When starting up the services, I don't see any errors. Still, it doesn't work. My Server loses its internet connection and the PCs connected to the network are unreachable.

View 1 Replies


ADVERTISEMENT

Server :: Configure Two Ethernet Cards With The Same IP For Redundency?

Jul 20, 2010

how to configure two Ethernet Cards with the same IP for Redundency and Load Balancing?

I appriciate if you spare some time on replying by above query.

View 1 Replies View Related

Ubuntu Networking :: Configure Second Ethernet Card For A Dhcp/dns Server?

Mar 2, 2010

i already have an eth0 configured to automatically get its info from dhcp.

but i wanna configure eth1 to be able to serve dhcp and dns. i havent configured either dns or dhcp server on the server box since i have not configured the serving interface.

so far my interfaces file is:

Code:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp

[Code]....

View 1 Replies View Related

General :: Query A DHCP Server To Get The Local DNS Servers?

Dec 30, 2010

I have a ClarkConnect (CentOS based) box running as my home router on a RR connection. I had the DNS servers set up to use Google's DNS server. I want to change them back to the local DNS servers but I can't find an obvious/easy way to get those address short of a) reconfiguring the router's network to DHCP them (would rather not interrupt everyone) or b) calling their tech support (kill me now!). Is there a command line tool/command I can use to query the DHCP server on the external NIC to see what DNS servers it would set me up with w/o munging my existing setup?

View 1 Replies View Related

General :: Configure Dhcp Server In A Local Lan Network?

Jun 2, 2011

how to configure dhcp server in a local lan network

View 2 Replies View Related

Debian Configuration :: How To Assign Specific Local IPs In Home LAN Using DHCP?

Apr 29, 2011

I have some beginner questions about DHCP, Avahi, and configuring a small home LAN.Suppose I have a dynamic IP address assigned by my ISP, which requires DHCP be enabled in my dsl modem/router/"firewall" [sic]. Suppose for simplicity I have just one PC behind the dsl modem.I think "enabling DHCP" in the modem/router means that a DHCP client runs on the router, which communicates with a DHCP server run by my ISP when I boot up a PC on my LAN. Is that guess correct? Can I get DHCP to assign a particular local IP, say 192.168.1.10 (which is not the one taken by the router--- for this discussion, let's say that is 192.168.1.0) to my PC each time I boot it up?

Now suppose I want to build a stand-alone firewall, so that my LAN will have the firewall and the first PC behind the modem, with the first PC virtually behind the firewall. By default, I think these will both have DHCP clients running which I need to configure properly. The firewall should also have a DHCP server which should control how local IP addresses are assigned, correct? I should try to arrange that the LAN has only DHCP server, only one NTP timeserver, only one DNS nameserver, correct?My first PC seems to have installed an autorun client called Avahi, which performs DNS multicast services and incorporates something called zeroconf which seems to have something to do with remote desktops, which I don't need and which is a potential security hazard. But it seems that Avahi is an intrinsic part of the KDE desktop and cannot be removed. Just want to be sure that Avahi can coexist comfortably with dhcp3-client, which is also installed on that PC. They perform different tasks, correct?If I can get the stand-alone firewall to work, I know I need to turn off the commercial firewall in the dslmodem/router/firewall device. Should I purchase a bridge and try to turn off the routing function also?

View 8 Replies View Related

Ubuntu Servers :: Run A DHCP Server On Home Network To Enable PXE Booting For Ethernet Clients

Feb 27, 2010

I'm attempting to run a DHCP server on my home network to enable PXE booting for ethernet clients, but I'm having quite a few issues getting it all up and running. I'm not entirely sure what is wrong, but I keep encountering errors in syslog as follows:

Code:

Feb 27 02:26:46 servnerr-1 dhcpd: Wrote 0 leases to leases file.
Feb 27 02:26:46 servnerr-1 dhcpd:
Feb 27 02:26:46 servnerr-1 dhcpd: No subnet declaration for eth0 (192.168.1.3).

[code]....

Networking is not exactly my strong suit, but I would like to get this up and running if at all possible.

View 9 Replies View Related

Networking :: Dhcp Wants To Provide Two Different NIC Cards

Apr 2, 2009

I want to provide dhcp in different NIC which are eth3 and eth2. eth2 has the IP address of 192.168.3.1 and eth3 has the IP address of 192.168.4.1. I want to provide dhcp to 192.168.3.0network and also for 192.168.4.0 network.All these are done in ubuntu server.

View 1 Replies View Related

Ubuntu :: Ethernet Cards Not Connecting?

Mar 9, 2011

i have ubuntu 10.10 64b and for some reason last night the wired network autoeth01 suddenly will not connect to my router. it is a dual boot machine so i booted into windows and it is working fine in that OS.

I then had a look at the status on my laptop running ubuntu 10.10 32b and that was showing the same message "wired network autoeth01 disconnected" i cannot for the life of me figure this out. just before it was disconnected i had been copying 7gigs worth of data using samba from the 32b machine to the 64 bit machine.

i have tried deleting the wired entry and recreating it.

tried different cables

even changed the router

works with all windows machines connected to network

here is what comes up in lfconfig:

jason@ubuntu1:~$ lfconfig
No command 'lfconfig' found, did you mean:
Command 'fconfig' from package 'redboot-tools' (main)
Command 'ifconfig' from package 'net-tools' (main)
Command 'ldconfig' from package 'libc-bin' (main)

[Code].....

View 6 Replies View Related

Networking :: Won't Find Ethernet Cards

Sep 15, 2010

I am writing a new lightweight Linux distibution mainly for educational purposes. I have a problem; it won't find any ethernet cards. I have tried enabling several things in the kernel config. What I would really like to know is how to enable some generic ethernet drivers and therefore networking. I would like to avoid having to use modules. I'm using kernel version 2.6.35.1.

View 9 Replies View Related

General :: How To Setup Two Ethernet Cards

Sep 6, 2010

How to setup two Ethernet cards ,one with public ip address and the other with local ip address.

View 4 Replies View Related

Ubuntu Servers :: Dns Server Started With 2 NIC Cards - Bios Sees Both Cards But - Both Dont Show In Ifconfig

Dec 1, 2010

I have a dns server started with 2 NIC Cards in it. The bios sees both cards but they both dont show in ifconfig. is there a way to activate the second card?

View 1 Replies View Related

OpenSUSE Install :: 11.2 Not Recognizing Some Ethernet Cards

Jan 5, 2010

I've installed OpenSUSE 11.2 on my computer. Well, 11.2 is great and all, but issuing ifconfig yields only loopback device. Now, I have OpenSUSE 11.0 installed on my notebook; the system works fine, although I had that very problem initially and had to recompile the kernel in order to make it recognize my notebook's ethernet card. My question is: If I upgrade my notebook's 11.0 up to 11.2, am I sure to have my files intact? Is 11.2 sure to "see" the ethernet card?

View 2 Replies View Related

Slackware :: 2 Ethernet Cards Using The Same Driver As Module?

Oct 11, 2009

i have 2 nic's that use the same 8139too module to be operated.so in order to run them i added in /etc/modprobe.d/a file with 2 aliases for the 2 nics alias eth0 8139too alias eth1 8139too and I added a udev rule to give the name eth1 to the 2nd card (the 1st card already had a rule) i still don't get the 2nd rule to be brought up automatically at start up... ifconfig only returns 'eth0' and i have to manually do 'ifconfig eth1 up' at which time the interface is brought up nicely.. then i do a dchpcd to get a network address and im all set. but i would like to do this automatically... note that i know that if i add static ips in /etc/rc.d/rc.inet1.conf i will get both ifs up... but i wonder how its gonna happen with the 2nics being 2 dhcp clients.

View 5 Replies View Related

Hardware :: Couldn't Find Drivers For Ethernet Cards

May 30, 2010

I'm looking for drivers for a some ethernet cards: 02:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec: 8139] (rev 10) Macronix, Inc. [MXIC] MX987x5 [10d9:0531] (rev 25) and Dlink dfe-538tx

I found some drivers at: Realtek These are for the Realtek card. They are: UnixWare 7.1.x and SCO Unix 5.0.X Which one would I use for Debian Lenny? I couldn't find any for the Macronix I found this site for dlink: ftp://ftp.dlink.com/NIC/dfe538tx/Driver/Linux/

[Code]...

I'm not sure what to do with the dlink. I'm not familiar with Linux drivers. I don't know if this is the right way to go or if there are drivers for linux already.

View 3 Replies View Related

Networking :: Can Use 2 Ethernet Cards For Green Network In Ipfire?

Jul 5, 2010

Ok, so I've gotten tired of my router, and I've decided to make my own using IPFire as the OS. Right now I'm looking for ethernet cards that I can use for the green network, but I don't know if I can use 2 for the same network. I'm trying to get 4 ports at 1000 Mbs, and the only thing I've been able to find so far that's within my price range is a card from startech that has 2 ports, but would I be able to use 2 for the green network?

View 3 Replies View Related

Software :: Unable To Activate Ethernet Cards In Fedora 10?

Oct 31, 2009

I have Installed Fedora 10 and I have assigned manual IP address to eth0 and trying to activate the eth0 but all buttons are disabled.

View 2 Replies View Related

Ubuntu Networking :: 9.0.4 - Supported Ethernet Cards That Work Flawlessly?

Apr 29, 2010

I'm running Ubuntu 9.0.4 with an Intel PRO/100 VE Network Connection. I have been trying for a couple weeks now different techniques to get my wired ethernet connection working properly. I have a seeming common issue with my e100 driver dropping connection and having hard time picking it back up sometimes. I want to purchase a relatively inexpensive Ethernet card whose generic Linux driver actually operates it CORRECTLY, open up comp and put it in, and update to 9.10. Any list of Ethernet cards that are know to work flawlessly on Ubuntu, or at least tell me which card YOU are using that works perfect without having to write code, install wrapper programs, etc...?

View 8 Replies View Related

Networking :: 2 Ethernet Cards Prevent Recognition Of Wireless Card?

Apr 3, 2011

I have two motherboards, MSI-6702 (64 bit single channel) and MSI-7511 (64 bit dual channel), I have two identical D-Link wireless cards and am running Kubuntu 10.10 on both systems. 7511 recognizes both wireless cards and connects to the Internet.The 6702 shows wireless grayed out on the connections page. The built-in Ethernet card has given out on both. I think I disabled it on the first system to have an Ethernet problem and wonder if I need to do it on the second. I would have tried it already but can' t remember how.

View 2 Replies View Related

Ubuntu :: Share The Wireless Network With Old Lap Top Via The Wired Ethernet Cards

Mar 25, 2011

I want to share the wireless connection from an Ubuntu machine with an old lap top via the wired Ethernet cards. the old laptop doesn't have wire less. the Ubuntu machine is 10.04 LTS -the Lucid Lynx.

View 1 Replies View Related

Fedora Hardware :: Many Ethernet Cards - Find Vendor / Model - MAC Address ?

Oct 7, 2010

How can I determine full compliance:

Input data see below.

Code:

Code:

Code:

Result - ethernet devices about which I know the exact information :

Code:

View 3 Replies View Related

General :: Build Broadcom Netlink BCM5787M Onboard Ethernet Cards (x2)

Apr 13, 2010

I would like to get my Slackware 11 to work with the Broadcom NetLink BCM5787 onboard Ethernet Cards (x2). I have downloaded the tg3 driver from the Broadcom site. I copied and extracted the driver onto the Linux harddisk. When I wanted to build it I got the message, tg3_compat.h: error : redefinition of 'msecs_to_jiffies'previous delay.h : error: definition 'msecs_to jiffies" was here"

View 3 Replies View Related

Networking :: Connect Using An Ethernet Card Using Dhcp ?

Feb 15, 2010

My ISP finished some 'upgrades' on its infrastructure. The result is that I am having great difficulty in connecting to the internet.

I have 3 operating systems on my box - XP, Fedora 8 and Feota 12.

I connect using an ethernet card, using dhcp. In fedora 12, the ethernet card is controlled be networkmanager. After the ISP completed their upgrades, I was not able to connect. I tried to connect manually using

Code:

There was an error message -

Code:

I read the advice here: [url], and removed all but the important lines.

But even after that neither ifup eth0 or dhclient eth0 works.

In fedora 8, the ethernet card is activated by ifup eth0 in /etc/rc.local. I was able to connect on a couple of occasions, but that too stopped working. I tried both ifup eth0, dhclient eth0, and tried to use the gui( which fires the dhclient command), but none worked.

When I use windows, it takes about 2 minutes to get an ip (earlier it was immediate). Sometimes that doesnt work and I have to click on "repair" whereupon it starts working.

View 1 Replies View Related

Debian Configuration :: DHCP Server With External Dns Name Server

Jun 14, 2011

I wanted to setup my server as a router/gateway just for educational purposes and also when it succeeded i will keep the gateway and place it on the front line right after my modem.

My current setup as it is now :

The GATEWAY/ROUTER will be doing the main work to act as a dhcp server and firewall.

Now my setup as it is now :

So now what i ment to do was :

Let the clients connect to the gateway via ETH1 and all the stuff being router to ETH0 which is the NIC that is connected to the internet.

But now i have two huge problems :

1. The DHCP configuration seems to be fine the client machines get their ip adresses and /etc/resolve.conf looks fine to. But somehow the GATEWAY/ROUTER wont let me use the specified external DNs server so i cant do anything on these machines.

2. The firewall script [url] at line 27 should be DROP but if i use this line of code the GATEWAY/ROUTER cannot use his dns server settings so when i try to browse the internet or ping a machine outside my local network it would came up with nothing.

View 1 Replies View Related

Ubuntu Installation :: Ethernet Connection & DHCP Renewal?

Aug 9, 2011

I just upgraded my Ubuntu Server from 10.04 to 11.04. I am having issues with the ethernet connection upon boot. The connection will blink slowly and not stay connected to the network. If I then unplug the ethernet from the switch and then replug it in, eth0 will get a steady connection, at which point I have to run the following command to get everything working.

Code:
sudo dhclient eth0
After running the command I have no issues with the ethernet connection.
lshw -C network
Code:
*-network:0

[Code]...

View 1 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responses To DHCP Requests - Can't Ping Gateway

Oct 22, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 6 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responds To DHCP Requests - Can't Ping Gateway

Jul 1, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.

When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 2 Replies View Related

Networking :: Configure A (openSUSE) Client To Dhcp To EBox DHCP Server - Lease An IP Address

Mar 25, 2010

I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response

openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.

The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0

I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?

View 2 Replies View Related

Debian :: Squeeze - Won't Connect With (DHCP) Server

Nov 29, 2010

I've been using Debian Squeeze for a few years now, no troubles connecting to a DHCP server in PPOE session... (DSL service) until this morning (11.29.10) when now I do (that is to say; browser, email prog., terminal, real player, etc., just won't connect). I can do dual boot, & so am in Windows XP at the moment.

View 12 Replies View Related

Debian :: Configure Dhcp Server But Without Success?

Apr 5, 2010

i'm trying to configure my dhcp server but without success. i've installed dhcpd apt-get install dhcpd-server then i've added the following line to my dhcpd.conf

host foo{
hardware ethernet 00:00:24:C9:5A: D0;
fixed-adress 169.254.81.51;
filename "pxelinux.0";

[Code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved