wiki:TipAndDoc/network/bridge

Version 4 (modified by mitty, 11 years ago) (diff)

--

Network Bridge

  • KVMでブリッジ接続 - チラシの裏
  • CentOS/KVMによるサーバ仮想化 - OSSでLinuxサーバ構築
    net.bridge.bridge-nf-call-arptables = 0
    net.bridge.bridge-nf-call-iptables = 0
    net.bridge.bridge-nf-call-ip6tables = 0
    
    • 一番下はIPv6を通す場合にのみ必要
  • libvirt: Wiki: Networking

    To ensure that the bridge sysctl settings get loaded on boot, add this line to '/etc/rc.local' just before the 'exit 0' line. This is a work around for Ubuntu bug #50093.

     /sbin/sysctl -p /etc/sysctl.conf
    
    • 実際、/etc/sysctl.d/network.confなどに「net.bridge.bridge-nf-call-iptables = 0」等々設定しても、再起動すると「cat /proc/sys/net/bridge/bridge-nf-call-iptables => 1」となっていたりする(きちんと0になる場合もある)。従って、上記の様にrc.localに記述するか、ufwを使っている場合は「-A ufw-before-forward -i br0 -j ACCEPT」をあわせて設定するなどする必要がある
    • これを失念していていると、ブリッジは正しく行われているにも拘わらず疎通出来ずに混乱することがあるので注意