2007年6月19日火曜日

Solaris 9で、ネットワークインターフェイス名を知りたい

KEYWORD:Solaris,/etc/hostname.,ネットワークインターフェイス
新規でインストールする時、ネットワークを設定しないと、/etc/hostname.ネットワークインターフェイス名ファイルが作成されないため、ネットワークインターフェイス名がわからない。

  • blade1000の場合
root@blade1000:/: dmesg | grep -i Ether
Jun 19 06:31:19 blade1000 genunix: [ID 678236 kern.info] Ethernet address = 0:3:ba:2:a5:72
root@blade1000:/: dmesg | grep -i Net
Jun 18 06:48:27 blade1000 pcisch: [ID 370704 kern.info] PCI-device: network@5,1, eri0
Jun 18 06:48:27 blade1000 genunix: [ID 936769 kern.info] eri0 is /pci@8,700000/network@5,1
Jun 19 06:31:19 blade1000 genunix: [ID 678236 kern.info] Ethernet address = 0:3:ba:2:a5:72
Jun 19 06:31:28 blade1000 pcisch: [ID 370704 kern.info] PCI-device: network@5,1, eri0
Jun 19 06:31:28 blade1000 genunix: [ID 936769 kern.info] eri0 is /pci@8,700000/network@5,1
root@blade1000:/:
root@blade1000:/:
root@blade1000:/: LANG=C ls -l /etc/hostname.eri0
-rw-r--r-- 1 root root 10 May 26 00:42 /etc/hostname.eri0
root@blade1000:/:
  • Ultra60の場合
su indou@Ultra60:~: su -
Password:
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
# dmesg | grep Ether
Jun 16 17:28:22 Ultra60 hme: [ID 786680 kern.notice] SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Jun 16 17:31:05 Ultra60 genunix: [ID 678236 kern.info] Ethernet address = 8:0:20:9b:cb:de
Jun 19 06:32:09 Ultra60 genunix: [ID 678236 kern.info] Ethernet address = 8:0:20:9b:cb:de
Jun 19 06:32:26 Ultra60 hme: [ID 786680 kern.notice] SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Jun 19 06:32:37 Ultra60 hme: [ID 786680 kern.notice] SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Jun 19 06:32:48 Ultra60 hme: [ID 786680 kern.notice] SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
# dmesg | grep Net
#
# LANG=C ls -l /etc/hostname.hme0
-rw-r--r-- 1 root root 8 Jun 8 23:52 /etc/hostname.hme0
#

  • T21(Think Pad T21)の場合
root@T21:/: dmesg | grep -i net
Jun 17 12:24:09 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
Jun 18 05:20:46 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
Jun 19 06:26:33 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
root@T21:/: dmesg | grep -i ether
Jun 17 12:24:09 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
Jun 17 12:24:09 T21 gld: [ID 944156 kern.info] iprb0: Intel 82558/82559 Ver 0.010.6 Driver: type "ether" mac address 00:03:47:0f:f0:64
Jun 18 05:20:46 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
Jun 18 05:20:46 T21 gld: [ID 944156 kern.info] iprb0: Intel 82558/82559 Ver 0.010.6 Driver: type "ether" mac address 00:03:47:0f:f0:64
Jun 19 06:26:33 T21 genunix: [ID 678236 kern.info] Ethernet address = 0:3:47:f:f0:64
Jun 19 06:26:33 T21 gld: [ID 944156 kern.info] iprb0: Intel 82558/82559 Ver 0.010.6 Driver: type "ether" mac address 00:03:47:0f:f0:64
root@T21:/:root@T21:/: LANG=C ls -l /etc/hostname.iprb0
-rw-r--r-- 1 root root 4 Jun 2 13:58 /etc/hostname.iprb0
root@T21:/:

  • sol9(VMWare 5.5.4 build-44386)
# dmesg | grep -i Net
Jun 19 06:52:57 sol9 genunix: [ID 678236 kern.info] Ethernet address = 0:c:29:4f:5b:e
Jun 19 06:52:57 sol9 gld: [ID 944156 kern.info] pcn0: PC-Net (Generic): type "ether" mac address 00:0c:29:4f:5b:0e
# dmesg | grep -i Ether
Jun 19 06:52:57 sol9 genunix: [ID 678236 kern.info] Ethernet address = 0:c:29:4f:5b:e
Jun 19 06:52:57 sol9 gld: [ID 944156 kern.info] pcn0: PC-Net (Generic): type "ether" mac address 00:0c:29:4f:5b:0e
# LANG=C ls -l /etc/hostname.pcn0
-rw-r--r-- 1 root root 5 Jun 4 01:55 /etc/hostname.pcn0
#

  • V125

#
# dmesg | grep Eth
Jun 18 18:38:46 V125 genunix: [ID 678236 kern.info] Ethernet address = 0:14:4f:65:6b:52
Jun 18 18:39:11 V125 gld: [ID 944156 kern.info] bge0: Broadcom Gb Ethernet v0.52: type "ether" mac address
00:14:4f:65:6b:52
Jun 18 18:39:12 V125 gld: [ID 944156 kern.info] bge1: Broadcom Gb Ethernet v0.52: type "ether" mac address
00:14:4f:65:6b:53
#

0 件のコメント: