標籤:
1. sudo apt-get install bridge-utils 2. brctl --helpUsage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge hairpin <bridge> <port> {on|off} turn hairpin on/off setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show [ <bridge> ] show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off 3. 建立橋接器brctl addbr newbr 4. 將物理網卡1劃入橋接器bectl addif newbr eth1 5. 取消物理網卡1的IP資訊ifconfig eth1 0.0.0.0 6. 分配IP地址給橋接器ifconfig newbr 3.242.164.147
Linux橋接器設定