Differences between revisions 2 and 3
Revision 2 as of 2017-02-15 19:17:19
Size: 2535
Comment:
Revision 3 as of 2017-07-21 22:17:25
Size: 2640
Comment:
Deletions are marked like this. Additions are marked like this.
Line 44: Line 44:
   * On chiara, the way to restart the `dhcpd` server is:{{{
$ sudo service isc-dhcp-server restart}}}

So you want to join the martian network?

  • First, you need a name for your machine. Here are some ideas

  • Determine the IP address you want to use for this computer and add it to the domain name server running on chiara:

    1. Modify these files, following the pattern you see for the other machines:

      /var/lib/bind/martian.hosts
      /var/lib/bind/rev.113.168.192.in-addr.arpa
    2. Restart the name server on chiara after these changes:

      $ sudo service bind9 restart

What if my hardware is weird and needs to connect via DHCP?

(This was the case for the wireless router around the vertex)

  • Open up /etc/dhcp/dhcpd.conf on chiara and look for the section that looks like

    # Static hosts via DHCP via MAC address
    subnet 192.168.113.0 netmask 255.255.255.0 {
        range 192.168.113.240 192.168.113.250;  # This reserves some IPs for DHCP devices
        [...]
  • Add a host block like so, where you see the other ones

    host foo.martian{
        hardware ethernet FF:FF:FF:FF:FF:FF;  # THIS IS THE MAC ADDRESS OF THE DEVICE
        fixed-address 192.168.113.XXX;        # Pick something in the range 240-250
        ddns-hostname "foo";
        }
  • Now restart the DHCP server, and the name server for good measure

    sudo service bind9 restart
    sudo service isc-dhcp-server restart

What if I'm adding a frontend??

  • Add the MAC address of the machine to the martian DHCP server running on fb:

    • Determine the MAC address of the ethernet port that will be connected to the martian network (e.g. /sbin/ifconfig eth0})

    • Modify fb:/etc/dhcp/dhcpd.conf file by adding a new stanza for the machine:

      host newmachine {
        hardware ethernet 00:14:4F:EB:48:40;
        fixed-address 192.168.113.209;
      }
    • Restart the dhcpd server on fb:

      $ sudo /etc/init.d/dhcpd restart
    • On chiara, the way to restart the dhcpd server is:

      $ sudo service isc-dhcp-server restart
  • Add the new machine IP address to the front-end /etc/hosts file in fb:/diskless/root/etc/hosts.

  • Set the new computer to boot remotely in it's BIOS. Remove booting from any other devices (in fact, it's good to remove any media from the machine that it could potentially boot from).
  • Connect the martian ethernet port to the martian network.
  • Connect the DAQ ethernet port to the DAQ network.
  • Add the computer name and it's models to fb:/diskless/root/etc/rtsystab.

    1. See Notes_on_getting_the_CDS_Realtime_Code_Generator_working

    2. You can build the model on any of the front ends

CDS/How_to_join_martian (last edited 2017-07-21 22:17:25 by GautamvenugopalanATligoDOTorg)