学习网考试学习资料

Gzu521.com

CCIE试验备考之交换VLAN间路由(1)

思科认证   点击:次   发布时间:2007-3-13   【字体: 】   来源:hello_me的blog
贵州学习网—属于你的学习中心
hello_me的blog
http://hellome.blog.51cto.com

vlan间路由的方法     
方法一     
      
路由器的每个接口对应每个vlan,利用路由协议实现vlan之间的路由,这种方法受路由器转发能力的限制,且占用大量的路由器端口     
方法二     
 利用中继端口(isl或802.1q)实现多vlan和路由器子接口的模式,实现单臂路由,这种方法转发带宽受中继链路带宽限制     
方法三     
      
采用集成了路由处理器的交换机(3层交换机)完成vlan间路由,这种方法全部采用内部交换链路进行交换,具有速度高,无冲突影响等优点     
多层交换机实现vlan间路由     
通过使用集成的第3层模块或附属卡,可以实现vlan间路由的选择,同时可以直接访问背板总线,提高了交换速度。路由器被高度集成到交换机中,使得告诉路由选择特性更容易实现。     
下图是相应的路由处理器模块     
      
为了实现vlan间的路由,交换机必须使用第3层地址来完成。多层交换机支持多种不同类型的第3层接口:     
1. 路由接口     
路由端口是一种物理接口,它类似于传统路有器上配置了第3层地址的端口。与接入端口不同的是,路由端口不与特定vlan相关联。路由端口类似于普通的路由器端口,不同之处在与它不能像路由器那样支持子接口。     
路由端口用于点对点链路,路由端口的典型应用就是连接wan路由器和安全设备。在多层交换机网络中,路由端口大多数都配置于园区主干子模块中的交换机之间。     
配置过程:     
1) 进入全局模式  configure terminal     
2) 进入接口模式  interface 接口     
3) 配置为路由端口     
        no switchport     
案例:     
sw(config)#interface g0/1     
sw(config-if)#ip address 192.168.0.1 255.255.255.0     
% ip addresses may not be configured on l1 links     
出现错误,因为默认情况下,交换机的接口都是接入模式     
sw(config-if)#no switchport     
sw(config-if)#ip address 192.168.0.1 255.255.255.0     
sw(config-if)#end     
案例:     
ccie-lab(v180)     
题目要求:     
sw1和sw2的fa0/3接口与r3相连,ip地址为yy.yy.13.2/30,yy.yy.31.2/30     
配置:     
sw1      
   configure terminal     
   interface f0/3     
      no switchport     
     ip address 11.11.13.2 255.255.255.252     
sw2     
   config termi     
   interface f0/3     
      no switchport     
      ip address 11.11.31.2 255.255.255.252     
ccie-lab(v210)     
题目要求:     
配置sw1的fa0/1,fa0/6,sw2的fa0/2,fa0/4,fa0/5接口的ip地址,用于后面的ospf路由所用(具体ip地址查看拓扑)     
配置:     
sw1     
   config termi     
   interface f0/1     
      no switchport     
      ip address 11.11.17.7 255.255.255.0     
   interface f0/6     
      no switchport     
      ip address 11.11.67.7 255.255.255.0     
sw2     
   config termi     
   interface f0/2     
      no switchport     
      ip address 11.11.28.8 255.255.255.0     
   interface f0/4     
      no switchport     
      ip address 11.11.48.8 255.255.255.0     
2. 交换虚拟接口     
交换机虚拟接口(switch virtual interface)是一种第3层接口,它是为在多层交换机上完成vlan间路由选择而配置的接口。svi是一种与vlan id相关联的虚拟vlan接口,其目的在于启用该vlan上的路由选择能力。     
配置过程:     
1) 进入全局模式  configure terminal     
2) 进入接口模式  interface vlan vlanid     
3) 进行第3层的配置     
          ip address network-address netmask     
4) 启用接口     
          no shutdown     
5) 验证结果     
          show running interface vlan 号     
案例:     
sw(config)#inteface vlan 10     
sw(config-if)#ip address 10.10.1.1 255.0.0.0     
sw(config-if)#no shut     
sw(config-if)#interface vlan 20     
sw(config-if)#ip address 10.20.1.1 255.0.0.0     
sw(config-if)#no shut     
sw#show running interface vlan 10     
sw#show interface vlan 20     
案例:     
ccie-lab(v135)     
题目要求:     
configure svi interface for vlan 30 and vlan 50,it is for ospf and eigrp routing later.     
配置:     
sw1     
   config termi     
   interface vlan 30     
     ip address 11.11.57.1 255.255.255.0     
     no shut     
   interface vlan 50     
     ip address 11.11.37.1 255.255.255.0     
     no shut  

下 一 页
文共3页:第 【1】 【2】 【3】

责任编辑:gzu521

IT认证分类
计算机软件水平考试
全国计算机等级考试
思科认证
微软认证
ORACLE/CIW认证
Linux认证
JAVA认证
其它认证
分类推荐信息
更多...
大类最新文章
更多...