info:dhcpsend

dhcpsend: a script to send DHCP ip to a server

#a script to send DHCP ip to a server
ifconfig | grep inet | grep 129 | sed 's|Bcast.*||g' | sed 's|.*:||g' | sed 's|  *||g' > /tmp/ip
dinip=`cat /tmp/ip`
echo $dinip
scp /tmp/ip username@server:path
cd ~
cp bashrc.tpl .bashrc
sed -i "s/fixedipdemo/$dinip/g" .bashrc
  • info/dhcpsend.txt
  • Dernière modification : 2018/07/18 09:45
  • de radeff