linux建立网桥
来源:互联网 发布:d3.js demo显示 编辑:程序博客网 时间:2024/03/29 20:32
建立网桥
touch /etc/sysconfig/network-scripts/ifcfg-br0
touch /etc/sysconfig/network-scripts/ifcfg-br0
建立网桥配置文件ifcfg-br0
vi /etc/sysconfig/network-scripts/ifcfg-br0
vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
IPADDR=0.0.0.0
ONBOOT=yes
2.添加网卡到网桥
把eth0和eth1两网卡添加到网桥中。
修改eth1网卡配置文件
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=static
IPADDR=0.0.0.0
ONBOOT=yes
BRIDGE=br0
修改eth2网卡配置文件
vi /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=static
IPADDR=0.0.0.0
ONBOOT=yes
BRIDGE=br0
3. 重启网络服务
service network restart
0 0
- linux建立网桥
- linux 用brctl建立一个网桥
- 建立交互式Linux启动
- Linux建立FTP服务器
- Linux+SHOUTcast建立网络电台
- linux 下建立cvs
- 建立linux内核阅读器
- 建立嵌入式Linux系统
- linux建立用户详解
- Linux 手动建立账号
- linux环境的建立
- Linux--ftp建立
- 建立Linux开发环境
- 建立Linux开发环境
- Linux建立软连接
- 从头建立Linux (-)
- linux 建立软连接
- linux建立信任关系
- Ubuntu 14.04 安装搜狗拼音或谷歌拼音输入法
- 邻接表
- utime
- 再谈casperjs截图, 使用代理
- 仿射变换和仿射线性群
- linux建立网桥
- utimes
- 3D Camera一点介绍
- 计算机常用术语解释
- 虚函数、虚继承、sizeof
- 剪花布条
- 【Leetcode】Binary Tree Inorder Traversal
- Hadoop-2.4.1学习之高可用ResourceManager
- 使用Hibernate需要导入的包