On Tue, 20 Mar 2012 18:37:09 -0600, Bob Proulx wrote: > Camaleón wrote: >> Bijoy Lobo wrote: >> > I have 2 cards on my system. I had no errors while Expert Install of >> > Debian netinstall. even lspci shows me 2 ethernet controllers, >> > However I cannot bring the 2nd interface up. >> >> Show us the output of these two commands: >> >> lspci -v | grep -i ether > > Ahem... 'lspci | grep -i eth' is good but 'lspci -v' is paragraph > formatted and so finding that with grep is more trouble. You need a > "paragraph grep" of which there are many different programs and > techniques. Perl is always available these days so perhaps using perl > is easiest. > > lspci -v | perl -00 -ne 'm/eth/i && print' > > The extra -v information isn't usually useful though. YMMV.
(...) Let's try out both: sm01@stt008:~$ lspci -v | grep -i ether 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 11:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet sm01@stt008:~$ lspci -v | perl -00 -ne 'm/eth/i && print' 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) Subsystem: Super Micro Computer Inc Device 10bd Flags: bus master, fast devsel, latency 0, IRQ 1276 Memory at dc600000 (32-bit, non-prefetchable) [size=128K] Memory at dc625000 (32-bit, non-prefetchable) [size=4K] I/O ports at 1820 [size=32] Capabilities: <access denied> Kernel driver in use: e1000e Kernel modules: e1000e 11:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 20 I/O ports at 2000 [size=256] Memory at dc300000 (32-bit, non-prefetchable) [size=256] [virtual] Expansion ROM at dc400000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: r8169 Kernel modules: r8169 Nah, yours is too verbose for this matter ;-). Indeed, the extra information (-v) can be omited as we just wanted to know what card it was. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jkcr86$lch$4...@dough.gmane.org