首页 > 系统相关 >Ubuntu下实现eth0与wlan0完美桥接

Ubuntu下实现eth0与wlan0完美桥接

时间:2023-02-16 10:14:03浏览次数:51  
标签:桥接 sudo br0 brctl 网桥 wlan0 Ubuntu eth0

操作系统Ubuntu14.04LTS

1.搭载网桥模块

sudo apt-get install bridge-utils安装软件包

modprobe bridge//网上参考步骤,加载网桥模块,实际未用

cho "1">/proc/sys/net/ipv4/ip_forward//网上参考步骤,开启Ip转发功能(默认启用)

sudo brctl addbr br0 //建立网桥连接

sudo brctl addif br0 eth0//添加端口

sudo brctl addif br0 wlan0 //添加端口

ifconfig br0 xxx.xx.xx.xx//设置连接信息

ifconfig br0 up/down //连接开启或关闭

brctl show//显示网桥信息

brctl delif br0//删除网桥

标签:桥接,sudo,br0,brctl,网桥,wlan0,Ubuntu,eth0
From: https://www.cnblogs.com/kn-zheng/p/17125706.html

相关文章

  • Ubuntu安装EVO
    Ubuntu18.04安装EVO:(推荐使用源码安装方式)https://blog.csdn.net/weixin_68647501/article/details/128858007EVO的简单使用:用来简单了解EVO的使用——https://blog.csd......
  • ubuntu 安装 nginx
    1.在线安装nginxsudoaptupdatesudoapt-yinstallnginx2.检查是否安装成功nginx-v3.安装之后的文件结构#所有的配置文件/etc/nginx#虚拟主机/etc/nginx/......
  • ubuntu 安装 tomcat
    1.准备tomcat文件/home/apache-tomcat-9.0.71.zip2.解压tomcat文件sudounzip/home/apache-tomcat-9.0.71.zip3.tomcat放到指定目录sudomv/home/apache-tomcat-9......
  • How to setup a Chia Harvester on Ubuntu
    HowtosetupaChiaHarvesteronUbuntuPostedon May4,2021AChiaHarvestisacomputerthatfarmsChiaandconnectsbacktoaMasterNode.Youcanalmost......
  • Install Chia Blockchain on Ubuntu
    InstallChiaBlockchainonUbuntuPostedon May4,2021ChiaisanewkindaofCryptoCurrencythatinsteadofusingPoW(ProofofWork)itusesProofofSpa......
  • virtualBox Ubuntu挂载共享文件夹失败,手动mount -t vboxsf 失败 sbin/mount.vboxsf: m
    Windows使用virtualBox安装了Ubuntu虚拟机,更新过后,其他的共享文件夹,挂载出现了问题:就是挂载的目录和宿主源目录不同步了。  使用mount-tvboxsf命令手动挂载报错:sbi......
  • Ubuntu下deb包的安装方法
    deb是debianlinus的安装格式,跟redhat的rpm非常相似,最基本的安装命令是:dpkg-ifile.debdpkg是DebianPackage的简写,是为Debian专门开发的套件管......
  • ubuntu制作U盘系统启动盘
    作U盘系统启动盘,Ubuntu下有个图形界面工具StartupDiskCreator[img]http://dl2.iteye.com/upload/attachment/0127/5011/a9ea38a0-c212-3651-a055-e......
  • OpenHarmony编译固件新增支持Ubuntu22.04平台
    现在OpenHarmonymaster最新分支可以在Ubuntu22.04上编译了,之前只支持在Ubuntu20.04和18.04上编译。最近发布的Beta5以及之前的版本还不支持,需要修改源码解除ubuntu22.04......
  • Ubuntu20.04开启VNC远程服务设置教程
    对于使用过PVE的大佬来说,在自己电脑安装虚拟机打开的画面惨不忍睹,其实它只是用错了地方。 今天给大家介绍一款控制工具,它叫VNC,是用来进行远程连接的非常好用的工具可......