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?

More than 5 years have passed since last update.

Infiniband の P_Key を /etc/network/interfaces で指定する方法

Last updated at Posted at 2018-08-09

以下の定義で動きました。
pre-upで親ポート(ib0)にサブインターフェイスを追加しています。

/etc/network/interfaces
auto ib0.8001
iface ib0.8001 inet static
	address 1.2.3.4/24
	pre-up    echo 0x8001    > /sys/class/net/ib0/create_child
	post-up   echo connected > /sys/class/net/$IFACE/mode
	post-up   ip link set $IFACE mtu 65520
	post-down echo 0x8001    > /sys/class/net/ib0/delete_child
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?