0
0

More than 3 years have passed since last update.

Openwrtでvethを使う

Last updated at Posted at 2019-11-15

OpenWrt でのvethのサポート

OpenWrt 18.06ではvethのサポートが追加されている
OpenWrt 18.06.0 - First Stable Release - July 2018

Package

以下のパッケージが必要になる

  • kmod-veth

Config

以下のように書くことによって利用できる

/etc/config/network
config device
        option type 'veth'
        option name 'veth0'
        option peer_name 'veth0-peer'

このほかにもオプションとして

  • macaddr
  • peer_macaddr

が指定できる(veth.c)

ここで設定したデバイスをinterfaceとして指定することによってデバイスが現れる

config:/etc/config/network
config interface 'veth0'
option ifname 'veth0'
option proto 'dhcp'

再起動すると現れた

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