How to change IP address for SNS/LNS


To change master IP

192.168.11.XXX to 192.168.11.YYY

  1. Change IP address in the following files:
    • /etc/hosts
    • /diskless/root/etc/hosts
    • /diskless/pxelicux.cfg/default
    • /etc/conf.d/net
    • /etc/dhcp/dhcpd.conf
  2. Reboot master PC and check IP address has changed using /sbin/ifconfig, then reboot slave PCs.

192.168.XXX to 192.168.11.YYY

  1. Change IP address in the following files:
    • /etc/hosts
    • /diskless/root/etc/hosts
    • /diskless/pxelicux.cfg/default
    • /etc/xinetd.d/chnconf
    • /etc/dhcp/dhcpd.conf
    • /etc/bash/bashrc
    • /etc/resolv.conf
  2. Reboot master PC and check IP address has changed using /sbin/ifconfig, then reboot slave PCs.


To change slave IP

192.168.11.XXX to 192.168.11.YYY

  1. Change IP address in the following files:
    • /etc/hosts
    • /diskless/root/etc/hosts
    • /etc/dhcp/dhcpd.conf
  2. Restart dhcpd on master:

    >sudo /etc/init.d/dhcpd restart
    , then reboot slave PC, and check IP address was changed by /sbin/ifconfig.

192.168.XXX to 192.168.YYY

  1. Change IP address in the following files:
    • /etc/hosts
    • /diskless/root/etc/hosts
    • /etc/dhcp/dhcpd.conf
    • /diskless/root/etc/rc.local : DAQIP
    • /diskless/root/etc/resolv.conf
  2. Restart dhcpd on master:

    >sudo /etc/init.d/dhcpd restart
    , then reboot slave PC, and check IP address was changed by /sbin/ifconfig.


To change workstation IP

  1. if you see eth2 or eth3 by ifconfig, modify /etc/udev/rules.d/70-persistent-net.rules to have eth0 and eth1.
    • Reboot the workstation.
  2. Change IP address in the following files:
    • /etc/network/interfaces
    • /etc/hosts
  3. Restart network:

    >sudo /etc/inet.d/networking restart
    or just reboot the workstation.


If you change hostname of NFS server or NDS

KAGRA/Subgroups/DGS/RTPC/SNS/ChangeIP (last edited 2013-12-04 09:22:25 by OsamuMiyakawa)