Raspberry PiでSoftether Bridge

使うのはEABI 32bit版

基本は
http://blog.starstonesoft.com/?p=555

https://qiita.com/kumasun/items/6fd9ddafc8ea6278f088

でOK。
ただし、接続されるだけなので、eth0をtapとブリッジする必要あり。

/etc/network/interfaces で eth0 とtapを bridgeする

auto br0
iface br0 inet manual
        bridge_ports eth0 tap


/etc/dhcpcd.conf で固定ipアドレスを付与

denyinterfaces eth0
interface br0
static ip_address=192.168.x.x/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.x.x
static domain_name_servers=192.168.x.x

とする。
ルーティングを追加する

sudo route add -net 172.16.0.0 netmask 255.255.255.0 gw 192.168.y.y
sudo route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.y.y

192.168.y.y はサーバーで作成した仮想NIC
ただし。静的ルーティングの追加がわからなくなったのでwebminで追加


で再起動

ルーターの静的ルーティングも忘れずに設定

コメント

このブログの人気の投稿

Windows10デフォルトゲートウェアに0.0.0.0が追加される

iOS VLC でSMB共有できなかった点について

無線LANルータの選択肢が、NEC Aterm 静的ルーティングできない問題