ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Roman Lesnichenko <sysadmins@avangard.dn.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] mac -- kernel module
Date: Tue, 13 Jul 2010 19:27:08 +0300
Message-ID: <4C3C93DC.3050904@avangard.dn.ua> (raw)
In-Reply-To: <4C3C9214.7010306@tangramltd.com>

13.07.2010 19:19, Slava Dubrovskiy пишет:
> 13.07.2010 18:03, Terechkov Evgenii пишет:
>> On Tue, 13 Jul 2010 17:45:43 +0300, Andrii Dobrovol`s`kii<dobr@iop.kiev.ua>  wrote:
>>
>>
>>> А с помощью чего можно определить какой сетевой интерфейс какой
>>> модуль использует? Т.е. соответствие мак-->модуль ядра. На
>>> работающей системе.
>>>
>> ethtool -i не пойдёт?
>>
> еще обычно хватает dmesg | grep eth
> Например
> # dmesg | grep eth
> [   74.490125] e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network
> Connection
> [   74.801629] e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network
> Connection
> [   80.484145] e1000: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow
> Control: RX
Гм, оно если самому смотреть - может и хватает. А если для скрипта 
какого...сомневаюсь. Отслеживать переименования как-то нужно например.
Вот пример:
[root@romkahome Documents]# dmesg | grep eth
[    7.453250] eth0: RealTek RTL8139 at 0xf811c800, 00:e0:4c:62:12:97, 
IRQ 23
[    7.535156] udev: renamed network interface eth0 to eth1
[    7.725417] eth0: RTL8168b/8111b at 0xf8244000, 00:1d:60:fc:07:c9, 
XID 18000000 IRQ 28

И это все при том, что:

[root@romkahome Documents]# ifconfig
home      Link encap:Ethernet  HWaddr 00:1D:60:FC:07:C9
           inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:74142 errors:0 dropped:0 overruns:0 frame:0
           TX packets:55575 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:81097172 (77.3 MiB)  TX bytes:4761343 (4.5 MiB)
           Interrupt:28 Base address:0x4000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:4153 errors:0 dropped:0 overruns:0 frame:0
           TX packets:4153 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:337996 (330.0 KiB)  TX bytes:337996 (330.0 KiB)


-- 
With best wishes, Roman.


      reply	other threads:[~2010-07-13 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 14:45 Andrii Dobrovol`s`kii
2010-07-13 15:03 ` Terechkov Evgenii
2010-07-13 15:12   ` Andrii Dobrovol`s`kii
2010-07-13 16:19   ` Slava Dubrovskiy
2010-07-13 16:27     ` Roman Lesnichenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C3C93DC.3050904@avangard.dn.ua \
    --to=sysadmins@avangard.dn.ua \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git