LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-11-2016, 12:17 PM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Rep: Reputation: Disabled
Setting up a network of static ip's


Hi there,

I'm a little new to this so please excuse any simple questions.
[Background] I am setting up a touring network of up to 50 raspberry pi's (though initially there will be 32) and 15 Windows laptops. Ignoring the Windows laptops for the moment, the 32 rpi's are going to be set up in groups of 4 all connected via ethernet to a 5 port switch, with the last port using a TP-Link nano router set up in client mode to act as a wifi adapter for the 4 rpi's. The 15 laptops have their own wifi and can be set up which ever is easiest, either with static ip addresses or using dhcp.

I will have one or maybe two more raspberry pi's on the network that I will eventually be configuring as an ntp server, firewall (possibly) and backup server attached to one or maybe two external hard drives, these will be taking back ups of the windows laptops only, the raspberry pi's are purely there to provide images and video on screens, and I have written a couple of handy scrips to do things like format usb sticks super quick.

One of the main reason for networking them all together is so that at the end of the night, I can shut down the entire network of rpi's with a single button click on the server to protect them from being unplugged while live.

So my question is, what ranges of IP addresses do I use. I was going to do the following:
Code:
pod 1:
pi1master 192.168.1.100
pi1slave1 192.168.1.101
pi1slave2 192.168.1.102
pi1slave3 192.168.1.103
nano1     192.168.1.104 (nano router)

pod 2
pi2master 192.168.1.110
pi2slave1 192.168.1.111
...

pod 3
pi3master 192.168.1.120
...
etc
Is this the right way to go about this, or is there a specific range that I should be using as at some point in the network there will be some DHCP for personal laptops and mobile internet etc but I was going to use a separate subnet for that 192.168.2.xxx.

Also I don't know how this works from the router, as my home router you can only set up 32 static ip's on it. I was hoping to use another pi to handle the dishing out of ip addresses, but not sure how this works, does my ntp server/firewall pi become the default gateway?

And as for back up pi, could that just be one of the pi's on the network somewhere?

any pointers on this topic would be much appreciated.

kind regards
iFunc
 
Old 01-11-2016, 12:45 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Personally, I would disable the DHCP on the router and use a Linux separate server as my DHCP server. On the Linux server you could:
  • Specify your own DHCP ranges.
  • Specify an unlimited amount of static IP address (well technically limited to the size of the address space you're using).
  • Still use the router as the default gateway.
  • Have more flexibility in how DNS is also served on your local network.
  • Be able to net install Linux over the network (which is handled via PXE boot)

Those are some of the reasons I run my own Linux server for DNS and DHCP. e.g. I visit printer.home for my network printer and router.home for my router configuration page.

Running your own DHCP gives you a lot more flexibility in how you manage your Raspis. It also provides a central place in which your Pis can phone home for configuration and setup (e.g. configuration management through Ansible or any of the other alternatives).

Last edited by sag47; 01-11-2016 at 12:47 PM.
 
Old 01-12-2016, 05:09 AM   #3
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Thank you, that basically confirms that I am on the right track as regards the ip addressing, which I am having to do now and then configure the whole network in 2 months time which is not ideal, but so long as I keep track of hostnames and ip addresses I should be ok. One more quick question for you if you don't mind.

As I am using a router and also an AP booster, I am assuming that the Raspberry pi will need to be connected via ethernet to the router, and then a second ethernet (I have found a USB one 300mps) to connect to the AP and then the rest of the nano routers will connect to the AP. Is this how the server would need to be connected if it is going to be controlling the IP address allocation?

Kind regards
iFunc
 
  


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
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 08:04 AM
Help setting up a static IP on a home network sharkus Linux - Networking 15 01-05-2007 06:48 PM
setting up DHCP from a static network vj2k Linux - Networking 4 08-05-2006 03:36 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
No network connectivity after setting static IP chloevu Linux - Networking 4 07-13-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration