2
2

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.

interfacesでveth

Last updated at Posted at 2014-04-30

Ubuntu(debian) の /etc/network/interfaces で veth ってどうやって作ったらいいものやらと思っていたら、こんな感じでいける様子。man interfacesless /usr/share/doc/ifupdown/examples/network-interfaces.gz を読んでいくうちに、思い至った。

/etc/network/interfaces
auto veth0
iface veth0 inet manual
    pre-up ip link add veth0 type veth peer name veth0p
    post-down ip link del veth0

bridge-utils 入れて bridge_ports を使って上記の veth0 を組み込んでやることもできた。

/etc/network/interfaces
auto br0 br1
iface br0 inet manual
    bridge_ports veth0
iface br1 inet manual
    bridge_ports veth0p
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?