質問するログイン新規登録

質問編集履歴

5

ip linkを修正(一度ネットワークを再起動させたため)

2019/07/05 08:31

投稿

urbainleverrier
urbainleverrier

スコア200

title CHANGED
File without changes
body CHANGED
@@ -18,15 +18,15 @@
18
18
  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
19
19
  link/ether <macアドレス> brd ff:ff:ff:ff:ff:ff
20
20
  3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
21
- link/ether fa:16:3e:99:14:b0 brd ff:ff:ff:ff:ff:ff
21
+ link/ether fa:16:3e:9c:7b:f2 brd ff:ff:ff:ff:ff:ff
22
22
  4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
23
- link/ether fa:16:3e:84:ea:32 brd ff:ff:ff:ff:ff:ff
23
+ link/ether fa:16:3e:40:a3:1c brd ff:ff:ff:ff:ff:ff
24
- 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
24
+ 5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
25
- link/ether fa:16:3e:72:8c:42 brd ff:ff:ff:ff:ff:ff
25
+ link/ether fa:16:3e:55:66:05 brd ff:ff:ff:ff:ff:ff
26
26
  6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
27
- link/ether fa:16:3e:4f:87:61 brd ff:ff:ff:ff:ff:ff
27
+ link/ether fa:16:3e:ac:f8:51 brd ff:ff:ff:ff:ff:ff
28
28
  7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
29
- link/ether fa:16:3e:23:15:34 brd ff:ff:ff:ff:ff:ff
29
+ link/ether fa:16:3e:bc:2d:e8 brd ff:ff:ff:ff:ff:ff
30
30
 
31
31
  ```
32
32
 

4

エラー追記

2019/07/05 08:31

投稿

urbainleverrier
urbainleverrier

スコア200

title CHANGED
File without changes
body CHANGED
@@ -69,4 +69,26 @@
69
69
  7月 05 16:18:31 myhost.net systemd-udevd[1455]: could not rename interface '3' from 'eth1' to 'eth3': File exists
70
70
  7月 05 16:18:31 myhost.net systemd-udevd[1461]: Error changing net interface name 'eth3' to 'eth1': File exists
71
71
  7月 05 16:18:31 myhost.net systemd-udevd[1461]: could not rename interface '5' from 'eth3' to 'eth1': File exists
72
+ ```
73
+
74
+ ### 7/5追記
75
+ `/usr/lib/udev/rules.d/60-net.rules`での挙動を確かめるため、`/etc/udev/rules.d/60-net.rules`を作成し、下記のようにしました。
76
+ `KERNELS=="0000:00:05.0"`は`ethtool`を使ってbusのidを取得しました。
77
+ ```
78
+ ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", KERNELS=="0000:00:05.0", NAME="eth1" RUN+="/bin/logger eth1 $attr{address}"
79
+ ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", KERNELS=="0000:00:06.0", NAME="eth2" RUN+="/bin/logger eth2 $attr{address}"
80
+ ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", KERNELS=="0000:00:04.0", NAME="eth3" RUN+="/bin/logger eth3 $attr{address}"
81
+ ```
82
+ ですが、上記エラーと変わりません。
83
+
84
+ ```
85
+ 7月 05 17:23:11 myhost.net systemd-udevd[1449]: Error changing net interface name 'eth2' to 'eth1': File exists
86
+ 7月 05 17:23:11 myhost.net systemd-udevd[1449]: could not rename interface '4' from 'eth2' to 'eth1': File exists
87
+ 7月 05 17:23:11 myhost.net systemd-udevd[1444]: Error changing net interface name 'eth1' to 'eth3': File exists
88
+ 7月 05 17:23:11 myhost.net systemd-udevd[1444]: could not rename interface '3' from 'eth1' to 'eth3': File exists
89
+ 7月 05 17:23:11 myhost.net systemd-udevd[1435]: Error changing net interface name 'eth3' to 'eth2': File exists
90
+ 7月 05 17:23:11 myhost.net systemd-udevd[1435]: could not rename interface '5' from 'eth3' to 'eth2': File exists
91
+ 7月 05 17:23:11 myhost.net root[2135]: eth2 fa:16:3e:55:66:05
92
+ 7月 05 17:23:11 myhost.net root[2117]: eth3 fa:16:3e:9c:7b:f2
93
+ 7月 05 17:23:11 myhost.net root[2115]: eth1 fa:16:3e:40:a3:1c
72
94
  ```

