首页 > Web开发 > 详细

Linux Network Bridge

时间:2016-11-10 21:51:41      阅读:306      评论:0      收藏:0      [点我收藏+]

1. About Network Bridge

    A network bridge is a Link Layer device which forwards traffic between networks based on MAC addresses and is therefore also referred to as a Layer 2 device.


    It makes forwarding decisions based on tables of MAC addresses which it builds by learning what hosts are connected to each network. 


    A software bridge can be used within a Linux host in order to emulate a hardware 

bridge, for example in virtualization applications for sharing a NIC with one or more virtual NICs. 



Example: Sample ifcfg-br0 interface configuration file


DEVICE=br0

TYPE=Bridge

IPADDR=192.168.1.100

NETMASK=255.255.255.0

ONBOOT=yes

BOOTPROTO=none

NM_CONTROLLED=no

DELAY=0


Example:Sample ifcfg-eth0 interface configuration file


DEVICE=eth0

TYPE=Ethernet

HWADDR=08:00:27:72:C0:A0

BOOTPROTO=none

ONBOOT=yes

NM_CONTROLLED=no

BRIDGE=br0


Linux Network Bridge

原文:http://jerrydai.blog.51cto.com/12141841/1871537

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!