Linux Network 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

时间: 2024-10-28 20:00:13

Linux Network Bridge的相关文章

Netruon 理解(12):使用 Linux bridge 将 Linux network namespace 连接外网

学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GRE/VxLAN 虚拟网络 (4)Neutron OVS OpenFlow 流表 和 L2 Population (5)Neutron DHCP Agent (6)Neutron L3 Agent (7)Neutron LBaas (8)Neutron Security Group (9)Neutro

Netruon 理解(11):使用 NAT 将 Linux network namespace 连接外网

学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GRE/VxLAN 虚拟网络 (4)Neutron OVS OpenFlow 流表 和 L2 Population (5)Neutron DHCP Agent (6)Neutron L3 Agent (7)Neutron LBaas (8)Neutron Security Group (9)Neutro

linux network namespace

linux network namespace在OpenStack和docker中都经常遇到,这次好好记录下使用方法,以备查询. 1.创建一个net namespace ip netns add blue 2.查看net namespace ip netns list 3.创建端口对 ip link add veth0 type veth peer name veth1 4.查看端口对 ip link <list> 5.增加端口到namespace ip link set veth1 netn

Differences between Hub, Network Bridge, Switch and Router

Before we talk about the differences between these network devices, we have to understand the conflict domain and brocast domain first. Take bus network topology for example, all the PCs are connecting to the same bus line. If multiple PCs are sendin

Linux network namespaces

介绍OpenStack neutron使用Linux网络命名空间来避免物理网络和虚拟网络间的冲突,或者不同虚拟网络间的冲突. 网络命名空间就是一个独立的网络协议栈,它有自己的网络接口,路由,以及防火墙规则. 网络命名空间通常是位于目录/var/run/netns/下的文件描述符. 例如,使用ip netns add命令创建一个命名空间: ip netns add bule 查看目录/var/run/netns/: $ ls /var/run/netns/ blue 网络命名空间常用于虚拟化中.因

Linux Network IO Model Learning

目录 0. 引言 1. IO机制简介 2. 阻塞式IO模型(blocking IO model) 3. 非阻塞式IO模型(noblocking IO model) 4. IO复用式IO模型(IO multiplexing model) 5. 信号驱动式IO模型(signal-driven IO model) 6. 异步IO式IO模型(asynchronous IO model) 7. Linux下IO技术简介 8. IO模型编程举例 0. 引言 Linux将所有外部设备都看做一个文件来进行操作.

【learning log】Linux network programming

DNS host entry 包含 DNS database 中有关某一 domin name 或 ip address 的 DNS 信息. 1 struct hostent{ 2 char *h_name; 3 char *h_aliases; 4 int h_addrtype; 5 int h_length; 6 char **h_addr_list; 7 }; hostinfo 程序, 用来从 ip 或 domin name 解析 DNS info. 1 /*This program is

linux network code

sk_buff: socket buffertstamp: buffer, 到达主机,离开主机的时间sk: 对应的socket句柄, 到network layer.dev:从哪个设备流入或流出.skb: queued ATM(Asynchronous Transfer Mode).cb: Control buffer,48个字节供各层自由使用._skb_refdst linux network code

Linux Network Management

Linux网络管理 (YouTube视频教程) ISO/OSI七层模型 ISO: The International Organization for Standardization 国际标准化组织 OSI: Open Systems Interconnection model 开放系统互连模型 MAC地址负责局域网通信,IP地址负责外网通信 文件传输端口(FTP端口)默认21 Www网页端口默认80 Mail邮件默认端口是25和110 ISO/OSI七层模型是理论基础,TCP/IP四层模型是优