6. 仮想リンクの設定
▐ 仮想リンク
Linux の Virtual ethernet device を使用
▐ trema 上から仮想リンクを設定するコード
https://raw.github.com/trema/trema/develop/ruby/trema/link.rb
sudo ip link add name trema0-0 type veth peer name trema0-1
Page 6
12. 仮想リンクの設定
▐ ip link add name link0-1 type veth peer name link1-0
▐ ip link add name link1-1 type veth peer name link2-0
▐ ip link add name link2-1 type veth peer name link0-0
▐ ifconfig link0-0 up
▐ ifconfig link0-1 up
▐ ifconfig link1-0 up
▐ ifconfig link1-1 up
▐ ifconfig link2-0 up
▐ ifconfig link2-1 up
Page 12