Ubuntu配置br0
来源:互联网 发布:linux x86 x64区别 编辑:程序博客网 时间:2024/05/20 14:16
Creating a network bridge on the host
Install the bridge-utils package:
sudo apt-get install bridge-utils
We are going to change the network configuration1. To do it properly, you should first stop networking2:
sudo invoke-rc.d networking stop
If you are on a remote connection, and so cannot stop networking, go ahead with the following commands, and use sudo invoke-rc.d networking restart at the end. If you make a mistake, though, it won't come back up.
To set up a bridge interface, edit /etc/network/interfaces and either comment or replace the existing config with (replace with the values foryour network):
auto loiface lo inet loopbackauto eth0iface eth0 inet manualauto br0iface br0 inet static address 192.168.0.10 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0
or to use DHCP
auto loiface lo inet loopbackauto eth0iface eth0 inet manualauto br0iface br0 inet dhcp bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0
This will create a virtual interface br0.
Now restart networking:
sudo /etc/init.d/networking restart
If your VM host "freezes" for a few seconds after starting or stopping a KVM guest when using bridged networking, it is because a Linux bridge will take the hardware address of the lowest numbered interface out of all of the connected interface. To work around this, add the following to your bridge configuration:
post-up ip link set br0 address f4:6d:04:08:f1:5f
and replace f4:6d:04:08:f1:5f with the hardware address of a physical ethernet adapter which will always be part of the bridge.
- Ubuntu配置br0
- br0
- 配置桥接设备br0
- linux学习之高级网络配置bond,team,ipv6,br0
- unit2-高级网络配置【bond,team,br0,ipv6】
- 网桥br0
- bond-br0
- lo、eth0、br0、wlan0
- bond,team,br0
- linux中KVM桥接网卡br0
- ifconfig中lo、eth0、br0接口
- ifconfig中lo、eth0、br0、wlan0接口
- ifconfig中lo、eth0、br0、wlan0接口
- ubnt 路由器 switch0 和 br0的区别
- Ubuntu 配置
- ubuntu配置
- ubuntu配置
- ubuntu配置
- RACSignal的Subscription深入分析
- c# 构造函数总结:
- Robot Framework User Guide
- 介质中的Maxwell方程
- 细说ReactiveCocoa的冷信号与热信号(一)
- Ubuntu配置br0
- hiho一下 第五十八周
- 细说ReactiveCocoa的冷信号与热信号(二):为什么要区分冷热信号
- 判断字符是否出现
- 约束及修改数据表
- pip安装django失败
- [LeetCode]Palindrome Linked List
- Linux命令备忘实例(14)——sed
- 对连接数据库的简单升级