1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OS起動時、eth0とeth1が入れ替わる件の対処

Last updated at Posted at 2013-08-12

macアドレス確認

$ ifconfig |grep eth
eth0      Link encap:イーサネット  ハードウェアアドレス 6c:62:6d:6c:07:fd  
eth1      Link encap:イーサネット  ハードウェアアドレス 00:0e:0c:80:b3:c1

LANケーブルを抜き差ししてethの番号を確認

$ dmesg -T | tail
[火  8月 13 02:30:48 2013] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Down
[火  8月 13 02:30:50 2013] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>

MACアドレスに対するインターフェース名を指定

/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="6c:62:6d:6c:07:fd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:0c:80:b3:c1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

OS再起動後、反映されます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?