集成路由和桥接IRB详解.docx

上传人:b****1 文档编号:2638406 上传时间:2023-05-04 格式:DOCX 页数:16 大小:55.26KB
下载 相关 举报
集成路由和桥接IRB详解.docx_第1页
第1页 / 共16页
集成路由和桥接IRB详解.docx_第2页
第2页 / 共16页
集成路由和桥接IRB详解.docx_第3页
第3页 / 共16页
集成路由和桥接IRB详解.docx_第4页
第4页 / 共16页
集成路由和桥接IRB详解.docx_第5页
第5页 / 共16页
集成路由和桥接IRB详解.docx_第6页
第6页 / 共16页
集成路由和桥接IRB详解.docx_第7页
第7页 / 共16页
集成路由和桥接IRB详解.docx_第8页
第8页 / 共16页
集成路由和桥接IRB详解.docx_第9页
第9页 / 共16页
集成路由和桥接IRB详解.docx_第10页
第10页 / 共16页
集成路由和桥接IRB详解.docx_第11页
第11页 / 共16页
集成路由和桥接IRB详解.docx_第12页
第12页 / 共16页
集成路由和桥接IRB详解.docx_第13页
第13页 / 共16页
集成路由和桥接IRB详解.docx_第14页
第14页 / 共16页
集成路由和桥接IRB详解.docx_第15页
第15页 / 共16页
集成路由和桥接IRB详解.docx_第16页
第16页 / 共16页
亲,该文档总共16页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

集成路由和桥接IRB详解.docx

《集成路由和桥接IRB详解.docx》由会员分享,可在线阅读,更多相关《集成路由和桥接IRB详解.docx(16页珍藏版)》请在冰点文库上搜索。

集成路由和桥接IRB详解.docx

集成路由和桥接IRB详解

集成路由和桥接(IRB)详解

 

Cisco路由器提供集成的路由与桥接(IntegratedRoutingandBridging,IRB)功能。

当配置了IRB后,不可路由的协议数据流可以在配置为相同网桥组的端口上实现桥接交换,同时可以路由的协议数据流则在其他的路由端口或不同的网桥组之间实现路由。

  这里提到了一个概念,即网桥组(Bridge-Group)。

要实现不同的端口之间的桥接交换,必须将这些端口归到同一个网桥组当中。

从概念上说,配置为同一个网桥组中的所有端口属于同一个第二层的广播域,不管这个端口类型是广域网端口还是以太网端口,也不管这个端口是物理端口还是逻辑端口(如X.25的子口或以太网的VLAN子口)。

Cisco路由器为每一个已配置的网桥组自动产生一个虚拟接口,称之为Beidge-GroupVirtualInterface(BVI),在不同的BVI之间或BVI与其它的端口之间可以实现路由的能力。

下面说明BVI的主要概念和IRB的配置任务。

 

SW1

 

switch#conft

switch(config)#vlan2

switch(config-vlan)#exit

switch(config)#interfacefastethernet0/1

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlan1

switch(config-if)#interfacefastethernet0/2

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlan2

switch(config-if)#interfacefastethernet0/24

switch(config-if)#encapsulationdot1q

switch(config-if)#switchportmodetrunk

 

SW2

switch#configureterminal

switch(config)#vlan2

switch(config-vlan)#exit

switch(config)#interfacefastethernet0/1

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlan1

switch(config-if)#interfacefastethernet0/2

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccesssvlan2

switch(config-if)#interfacefastethernet0/24

switch(config-if)#encapsulationisl

switch(config-if)#switchportmodetrunk

 

R1

 

router#configureterminal

router(config)#interfacefastethernet0/0

router(config-if)#noshut

router(config-if)#interfacefastethernet0/0.1

router(config-subif)#encapsulationdot1q1

router(config-subif)#bridge-group1

router(config-subif)#interfacefastethernet0/0.2

router(config-subif)#encapsultiondot1q2

router(config-subif)#bridge-group2

router(config-subif)#exit

router(config-if)#interfacefastetherent0/1

router(config-if)#noshut

router(config-if)#interfacefastethernet0/1.1

router(config-subif)#encapsulationisl1

router(config-subif)#brdigegroup1

router(config-subif)#interfacefastethernet0/1.2

router(config-subif)#encapsulationisl2

router(config-subif)#brdigegroup2

router(config-subif)#exit

router(config-if)#exit

router(config)#bridgeirb

router(config)#bridge1protocolieee

router(config)#bridge2protocolieee

router(config)#bridge1routeip

router(config)#brdige2routeip

router(config)#intbvi1

router(config-if)#ipadd192.168.1.254255.255.255.0

router(config-if)#intbvi2

router(config-if)#ipadd192.168.2.254255.255.255.0

 

 

 

