0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

NetworkManagerでvlanのMTU値が変更できない

Posted at

事象

下記の様にvlanを設定してip addressで確認してもMTUの値が9000とならない。

$ nmcli con add type ethernet ifname enp1s0 con-name enp1s0
$ nmcli con add type vlan ifname enp1s0.1 con-name $ enp1s0.1 dev enp1s0 id 1
$ nmcli con mod enp1s0.1 ipv4.method manual ipv4.addresses 192.168.1.1/24
$ nmcli con mod enp1s0.1 802-3-ethernet.mtu 9000

原因

vlanのMTU最大値は実体となるデバイスに依存し、親デバイス以上のMTUには設定できない。通常はデバイスのMTUはデフォルトの1500に設定されているため、親デバイスの値を変更しない限り子デバイスに1500以上の値を設定できない。

$ nmcli dev show enp1s0
GENERAL.デバイス:                       enp1s0
:
GENERAL.MTU:                            1500
:

対処

親デバイスのMTUを9000にする子デバイスのMTUを9000にする。

$ nmcli con down enp1s0
$ nmcli con mod enp1s0 802-3-ethernet.mtu 9000
$ nmcli con up enp1s0
$ nmcli dev show enp1s0
:
GENERAL.MTU:                            9000
:
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?