Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2013-03-05 14:37:51
Size: 455
Comment:
Revision 12 as of 2013-12-04 09:22:25
Size: 2217
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= How to change IP address for SNS = = How to change IP address for SNS/LNS =
Line 6: Line 6:
 * {{{
>sudo /etc/inet.d/networking restart
}}} restart network setting without reboot.

-----
== 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

 * Reboot master PC and check IP address has changed using /sbin/ifconfig, then reboot slave PCs.
Line 11: Line 22:
== Workstation ==
 * if you see eth2 or eth3 by ifconfig, modify /etc/udev/rules.d/70-persistent-net.rules to have eth0 and eth1.
==== 192.168.XXX to 192.168.11.YYY ====
Line 14: Line 24:
==== Files ====
 * /etc/network/interfaces
 * /etc/hosts
 * /etc/fstab
 * /home/controls/.cshrc : LIGONDSIP
 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

 * 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
 * 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

 * 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.

 * Change IP address in the following files:
  * /etc/network/interfaces
  * /etc/hosts

 * Restart network: {{{
>sudo /etc/inet.d/networking restart
}}} or just reboot the workstation.

----
==== If you change hostname of NFS server or NDS ====

 * Change IP address and host name in the following files:
  * /etc/hosts
  * /diskless/root/etc/hosts
  * /etc/dhcp/dhcpd.conf
  * /etc/fstab
  * /home/controls/.cshrc : LIGONDSIP

How to change IP address for SNS/LNS

  • >grep -r 192.168.11 /etc/*
    may help to dig setting files.


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

  • Change IP address and host name in the following files:
    • /etc/hosts
    • /diskless/root/etc/hosts
    • /etc/dhcp/dhcpd.conf
    • /etc/fstab
    • /home/controls/.cshrc : LIGONDSIP

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