概述
1. sudo apt-get install bridge-utils
2. brctl --help
Usage: brctl [commands]
commands:
addbr add bridge
delbr delete bridge
addif add interface to bridge
delif delete interface from bridge
hairpin {on|off} turn hairpin on/off
setageing set ageing time
setbridgeprio set bridge priority
setfd set bridge forward delay
sethello set hello time
setmaxage set max message age
setpathcost set path cost
setportprio set port priority
show [ ] show a list of bridges
showmacs show a list of mac addrs
showstp show bridge stp info
stp {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 网桥的配置与实现
最后
以上就是和谐流沙为你收集整理的linux修改网桥信息,Linux网桥设置的全部内容,希望文章能够帮你解决linux修改网桥信息,Linux网桥设置所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复