Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-24-2010, 08:33 PM   #1
Registered: Aug 2004
Location: Sri Lanka
Distribution: Debian Etch
Posts: 36

Rep: Reputation: 15
Question Newbie: Help me to setup this simple network ?

Please refer to image at :

The thick-blueline is the connection we get to our lab,where we access internet ,and our web-server has public IP.
What we want to do is,to use the Debian server with DNS (dnsmasq),and DHCP (dhcp3) to assign IPs to devices in the network for using their MAC addresses.(192.168.2.XXX range)

My question is
1) when configuring this setup what IP address should I give to the Debian server(DNS+DHCP server). Is it a static IP ?
2)How does the IP of switch relate to this?
3) To tell 'switch' to use the Debian server as DHCP server,can I use 'DHCP relay' option in the switch ?

Can someone give me steps for configuring this ?

thanks in advance.
Old 02-24-2010, 08:50 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The IP of a switch is just for configuring it. Give it a static IP. This is probably in the purview of your IT department, and not something you need to (or should) deal with. One convention is to use .1 for the router/gateway device. Another is to use .254.

You are missing a router between the switch and the internet. ( Or is the server in the DMZ )

If the server is on site, and in the DMZ, then you should have a firewall between the switch and the server. It will have at least three NIC ports. One for the internet, one for the DMZ where the server is in, and a third for the LAN.

You could configure the Debian server as this firewall, putting it between the switch and the DMZ. Make sure that you only install just what you need.


If you only have a handful of hosts in the network, and the server is off site, then you might want to do what I have done at home. I have a Linksys router, and use it for DHCP and NAT. The router can be configured to issue the same IP addresses based on the MAC address. Then the hosts can simply use DHCP but have the same IP address assigned to it even if you powercycle or reset the router.

Last edited by jschiwal; 02-24-2010 at 08:55 PM.
1 members found this post helpful.


dhcp, lan

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
simple network setup question mr_magen Linux - Networking 4 03-29-2009 06:32 AM
A simple network setup...if possible. SILVERPENGUIN Linux - Networking 3 11-09-2006 01:35 PM
simple network setup nenyo Linux - Software 2 02-12-2005 07:39 PM
Simple network setup filburt1 Linux - Wireless Networking 12 03-15-2004 08:44 PM
Simple Network Setup -- 2 Routers Apollo77 Linux - Networking 12 07-01-2003 09:14 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:24 PM.

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