SectionIII.实验-子接口桥接

 

   实验中的IP划分:

  SW1VLAN2 192.168.2.250   VLAN3   192.168.3.250

  SW2VLAN2 192.168.2.249   VLAN3   192.168.3.249

  R1 bvi 1 192.168.2.251   

bvi 2  192.168.3.251

  R2 bvi 1 192.168.2.248    

bvi 2  192.168.3.248

      HSRP2 192.168.2.254    HSRP3   192.168.3.254

  

一。

实验目的

   了解桥接的作用:

桥接”,是指依据OSI网络模型的链路层的地址,对网络数据包进行转发的过程。

当路由器配置了桥接选项后,会处理所有接口上的所有的数据帧,并实时调查每个主机的位置。

若在某个接口上收入一个帧,就会在一个桥接内置入一个条目,列出发送数据的主机和接收到数据帧的接口MAC地址,这样路由表就被不断地在通信中完善起来。

参考:

二。

实验内容

   1。

在实验中,我们使用的是二层交换机,通过路由器来实现VLAN之间的路由

      在E0/0E0/1下面划分子接口

     inte0/0.1      inte0/0.2

     endot1q2      endot1q3  分别封装VLAN2VLAN3

   2。

因为在同一物理接口不能配置同一网段的IP地址,我们要通过桥接组来实现子接口之间的桥接

     inte0/0.1        inte0/1.1

     bridge-group1     bridge-group2 建立两个桥接组

   3。

这只是简单的两层桥接,要实现三层桥接,我们要给桥接组配置IP地址

     intbvi1                    intbvi2

     ipadd192.168.2.1255.255.255.0     ipadd192.168.3.1255.255.255.0

     两个组分别使用VLAN2与VLAN3的网段,这样可以实现VLAN之间的路由

   4。

为了完成VLAN之间的路由,所有橙色线路的端口为trunk

     switchportmodetruck

     switchporttruckendo

   5。

所有PC接入端号使作protfast端口,接到收敛速成度

     spanning-streeprotfast

   6。

为了终端PC的安全,我们可以采用热备份协议,实现网关冗余

      R1:

intbvi1                    intbri2

         standy1ip192.168.2.254    standy2ip192.168.3.254

         standy1pree                 standy2pree   开启抢占

     R2:

intbvi1

         standy1ip192.168.2.254         standy2ip192.168.3.254

         standy1pree                 standy2pree   开启抢占

        standy1pri50让R1成为VLAN1主网关  standy2pri200让R2成为VLAN2的主网关

     在第6中,我们分别分R1与R2成为VLAN1与VLAN2的主,彼此之间成为备份,使得网络更可靠

   7。

ISP与本地路由器之间采用路由协议,可以实现负载均衡

在实验中用到如下命令:

  bridge1protocolieee封装协议

  birdge1routeip   支持IP路由

 birdgeirb            将桥接接口集成路由功能

二。

实验配置

   这个实验中,主要是难点是子接口的路由桥接,但这个设计早以最淘汰了,我们可以在三层路由来实现上面的功能。

另一个知识点就是为这个VLAN建立备份网关,我们可以采用HSRPVRRPGLBP协议来实现

 

三.配置

R1-up#shrun

Buildingconfiguration...

Currentconfiguration:

1119bytes

!

version12.3

servicetimestampsdebugdatetimemsec

servicetimestampslogdatetimemsec

noservicepassword-encryption

!

hostnameR1-up

!

boot-start-marker

boot-end-marker

!

!

noaaanew-model

ipsubnet-zero

!

!

!

ipcef

bridgeirb

!

!

!

interfaceLoopback1

 ipaddress1.1.1.1255.255.255.0

!

interfaceEthernet0/0

 noipaddress

 half-duplex

!

interfaceEthernet0/0.1

 encapsulationdot1Q2

 bridge-group1

!

interfaceEthernet0/0.2

 encapsulationdot1Q3

 bridge-group2

!

interfaceSerial0/0

 ipaddress10.1.1.1255.255.255.0

 nofair-queue

!

interfaceEthernet0/1

 noipaddress

 half-duplex

!

interfaceEthernet0/1.1

 encapsulationdot1Q2

 bridge-group1

!

interfaceEthernet0/1.2

 encapsulationdot1Q3

 bridge-group2

!

interfaceBVI1

 ipaddress192.168.2.251255.255.255.0

 standby1ip192.168.2.1

 standby1preempt

!

interfaceBVI2

 ipaddress192.168.3.251255.255.255.0

 standby2ip192.168.3.1

!

iphttpserver

ipclassless

!

!

!

!

bridge1protocolieee

bridge1routeip

bridge2protocolieee

bridge2routeip

!

!

!

!

linecon0

lineaux0

linevty04

 login

!

!

end

R2-down#shrun

Buildingconfiguration...

Currentconfiguration:

1173bytes

!

version12.3

servicetimestampsdebugdatetimemsec

servicetimestampslogdatetimemsec

