Quote:
Originally Posted by CraigAaron
hey all, i was wondering if you could have a look at my script and help me add a few things to it,
1. how do i get it to find how many active ethernet ports i have? and how do i filter more than 1 ethernet port
2. how i get this to do a range of IP address?
|
I first like to run simple commands then try narrow it down to my needs. Your first question is finding active internet ports:
$/sbin/ifconfig
$man ifconfig <- useful for find out correct syntax to use
Your second question is how to get a range of IP Address. This is one is tricky because if you just want to know the ports ip address, then we use the command above with a pipe | and grep.
$/sbin/ifconfig | grep inet
Let me know if this is what your looking for.