Naming your machines

You need to choose a naming convention and IP range. You also need to give the machine a password for console use if something goes wrong with the ssh-keys.

Share
Naming your machines
Photo by Utsav Srestha / Unsplash

All machine need a specific name and a IP address.

You need to choose a naming convention and IP range. You also need to give the machine a password for console use if something goes wrong with the ssh-keys.

Naming of machines

Here you can use your imagination and base the naming convention on your interests.

Some of my favorite encounters:

  • Greek goods: Nodes: Aeaea, Elysium (back-up), Sparta, Troy and VM's: athena, apollo, ares, boreas, castor, cronos (NTP), hermes (firewall and proxy) plutos (finace), zeus (management)
  • Planets: sol (the node) and the VM's: pluto (edge server), earth (wp), moon (proxy), jupiter and saturn (MariaDB)
  • F1 based: the node's where the teams, drivers the VM's
  • Geography: continents (node's), harbours (VM's) and rivers (networks)
  • SciFi is number 1: Dune, Star Wars, Stargate, Startrek, Babylon 5, Moonbase Alpha, Doctor Who
  • Fantacy: Game ot Thrones, Harry Potter, Lord of the Ring, Merlin, Disney
  • Roman goods/emperors: cesar, nero, apollo, aurora, mars, venus ...
  • And anything goes: galexies and planets, ships, trains ...

IP range

Depending on the size you choose a range, adjust according to the use of VLAN's.
All guest should be served by a special GuestNet.
You might need a Backbone network (dedicated for inter server communication) and a separate management network.
By dividing your IP's into groups it's easier to remember to addresses and less mistakes are made.

Below some examples of subnets of Class C ( /32 to /24) and B ( /23 to /16 ) networks.

💡
Tape a QR code to the fridge door for the kids friens to sign on to the GuestNet

Netmask /24 - 254 addresses, class C

Network 192.168.1.0 gives you IP's 192.168.1.1 - 192.168.1.254.
Gateway is usually .1 or .254. Broadcast is192.168.1.255

  • Infrastructure: .1 - .39 for Gateways, Switches, WLAN mesh, Printer/scanner, TV
  • Servers: .40- .99 for Servers, metal and virtual
  • Users: .100 - .199 for Phones, Tablets, Watches and PC's
  • Reserved: .200 - .254 for VPN, special users

Netmask /22 - 1022 addresses, class B

Network 192.1684.0/22 Address 192.168.4.1 gives you IP's 192.168.0.1 - 192.168.7.254.
Gateway is usually .4.1 or .4.254. Broadcast is 192.168.7.255

  • Infrastructure: .4.1 - .4.254 for Gateways, Switches, WLAN mesh, Printer/scanner, TV
  • Servers: .5.1 - .5.254 for Servers, metal and virtual
  • Users: .6.1 - .7.99 for Phones, Tablets, Watches and PC's
  • Reserved: .7.100 - .7.254 for VPN, special users

Members only area below

How do netmasks work

Use this web based subnet calculator for more details on IPV4 and 6 subnets LINK

## Netmask 24 
 
Address:   192.168.1.1           11000000.10101000.00000001 .00000001
Netmask:   255.255.255.0 = 24    11111111.11111111.11111111 .00000000
Wildcard:  0.0.0.255             00000000.00000000.00000000 .11111111
Gives you:
Network:   192.168.1.0/24        11000000.10101000.00000001 .00000000 (Class C)
Broadcast: 192.168.1.255         11000000.10101000.00000001 .11111111
HostMin:   192.168.1.1           11000000.10101000.00000001 .00000001
HostMax:   192.168.1.254         11000000.10101000.00000001 .11111110
Hosts/Net: 254                   (Private Internet)

## Netmask 22 
Address:   192.168.4.1           11000000.10101000.000001 00.00000001
Netmask:   255.255.252.0 = 22    11111111.11111111.111111 00.00000000
Wildcard:  0.0.3.255             00000000.00000000.000000 11.11111111
Gives you
Network:   192.168.4.0/22        11000000.10101000.000001 00.00000000 (Class C)
Broadcast: 192.168.7.255         11000000.10101000.000001 11.11111111
HostMin:   192.168.4.1           11000000.10101000.000001 00.00000001
HostMax:   192.168.7.254         11000000.10101000.000001 11.11111110
Hosts/Net: 1022                  (Private Internet)

Greek gods: a list is found on the web, see the list

Roman gods: a list is found on the web, see the list