[softegr@lcls-srv01 ~]$ chg-DHCP
###############################################################
- This script is only to be used in case of emergency -
and you cannot get in touch with Ken x2558, and Jingchen x4661
################################################################
This script will allow the user to change the MAC address in the DHCP file
Who are you? (ex: brobeck) (UNIX ID)-> brobeck
Why are you making this MAC change? -> changing MAC of sunray70
Please enter the hostname -> sunray70
Enter the new MAC address: (xx:xx:xx:xx:xx:xx):-> 00:21:28:90:1C:BE
DHCP file has been created.
Waiting on DHCP server to read file
This can take up to 30 seconds
Please be patient...
Waiting..................
BEFORE:
host sunray70
{
fixed-address 172.27.24.80;
hardware ethernet 00:21:28:90:1C:BF;
}
AFTER:
host sunray70
{
fixed-address 172.27.24.80;
hardware ethernet 00:21:28:90:1C:BE;
}
-------------------------------
Syntax: OK -restarting DHCP server
mccsrv01 DHCP server has restarted successfully
Copying DHCP file to mccsrv02
Restarting DHCP server on mccsrv02
mccsrv02 DHCP server has restarted successfully
------ Change file below -------
brobeck
changing MAC of sunray70
sunray70
00:21:28:90:1C:BE
|