LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-24-2010, 08:33 PM   #1
Umanga
Member
 
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 :
http://i50.tinypic.com/2lus1f5.jpg

The thick-blueline is the connection we get to our lab,where we access internet ,and our web-server 61.108.45.101 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
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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 192.168.1.xxx 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.
  


Reply

Tags
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


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