Cisco IRB BVI

Cisco路由器提供集成的路由与桥接(Integrated Routing and Bridging,IRB)功能。当配置了IRB后,不可路由的协议数据流可以在配置为相同网桥组的端口上实现桥接交换,同时可以路由的协议数据流则在其他的路由端口或不同的网桥组之间实现路由。 

这里提到了一个概念,即网桥组(Bridge-Group)。要实现不同的端口之间的桥接交换,必须将这些端口归到同一个网桥组当中。从概念上说,配置为同一个网桥组中的所有端口属于同一个第二层的广播域,不管这个端口类型是广域网端口还是以太网端口,也不管这个端口是物理端口还是逻辑端口(如X.25的子口或以太网的VLAN子口)。Cisco路由器为每一个已配置的网桥组自动产生一个虚拟接口,称之为Beidge-Group Virtual Interface(BVI),在不同的BVI之间或BVI与其它的端口之间可以实现路由的能力。下面说明BVI的主要概念和IRB的配置任务。 

SW1

复制代码

 #conf t
 (config)#vlan 
 (config-vlan)#exit
 (config)# fastethernet0/
 (config-)#switchport mode access
 (config-)#switchport access vlan 
 (config-)# fastethernet /
 (config-)#switchport mode access
 (config-)#switchport access vlan 
 (config-)# fastethernet /
 
 (config-)#switchport mode trunk

复制代码


SW2

复制代码

 #configure terminal
 (config)#vlan 
 (config-vlan)#exit
 (config)# fastethernet /
 (config-)#switchport mode access
 (config-)#switchport access vlan 
 (config-)# fastethernet /
 (config-)#switchport mode access
 (config-)#switchport accesss vlan 
 (config-)# fastethernet /
 
 (config-)#switchport mode trunk

复制代码

R1

复制代码

 router#configure terminal
 router(config)# fastethernet /
 router(config-)#no shut
 router(config-)# fastethernet /
 
 router(config-subif)#bridge-group 
 router(config-subif)# fastethernet /
 
 router(config-subif)#bridge-group 
 router(config-subif)#exit
 router(config-)# fastetherent /
 router(config-)#no shut
 router(config-)# fastethernet /
 
 router(config-subif)#brdige group 
 router(config-subif)# fastethernet /
 
 router(config-subif)#brdige group 
 router(config-subif)#exit
 router(config-)#exit
 router(config)# bridge irb
 router(config)#bridge  protocol ieee
 router(config)#bridge  protocol ieee
 router(config)#bridge  route ip
 router(config)#brdige  route ip
 router(config)# bvi 
 router(config-)#ip add . .
 router(config-)# bvi 
 router(config-)#ip add . .

复制代码