displaying all network interface card in linux.
hello all,
i am new to redhat linux,how do i list all newly added network interface card.can someone kindly help me with this? |
Hello fredie barron, welcome to LQ,
Code:
lspci | grep -i ethernet Markus |
i think -- ifconfig -a will do the job as well.
|
Quote:
Markus |
Quote:
|
Quote:
Code:
samsung:~# ifconfig Code:
samsung:~# lspci | grep -i ethernet Markus |
The OP wanted to see the network interfaces, not the (PCI) network devices. Admittedly both commands are useful though, in order to match devices <-> interfaces ;)
And 'ifconfig' shows all network interfaces - but only with the '-a' option. Other than that, AFAIK both 'lspci' and 'ifconfig' commands are distribution-agnostics. |
markhush,
it seems you did only ifconfig and not ifconfig -a. try ifconfig -a-- this will show all the NIC's. In fact both the commands will work for this thread. |
Well :doh:,
I've to say sorry, you're both right, I didn't think about the "-a" option. Thanks for correcting me. Markus |
thaks very much markush lspci | grep -i ethernet work find for me.
|
All times are GMT -5. The time now is 05:05 AM. |