#!/bin/bash
while :; do
for mac in `cat /usr/local/bin/mac.txt`
do
/usr/bin/pkill -9 dhclient
/sbin/ifconfig eth1 hw ether $mac
/sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-eth1.leases -pf /var/run/dhclient-eth1.pid eth1
sleep 600
done
done
'IT-Consultant' 카테고리의 다른 글
ElasticSearch need 1g memory by 50 million docs. (0) | 2011.06.03 |
---|---|
Hadoop에서 특정 Datanode만 재시작하는 방법 (0) | 2011.06.02 |
특정 프로그램을 숨기고 싶다면 이렇게 해보세요. (0) | 2011.06.01 |
HTTP 통신시 텍스트 데이터 압축에 대하여 (0) | 2011.04.04 |
Apache 쓰레드 처리 방식 확인 (0) | 2011.04.04 |