Quote:
Originally Posted by raheelch
Hi Everyone,
I am not a programmer I am running a squid server in my organization My squid server is arp based I mean we control all traffic through arp with /etc/ethers file in which we have to add mac address with ip to enable valid users to do surfing. Is it possible through shell programming to add mac address and ip address in /etc/ethers file withoug opening it. kindly HELP me.
|
You cannot modify a file without opening it. But you can add a line to it by
Code:
echo 00:00:00:00:00:00 10.0.0.1 >> /etc/ethers
Or what do you exactly mean by "adding a mac address and ip address in /etc/ethers without opening it"?