首页 » 操作系统 » 在centos 6.4中进行网卡桥接配置,老外原文,亲测无误。

在centos 6.4中进行网卡桥接配置,老外原文,亲测无误。

时间:2013-10-22作者:felix.chan分类:操作系统评论:0

Howto setup a bridge device on CentOS or Fedora.

If you need to bring your KVM VM’s into the same local area network like your host is in you need to configure a bridge device.

1. Install all needed packages:

yum install bridge-utils

yum install tunctl

2. Disable NetworkManager and enable network at boot time:

chkconfig NetworkManager off

chkconfig –levels 35 network on

/etc/init.d/NetworkManager stop

/etc/init.d/network restart

3. Create br0 configuration

vi /etc/sysconfig/network-scripts/ifcfg-br0

Change following configuration to your needs.

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
DNS1=192.168.0.1
GATEWAY=192.168.0.1
IPADDR=192.168.0.100
NETMASK=255.255.255.0
ONBOOT=yes
SEARCH=”example.com”

4. Modify eth0 configuration:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=00:1e:90:f3:f0:02
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
BRIDGE=br0

5. Restart network or reboot machine

/etc/init.d/network restart

or

reboot

原创文章,转载请注明: 转载自红防联盟www.rednat.com

本文链接地址: 在centos 6.4中进行网卡桥接配置,老外原文,亲测无误。

|2|right
0 条评论

暂时没有评论!

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>