




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
集成路由和桥接(IRB)详解Cisco路由器提供集成的路由与桥接(Integrated Routing and Bridging,IRB)功能。当配置了IRB后,不可路由的协议数据流可以在配置为相同网桥组的端口上实现桥接交换,同时可以路由的协议数据流则在其他的路由端口或不同的网桥组之间实现路由。 这里提到了一个概念,即网桥组(Bridge-Group)。要实现不同的端口之间的桥接交换,必须将这些端口归到同一个网桥组当中。从概念上说,配置为同一个网桥组中的所有端口属于同一个第二层的广播域,不管这个端口类型是广域网端口还是以太网端口,也不管这个端口是物理端口还是逻辑端口(如X.25的子口或以太网的VLAN子口)。Cisco路由器为每一个已配置的网桥组自动产生一个虚拟接口,称之为Beidge-Group Virtual Interface(BVI),在不同的BVI之间或BVI与其它的端口之间可以实现路由的能力。下面说明BVI的主要概念和IRB的配置任务。 SW1switch#conf tswitch(config)#vlan 2 switch(config-vlan)#exitswitch(config)#interface fastethernet0/1switch(config-if)#switchport mode accessswitch(config-if)#switchport access vlan 1switch(config-if)#interface fastethernet 0/2switch(config-if)#switchport mode accessswitch(config-if)#switchport access vlan 2switch(config-if)#interface fastethernet 0/24switch(config-if)#encapsulation dot1qswitch(config-if)#switchport mode trunkSW2switch#configure terminalswitch(config)#vlan 2switch(config-vlan)#exitswitch(config)#interface fastethernet 0/1switch(config-if)#switchport mode accessswitch(config-if)#switchport access vlan 1switch(config-if)#interface fastethernet 0/2switch(config-if)#switchport mode accessswitch(config-if)#switchport accesss vlan 2switch(config-if)#interface fastethernet 0/24switch(config-if)#encapsulation islswitch(config-if)#switchport mode trunkR1router#configure terminalrouter(config)#interface fastethernet 0/0router(config-if)#no shutrouter(config-if)#interface fastethernet 0/0.1router(config-subif)#encapsulation dot1q 1router(config-subif)#bridge-group 1router(config-subif)#interface fastethernet 0/0.2router(config-subif)#encapsultion dot1q 2router(config-subif)#bridge-group 2router(config-subif)#exitrouter(config-if)#interface fastetherent 0/1router(config-if)#no shutrouter(config-if)#interface fastethernet 0/1.1router(config-subif)#encapsulation isl 1router(config-subif)#brdige group 1router(config-subif)#interface fastethernet 0/1.2router(config-subif)#encapsulation isl 2router(config-subif)#brdige group 2router(config-subif)#exitrouter(config-if)#exitrouter(config)# bridge irbrouter(config)#bridge 1 protocol ieeerouter(config)#bridge 2 protocol ieeerouter(config)#bridge 1 route iprouter(config)#brdige 2 route iprouter(config)#int bvi 1router(config-if)#ip add 54 router(config-if)#int bvi 2router(config-if)#ip add 54 Section III. 实验-子接口桥接 实验中的IP划分: SW1 VLAN 2 50 VLAN 3 50 SW2 VLAN 2 49 VLAN 3 49 R1 bvi 1 51 bvi 2 51 R2 bvi 1 48 bvi 2 48 HSRP 2 54 HSRP 3 54 一。实验目的 了解桥接的作用:桥接”,是指依据OSI网络模型的链路层的地址,对网络数据包进行转发的过程。当路由器配置了桥接选项后,会处理所有接口上的所有的数据帧,并实时调查每个主机的位置。若在某个接口上收入一个帧,就会在一个桥接内置入一个条目,列出发送数据的主机和接收到数据帧的接口MAC地址,这样路由表就被不断地在通信中完善起来。参考:/question/5760460.html二。实验内容 1。在实验中,我们使用的是二层交换机,通过路由器来实现VLAN之间的路由 在E0/0 E0/1下面划分子接口 int e0/0.1 int e0/0.2 en dot1q 2 en dot1q 3 分别封装VLAN 2 VLAN 3 2。因为在同一物理接口不能配置同一网段的IP地址,我们要通过桥接组来实现子接口之间的桥接 int e0/0.1 int e0/1.1 bridge-group 1 bridge-group 2 建立两个桥接组 3。这只是简单的两层桥接,要实现三层桥接,我们要给桥接组配置IP地址 int bvi 1 int bvi 2 ip add ip add 两个组分别使用VLAN2 与VLAN 3的网段,这样可以实现VLAN之间的路由 4。为了完成VLAN之间的路由,所有橙色线路的端口为trunk switchport mode truck switchport truck en do 5。所有PC接入端号使作protfast 端口,接到收敛速成度 spanning-stree protfast 6。为了终端PC的安全,我们可以采用热备份协议,实现网关冗余 R1: int bvi 1 int bri 2 standy 1 ip 54 standy 2 ip 54 standy 1 pree standy 2 pree 开启抢占 R2: int bvi 1 standy 1 ip 54 standy 2 ip 54 standy 1 pree standy 2 pree 开启抢占 standy 1 pri 50 让R1成为VLAN 1主网关 standy 2 pri 200 让R2成为VLAN 2的主网关 在第6中,我们分别分R1与R2成为VLAN 1与VLAN 2的主,彼此之间成为备份,使得网络更可靠 7。ISP与本地路由器之间采用路由协议,可以实现负载均衡在实验中用到如下命令: bridge 1 protocol ieee 封装协议 birdge 1 route ip 支持IP路由 birdge irb 将桥接接口集成路由功能二。实验配置 这个实验中,主要是难点是子接口的路由桥接,但这个设计早以最淘汰了,我们可以在三层路由来实现上面的功能 。另一个知识点就是为这个VLAN 建立备份网关,我们可以采用HSRP VRRP GLBP协议来实现三配置R1-up#sh runBuilding configuration.Current configuration : 1119 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1-up!boot-start-markerboot-end-marker!no aaa new-modelip subnet-zero!ip cefbridge irb!interface Loopback1ip address !interface Ethernet0/0no ip addresshalf-duplex!interface Ethernet0/0.1encapsulation dot1Q 2bridge-group 1!interface Ethernet0/0.2encapsulation dot1Q 3bridge-group 2!interface Serial0/0ip address no fair-queue!interface Ethernet0/1no ip addresshalf-duplex!interface Ethernet0/1.1encapsulation dot1Q 2bridge-group 1!interface Ethernet0/1.2encapsulation dot1Q 3bridge-group 2!interface BVI1ip address 51 standby 1 ip standby 1 preempt!interface BVI2ip address 51 standby 2 ip !ip http serverip classless!bridge 1 protocol ieeebridge 1 route ipbridge 2 protocol ieeebridge 2 route ip!line con 0line aux 0line vty 0 4login!endR2-down#sh runBuilding configuration.Current configuration : 1173 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2-down!boot-start-markerboot-end-marker!no aaa new-modelip subnet-zeroip cef!ip audit po max-events 100!bridge irb!interface Ethernet0/0no ip addresshalf-duplex!interface Ethernet0/0.1encapsulation dot1Q 2bridge-group 1!interface Ethernet0/0.2encapsulation dot1Q 3bridge-group 2!interface Serial0/0no ip addressshutdownno fair-queue!interface Ethernet0/1no ip addresshalf-duplex!interface Ethernet0/1.1encapsulation dot1Q 2bridge-group 1!interface Ethernet0/1.2encapsulation dot1Q 3bridge-group 2!interface BVI1ip address 48 standby 1 ip standby 1 priority 50standby 1 preempt/桥接组1 并启用了HSRP!interface BVI2ip address 48 standby 2 ip standby 2 priority 200standby 2 preempt/桥接组2 并启用了HSRP!ip http serverno ip http secure-serverip classless!bridge 1 protocol ieeebridge 1 route ipbridge 2 protocol ieeebridge 2 route ip!line con 0line aux 0line vty 0 4!endSw1-up#sh runBuilding configuration.Current configuration:!version 12.0no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Sw1-up!ip subnet-zero!interface FastEthernet0/1switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/2switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10switchport access vlan2spanning-tree portfast!interface FastEthernet0/11!interface FastEthernet0/12!interface VLAN1no ip directed-broadcastno ip route-cache!interface VLAN2ip address 50 no ip directed-broadcastno ip route-cache!interface VLAN3ip address 50 no ip directed-broadcastno ip route-cache!line con 0transport input nonestopbits 1line vty 0 4loginline vty 5 15login!endSw1-up#Sw2-down#sh runBuilding configuration.Current configuration:!version 12.0no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Sw2-down!ip subnet-zero!interface FastEthernet0/1switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree portfast!interface FastEthernet0/2switchport trunk encapsulation dot1qswitchport mode trunkspanning
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年喀什年道路旅客运输从业资格证模拟试题
- 跨境物流运输服务协议规定事项
- 企业上市主要法律问题及解决对策-曹平生
- 2025年电梯安装改造维修作业特种作业操作证考试试卷(案例分析篇)
- 2025年导游资格证考试笔试旅游企业运营管理与实践案例分析试卷
- 2025电子商务师(初级)职业技能鉴定试卷:电子商务行业发展趋势预测与分析试题
- 农业合作开发项目风险分担协议
- 制造业离职证明及劳动经历声明(6篇)
- 2025年电解质分析仪项目申请报告模板
- 2025年春季芳香保健师(初级)职业技能鉴定试卷在线测试与备考指南
- Part 3-4 Unit 7 Invention and Innovation教案-【中职专用】高一英语精研课堂(高教版2021·基础模块2)
- 出租房(群租房)一户一档检查表
- 颈腰椎病预防及诊治
- 网络集成实践报告
- 报关实务第5版罗兴武课后参考答案
- 2022-2023学年福建省厦门市数学五年级第二学期期末学业质量监测试题含答案
- 水文水位观测
- 2023年芜湖一中高一自主招生考试试题数学
- 天津理工大学-PPT 答辩3
- 引体向上教学设计
- 江苏省南京市联合体2022-2023八年级初二下学期期中英语试卷+答案
评论
0/150
提交评论