Notes about static IPs in non-HPx Docking Networks

Background

  • In our HPx::745 Docking Network (/21, 2048 IP addresses, see VLANs), the lower /22 range (1024 IP addresses) is used for static IP addresses and the upper /22 range (1024 IP addresses) for dynamic IP addresses
  • All other *::745 Docking Networks (see VLANs) are not split up this way, but in some of them (currently RZ::745 and HCI::745) single IPs are used as static IP nevertheless
  • HIx::745 may be handled like HPx::745 in the future.

How to add a static IP to a non-HPx Docking Network

  • Choose one of the dynamic IPs in the appropriate IP range
    • If there are already statically used IPs in that range, choose an adjacent IP address from that range
    • If there is no statically used IPs in that range yet, choose an IP address from the beginning or end of that range.
  • Change the DNS record of that IP
  • Register the host's MAC address in the MacAdm even if it doesn't use DHCP – it's where people will look for this kind of information, especially contact persons.
  • On each of the two DHCP servers stock and ruchen, do the following1):
    • Change to the /etc/dhcp directory.
    • Open dhcpd.conf.
    • Search for phys-hci-dock-1 in case of the HCI::745, for phys-rz-dock-1 in case of the RZ::745 network, etc.
    • Shrink the range appropriately so that the new static IP address is no more included.
    • Use git add -p to stage your changes
    • Commit your changes and mention the newly added static IP (or maybe even better its according hostname) in the commit message.
    • Restart the DHCPd and check the syslog for errors, e.g. by issuing /etc/init.d/isc-dhcp-server restart; inotail -f /var/log/syslog
  • If not already done, note on the VLANs wiki page that there are statically used IPs in that VLAN or IP range.
1) Instead of doing this twice, you can also use git fetch and git cherry-pick to apply the changes you made on the first DHCP server
 
notes_about_static_ips_in_non-hpx_docking_networks.txt · Last modified: 2011/09/28 14:16 by abe
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki