Re: finding IP address of ethernet card
A long time ago, in a galaxy far, far way, someone said...
> How would a user find out the IP address assigned to eth0. This is a
> normal user, not a sys-op, so he doesn't have access to ifconfig.
Even a normal user can run ifconfig; the normal user just can't change
anything with ifconfig.
Run this as a normal user:
'/sbin/ifconfig eth0'
You'll get something like this:
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
inet addr:192.168.0.1 Bcast:147.134.27.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14255398 errors:0 dropped:0 overruns:0 frame:0
TX packets:6075619 errors:1 dropped:0 overruns:0 carrier:2
collisions:1617618 txqueuelen:100
Interrupt:11 Base address:0xb400
--
----------------------------------------------------------------------
Phil Brutsche pbrutsch@creighton.edu
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein
Reply to: