码迷,mamicode.com
首页 > Web开发 > 详细

Linux Network Bridge

时间:2016-11-10 21:54:26      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:linux   bridge   

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

标签:linux   bridge   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!