3

修正

2019/07/05 08:27

投稿

urbainleverrier
urbainleverrier

スコア200

title CHANGED
File without changes
body CHANGED
@@ -62,11 +62,11 @@
62
62
  7月 05 13:49:11 myhost.net systemd[1]: Unit network.service entered failed state.
63
63
  7月 05 13:49:11 myhost.net systemd[1]: network.service failed.
64
64
  ```
65
+
66
+ ```
65
67
  root@myhost ~]# journalctl | grep eth1
66
68
  7月 05 16:18:31 myhost.net systemd-udevd[1455]: Error changing net interface name 'eth1' to 'eth3': File exists
67
69
  7月 05 16:18:31 myhost.net systemd-udevd[1455]: could not rename interface '3' from 'eth1' to 'eth3': File exists
68
70
  7月 05 16:18:31 myhost.net systemd-udevd[1461]: Error changing net interface name 'eth3' to 'eth1': File exists
69
71
  7月 05 16:18:31 myhost.net systemd-udevd[1461]: could not rename interface '5' from 'eth3' to 'eth1': File exists
70
- ```
71
-
72
72
  ```

2

ログ追記

2019/07/05 07:34

投稿

urbainleverrier
urbainleverrier

スコア200

title CHANGED
File without changes
body CHANGED
@@ -61,4 +61,12 @@
61
61
  7月 05 13:49:11 myhost.net systemd[1]: Failed to start LSB: Bring up/down networking.
62
62
  7月 05 13:49:11 myhost.net systemd[1]: Unit network.service entered failed state.
63
63
  7月 05 13:49:11 myhost.net systemd[1]: network.service failed.
64
+ ```
65
+ root@myhost ~]# journalctl | grep eth1
66
+ 7月 05 16:18:31 myhost.net systemd-udevd[1455]: Error changing net interface name 'eth1' to 'eth3': File exists
67
+ 7月 05 16:18:31 myhost.net systemd-udevd[1455]: could not rename interface '3' from 'eth1' to 'eth3': File exists
68
+ 7月 05 16:18:31 myhost.net systemd-udevd[1461]: Error changing net interface name 'eth3' to 'eth1': File exists
69
+ 7月 05 16:18:31 myhost.net systemd-udevd[1461]: could not rename interface '5' from 'eth3' to 'eth1': File exists
70
+ ```
71
+
64
72
  ```

1

誤植修正

2019/07/05 07:34

投稿

urbainleverrier
urbainleverrier

スコア200

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,9 @@
1
1
  ### 分からないこと
2
2
  `/etc/sysconfig/network-scripts/ifcfg-eth3`で現在eth4となっているnicをeth3に変更したいと思いました。
3
3
  `ip link`で表示されたeth4のmacaddressを上記ファイルの`HWADDR=`の部分に書いたのですが、`journalctl -u network`には
4
+ ````
4
- `[/etc/sysconfig/network-scripts/ifup-eth] Device eth3 has different MAC address than expected, ignoring.`
5
+ [/etc/sysconfig/network-scripts/ifup-eth] Device eth3 has different MAC address than expected, ignoring.
6
+ ```
5
7
  と出て、eth3が起動できません。
6
8
 
7
9
  ### 実現したいこと
@@ -44,7 +46,7 @@
44
46
  ```
45
47
 
46
48
  ```
47
- root@myhost ~]# journalctl -u network
49
+ [root@myhost ~]# journalctl -u network
48
50
  -- Logs begin at 金 2019-07-05 13:48:49 JST, end at 金 2019-07-05 14:04:12 JST. --
49
51
  7月 05 13:48:51 myhost.net systemd[1]: Starting LSB: Bring up/down networking...
50
52
  7月 05 13:48:52 myhost.net network[2298]: Bringing up loopback interface: [ OK ]