I guess this will help you if you will be using dynamic ip address and if it
uses eth0.

ifconfig | grep -A 4 eth0 | awk '/inet/ { print $2 } ' | sed -e s/addr://

You can use this command with ipchains scripts.  Store the output in a
variable.

Ano nga pala ang interface na created kapag cable modem ang setup?

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to