noservicepassword-encryption

!

hostnameR2-down

!

boot-start-marker

boot-end-marker

!

!

noaaanew-model

ipsubnet-zero

ipcef

!

!

!

ipauditpomax-events100

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

bridgeirb

!

!

!

interfaceEthernet0/0

 noipaddress

 half-duplex

!

interfaceEthernet0/0.1

 encapsulationdot1Q2

 bridge-group1

!

interfaceEthernet0/0.2

 encapsulationdot1Q3

 bridge-group2

!

interfaceSerial0/0

 noipaddress

 shutdown

 nofair-queue

!

interfaceEthernet0/1

 noipaddress

 half-duplex

!

interfaceEthernet0/1.1

 encapsulationdot1Q2

 bridge-group1

!

interfaceEthernet0/1.2

 encapsulationdot1Q3

 bridge-group2

!

interfaceBVI1

 ipaddress192.168.2.248255.255.255.0

 standby1ip192.168.2.1

 standby1priority50

 standby1preempt

//桥接组1并启用了HSRP

!

interfaceBVI2

 ipaddress192.168.3.248255.255.255.0

 standby2ip192.168.3.1

 standby2priority200

 standby2preempt

//桥接组2并启用了HSRP

!

iphttpserver

noiphttpsecure-server

ipclassless

!

!

!

bridge1protocolieee

bridge1routeip

bridge2protocolieee

bridge2routeip

!

!

!

!

!

linecon0

lineaux0

linevty04

!

!

end

 

 

Sw1-up#shrun

Buildingconfiguration...

Currentconfiguration:

!

version12.0

noservicepad

servicetimestampsdebuguptime

servicetimestampsloguptime

noservicepassword-encryption

!

hostnameSw1-up

!

!

!

!

!

!

!

ipsubnet-zero

!

!

!

interfaceFastEthernet0/1

 switchporttrunkencapsulationdot1q

 switchportmodetrunk

!

interfaceFastEthernet0/2

 switchporttrunkencapsulationdot1q

 switchportmodetrunk

!

interfaceFastEthernet0/3

!

interfaceFastEthernet0/4

!

interfaceFastEthernet0/5

!

interfaceFastEthernet0/6

!

interfaceFastEthernet0/7

!

interfaceFastEthernet0/8

!

interfaceFastEthernet0/9

!

interfaceFastEthernet0/10

 switchportaccessvlan 2

 spanning-treeportfast

!

interfaceFastEthernet0/11

!

interfaceFastEthernet0/12

!

interfaceVLAN1

 noipdirected-broadcast

 noiproute-cache

!

interfaceVLAN2

 ipaddress192.168.2.250255.255.255.0

 noipdirected-broadcast

 noiproute-cache

!

interfaceVLAN3

 ipaddress192.168.3.250255.255.255.0

 noipdirected-broadcast

 noiproute-cache

!

!

linecon0

 transportinputnone

 stopbits1

linevty04

 login

linevty515

 login

!

end

Sw1-up#

 

Sw2-down#shrun

Buildingconfiguration...

Currentconfiguration:

!

version12.0

noservicepad

servicetimestampsdebuguptime

servicetimestampsloguptime

noservicepassword-encryption

!

hostnameSw2-down

!

!

!

!

!

!

!

ipsubnet-zero

!

!

!

interfaceFastEthernet0/1

 switchporttrunkencapsulationdot1q

 switchportmodetrunk

 spanning-treeportfast

!

interfaceFastEthernet0/2

 switchporttrunkencapsulationdot1q

 switchportmodetrunk

 spanning-treeportfast

!

interfaceFastEthernet0/3

 spanning-treeportfast

!

interfaceFastEthernet0/4

 spanning-treeportfast

!

interfaceFastEthernet0/5

 spanning-treeportfast

!

interfaceFastEthernet0/6

 spanning-treeportfast

!

interfaceFastEthernet0/7

 spanning-treeportfast

!

interfaceFastEthernet0/8

 spanning-treeportfast

!

interfaceFastEthernet0/9

 spanning-treeportfast

!

interfaceFastEthernet0/10

 spanning-treeportfast

!

interfaceFastEthernet0/11

 spanning-treeportfast

!

interfaceFastEthernet0/12

 spanning-treeportfast

!

interfaceVLAN1

 noipdirected-broadcast

 noiproute-cache

!

interfaceVLAN2

 ipaddress192.168.2.249255.255.255.0

 noipdirected-broadcast

 noiproute-cache

!

interfaceVLAN3

 ipaddress192.168.3.249255.255.255.0

 noipdirected-broadcast

 noiproute-cache

!

!

linecon0

 transportinputnone

 stopbits1

linevty04

 login

linevty515

 login

!

end

Sw2-down#

欢迎您的下载,资料仅供参考!

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 总结汇报 > 学习总结

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2