Differences between revisions 11 and 12
Revision 11 as of 2013-03-06 15:45:26
Size: 1384
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 11: Line 11:
 * /etc/hosts
 * /diskless/root/etc/hosts
 * /diskless/pxelicux.cfg/default
 * /etc/conf.d/net
 * /etc/dhcp/dhcpd.conf
  1. {{{
>sudo /etc/init.d/dhcpd restart
}}}, then reboot slave PC, and check IP address was changed by /sbin/ifconfig.

 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 22: Line 23:
 * /etc/bash/bashrc
 * /etc/resolv.conf
 * /etc/xinetd.d/chnconf
Line 26: Line 24:
 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.
Line 32: Line 40:
 * /etc/hosts
 * /diskless/root/etc/hosts
 * /etc/dhcp/dhcpd.conf
  1. {{{

 1. Change IP address in the following files:
 
* /etc/hosts
  * /diskless/root/etc/hosts
  * /etc/dhcp/dhcpd.conf
 * Restart dhcpd on master: {{{
Line 39: Line 49:
==== 192.168.XXX to 192.168.11.YYY ====
 * /diskless/root/etc/rc.local : DAQIP
 * /diskless/root/etc/resolv.conf
==== 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.
Line 45: Line 64:
 * if you see eth2 or eth3 by ifconfig, modify /etc/udev/rules.d/70-persistent-net.rules to have eth0 and eth1.
 * {{{
 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:
{{{
Line 48: Line 73:
}}} restart network setting without reboot. }}} or just reboot the workstation.
Line 50: Line 75:
----
==== If you change hostname of NFS server or NDS ====
Line 51: Line 78:

====
To change IP address ====
 * /etc/network/interfaces
* /etc/hosts

====
If you change hostname of NFS server or NDS ====
* /etc/fstab
 * /home/controls/.cshrc : LIGONDSIP
 * Change IP address and host name in the following files:
  * /etc/hosts
  * /diskless/root/etc/hosts
  * /etc/dhcp/dhcpd.co
nf
* /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)