Ubuntu 双网卡桥接brctl

本文介绍了如何在Ubuntu系统中进行双网卡桥接配置,包括安装brctl-utils工具,设置网卡桥接模式,并通过brctl show检查配置状态,最后重启网络以应用更改。
摘要由CSDN通过智能技术生成
1. 安装brctl-utils
# apt-get install bridge-utils   //安装配置brctl命令包
2. 配置网卡桥接模式
# brctl addbr br-test       
# brctl addif br-test eth1
# brctl addif br-test eth2
# ifconfig eth1 up
# Ifconfig eth2 up

配置完毕:brctl show

ubuntu@ubuntu:~$ brctl show
bridge name bridge id       STP enabled interfaces
br-test     8000.524b151222cd   no      eth1
                            eth2
3. 重启网络
sudo /etc/init.d/networking restart
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值