Size: 830
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. ==== 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 * Reboot master PC and check IP address has changed using /sbin/ifconfig, then reboot slave PCs. |
Line 11: | Line 37: |
== to change master IP == * /etc/hosts |
== To change slave IP == |
Line 14: | Line 39: |
==== 192.168.11.XXX to 192.168.11.YYY ==== | |
Line 15: | Line 41: |
== to change slave IP == ==== 192.168.XXX ==== * /diskless/root/etc/hosts * /etc/dhcp/dhcpd 1. {{{ |
1. Change IP address in the following files: * /etc/hosts * /diskless/root/etc/hosts * /etc/dhcp/dhcpd.conf * Restart dhcpd on master: {{{ |
Line 23: | Line 49: |
==== 192.168.XXX ==== * /diskless/root/etc/rc.local : DAQIP * /diskless/root/etc/resolv.conf |
==== 192.168.XXX to 192.168.YYY ==== |
Line 27: | Line 51: |
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 |
|
Line 28: | Line 58: |
== Workstation == * if you see eth2 or eth3 by ifconfig, modify /etc/udev/rules.d/70-persistent-net.rules to have eth0 and eth1. |
* Restart dhcpd on master: {{{ >sudo /etc/init.d/dhcpd restart }}}, then reboot slave PC, and check IP address was changed by /sbin/ifconfig. |
Line 31: | Line 62: |
==== Files ==== * /etc/network/interfaces * /etc/hosts * /etc/fstab * /home/controls/.cshrc : LIGONDSIP |
---- == 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
- 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.
192.168.XXX to 192.168.11.YYY
- 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
- 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
- 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
- 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