2012年6月4日月曜日

brctlでブリッジインターフェイスを作成

KVMを使うときに必要になったブリッジインターフェイスの設定メモ コマンドでは以下のようにやればO
 brctl addbr br0
 brctl addif br0 eth0
/etc/network/interfaces
auto lo br0
iface lo inet loopback

allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.1

iface br0 inet static
bridge_ports eth0
address 192.168.0.40
netmask 255.255.255.0
gateway 192.168.0.1
参考リンク
brctl でLinuxマシンをHUBにする - いますぐ実践! Linuxシステム管理 第2回 KVMの導入と基本的な使い方

0 件のコメント: