MSCBSC 移动通信论坛
搜索
登录注册
网络优化工程师招聘专栏 4G/LTE通信工程师最新职位列表 通信实习生/应届生招聘职位

  • 阅读:2529
  • 回复:3
案例一 Catalsty 4908G-L3 VLAN间的路由和桥接
spatial
版主
鎵嬫満鍙风爜宸查獙璇


 发短消息    关注Ta 

专家·初级勋章   活动·积极勋章   纪念勋章·四周年   财富勋章·富甲一方  
积分 8118
帖子 1554
威望 59847 个
礼品券 2273 个
专家指数 108
注册 2010-3-4
专业方向  核心网工程师
回答问题数 0
回答被采纳数 0
回答采纳率 0%
 
发表于 2010-04-08 20:24:34  只看楼主 
必备知识:
首先我门应当了解Catalsty 4908G-L3,实际上他是一台路由器,完全使用CISCO的IOS配置接口。默认的状态下所有的接口都是可以路由的接口。Catalsty 4908G-L3并不支持面向二层协议,VLAN主干协议,动态主干协议,端口聚合协议。
Catalsty 4908不支持以下几种:基于12.0(7)版本的IOS
1 访问控制列表。
2 802.1q
3 apple talk routing
4 port snooping
Catalsty 4908 swtich-router running Cisco IOS 12.0 ( 7 )W5 (15D)
Three Catalsty 3512xl switch running cisco iso 12.0 ( 5 )xu
配置Catalsty 4908交换机达到两个目的。
让五个VLAN 1 10 20 30 40 运行在二层交换机上

不 同 的VLAN间可以进行通讯

两个Catalsty 3512xl交换机使用使用吉比特以太网链路连接到4908G-L3,其他的一个使用单一的吉比特链路连接。
来支持内部VLAN的路由,集成路由和桥接。所有的端用户和服务器都连接到Catalsty 3512XL,如果一个VLAN中的设备想连接到另一个VLAN中的设备的时候,数据将会发送到4908G-L3,他将数据路由到虚拟的桥接的接口上。

以下配置应当应用的交换机上:
基本的出始化的配置
IP地址和默认的网关应当分配到交换机上为管理
VTP模式应当配置成透明的模式, 以便在3512XL交换机上配置VLAN
吉比特以太网通道在4908G-L3和3512XL01 3512XL02
桥节和虚拟接口, IP和IPX的路由应当配置在4908上
ISL TRUNKS应当配置在4908G-L3和3512XL桥接应当配置在TRUNK的子接口上
Vlan IP subnet IPX NETWORK
1 10.10.1.0/24 N/A
10 10.10.10.0/24 1000
20 10.10.20.0/24 2000
30 10.10.30.0/24 3000
40 10.10.40.0/24 4000
在Catalsty3512xl上配置一个IP地址和默认的网关为交换机的管理,默认网关的地址是桥接虚拟接口的地址在Catalsty 4908G-L3上。
Switch#configure terminal
Switch(config)#hostname 3512xl-switch01
3512xl-switch01(config)#interface vlan 1
3512xl-switch01(config-if)#ip address 10.10.1.10 255.255.255.0
3512xl-switch01(config-if)#management
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#ip default-gateway 10.10.1.1
3512xl-switch01(config)#end
3512xl-switch01#


3512xl-switch02(config)#interface vlan 1
3512xl-switch02(config-if)#ip address 10.10.1.20 255.255.255.0
3512xl-switch02(config-if)#management
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#ip default-gateway 10.10.1.1
3512xl-switch02(config)#end
3512xl-switch02#



3512xl-switch03(config)#interface vlan 1
3512xl-switch03(config-if)#ip address 10.10.1.30 255.255.255.0
3512xl-switch03(config-if)#management
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#ip default-gateway 10.10.1.1
3512xl-switch03(config)#end
3512xl-switch03#
由于Catalsty 4908G-L3并不支持VTP所以Catalsty 3512xl配置成透明的模式,

3512xl-switch01#vlan database
3512xl-switch01(vlan)#vtp transparent
3512xl-switch01(vlan)#vlan 10 name vlan10
3512xl-switch01(vlan)#vlan 20 name vlan20
3512xl-switch01(vlan)#vlan 30 name vlan30
3512xl-switch01(vlan)#vlan 40 name vlan40
配置以太网通道
在3512XL-01上的GIG0/1和GIG0/2分别连接到4908G-L3上的GIG1和GIG2上,在3512XL-02上的GIG0/1和GIG0/2连接到4908G-L3上的GIG3和GIG4上
4908G-L3#configure terminal
4908G-L3(config)#interface port-channel 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig1
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig2
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface port-channel 2
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig3
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 2
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig4
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#channel-group 2
在Catalsty 3512xl-02上
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface gig0/1
3512xl-switch01(config-if)#port-group 2
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface gig0/2
3512xl-switch01(config-if)#port-group 2
3512xl-switch01(config-if)#end
3512xl-switch01#
检查以太网通道组配置使用show port group
配置CAT4908使用桥接和路由的功能,为VLAN间的路由,使用bridge ibr来启动路由和桥接功能。在交换机之间来配置ISL,VLAN的子接口在ISL TRUNK会被加入到相应的桥接组创建一个单独的2层的域
在Catalsty 4908G-l3上
4908G-L3#configure terminal
4908G-L3(config)#ipx routing
4908G-L3(config)#bridge ibr
4908G-L3(config)#bridge 1 protocol ieee
4908G-L3(config)#bridge 1 route ip
4908G-L3(config)#bridge 10 protocol ieee
4908G-L3(config)#bridge 10 route ip
4908G-L3(config)#bridge 10 route ipx
4908G-L3(config)#bridge 20 protocol ieee
4908G-L3(config)#bridge 20 route ip
4908G-L3(config)#bridge 20 route ipx
4908G-L3(config)#bridge 30 protocol ieee
4908G-L3(config)#bridge 30 route ip
4908G-L3(config)#bridge 30 route ipx
4908G-L3(config)#bridge 40 protocol ieee
4908G-L3(config)#bridge 40 route ip
4908G-L3(config)#bridge 40 route ipx
4908G-L3(config)#interface bvi 1
4908G-L3(config-if)#ip address 10.10.1.1 255.255.255.0
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 10
4908G-L3(config-if)#ip address 10.10.10.1 255.255.255.0
4908G-L3(config-if)#ipx network 1000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 20
4908G-L3(config-if)#ip address 10.10.20.1 255.255.255.0
4908G-L3(config-if)#ipx network 2000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 30
4908G-L3(config-if)#ip address 10.10.30.1 255.255.255.0
4908G-L3(config-if)#ipx network 3000
4908G-L3(config-if)#exit
4908G-L3(config)#interface bvi 40
4908G-L3(config-if)#ip address 10.10.40.1 255.255.255.0
4908G-L3(config-if)#ipx network 4000
ipx routing 在4908G-L3上启动IPX的路由
Bridge IBR启动,是集成了路由和桥接的功能。并允许在桥接组中路由通讯。
Bridge number protocol ieee 创建一个运行在IEEE协议的生成树具有桥接功能。

配置ISL TRUNK 在交换机上
在Catalsty 4908G-L3上配置ISL TRUNK需要在主接口下配置子接口,每个子接口为彼此每个VLAN传输数据,两个TRUNK配置在逻辑的PORT-CHANNEL接口,第三个TRUNK配置在物理的接口上
4908G-L3#configure terminal
4908G-L3(config)#interface port-channel 1
4908G-L3(config-if)#exit
4908G-L3(config)#interface port-channel 1.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config)#interface port-channel 1.10
4908G-L3(config-if)#encapsulation isl 10
4908G-L3(config-if)#bridge-group 10
4908G-L3(config)#interface port-channel 1.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config)#interface port-channel 1.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config)#interface port-channel 1.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
4908G-L3(config)#interface port-channel 2.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config)#interface port-channel 2.10
4908G-L3(config-if)#encapsulation isl 10
4908G-L3(config-if)#bridge-group 10
4908G-L3(config)#interface port-channel 2.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config)#interface port-channel 2.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config)#interface port-channel 2.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
4908G-L3(config)#interface gig 5
4908G-L3(config-if)#no shutdown
4908G-L3(config-if)#exit
4908G-L3(config)#interface gig 5.1
4908G-L3(config-if)#encapsulation isl 1
4908G-L3(config-if)#bridge-group 1
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.20
4908G-L3(config-if)#encapsulation isl 20
4908G-L3(config-if)#bridge-group 20
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.30
4908G-L3(config-if)#encapsulation isl 30
4908G-L3(config-if)#bridge-group 30
4908G-L3(config-if)#exit
4908G-L3(config)# interface gig 5.40
4908G-L3(config-if)#encapsulation isl 40
4908G-L3(config-if)#bridge-group 40
encapsulation isl vlan 命令在这个接口上接收VLAN
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface gig 0/1
3512xl-switch01(config-if)#switchport mode trunk
3512xl-switch01#configure terminal
3512xl-switch01(config)#interface fastethernet0/1
3512xl-switch01(config-if)#switchport access vlan 10
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/2
3512xl-switch01(config-if)#switchport access vlan 10
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/3
3512xl-switch01(config)#switchport access vlan 10
3512xl-switch01(config)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/4
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/5
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/6
3512xl-switch01(config-if)#switchport access vlan 20
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/7
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/8
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/9
3512xl-switch01(config-if)#switchport access vlan 30
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/10
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/11
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface fastethernet0/12
3512xl-switch01(config-if)#switchport access vlan 40
3512xl-switch01(config-if)#spanning-tree portfast
3512xl-switch01(config-if)#exit
3512xl-switch01(config)#interface gig 0/2
3512xl-switch01(config-if)#switchport mode trunk
3512xl-switch01#configure terminal
3512xl-switch02(config)#interface gig 0/1
3512xl-switch02(config-if)#switchport mode trunk
3512xl-switch02#configure terminal
3512xl-switch02(config)#interface fastethernet0/1
3512xl-switch02(config-if)#switchport access vlan 10
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/2
3512xl-switch02(config-if)#switchport access vlan 10
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/3
3512xl-switch02(config)#switchport access vlan 10
3512xl-switch02(config)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/4
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/5
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/6
3512xl-switch02(config-if)#switchport access vlan 20
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/7
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/8
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/9
3512xl-switch02(config-if)#switchport access vlan 30
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/10
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/11
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface fastethernet0/12
3512xl-switch02(config-if)#switchport access vlan 40
3512xl-switch02(config-if)#spanning-tree portfast
3512xl-switch02(config-if)#exit
3512xl-switch02(config)#interface gig 0/2
3512xl-switch02(config-if)#switchport mode trunk
3512xl-switch03#configure terminal
3512xl-switch03(config)#interface gig 0/1
3512xl-switch03(config-if)#switchport mode trunk
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/2
3512xl-switch03(config-if)#switchport access vlan 10
3512xl-switch03config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/3
3512xl-switch03(config)#switchport access vlan 10
3512xl-switch03(config)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/4
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/5
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/6
3512xl-switch03(config-if)#switchport access vlan 20
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/7
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/8
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/9
3512xl-switch03(config-if)#switchport access vlan 30
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/10
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/11
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
3512xl-switch03(config)#interface fastethernet0/12
3512xl-switch03(config-if)#switchport access vlan 40
3512xl-switch03(config-if)#spanning-tree portfast
3512xl-switch03(config-if)#exit
上传的图像
扫码关注5G通信官方公众号,免费领取以下5G精品资料
  • 1、回复“iot6”免费领取《【8月30号登载】物联网创新技术与产业应用蓝皮书——物联网感知技术及系统应用
  • 2、回复“6G31”免费领取《基于云网融合的6G关键技术白皮书
  • 3、回复“IM6G”免费领取《6G典型场景和关键能力白皮书
  • 4、回复“SPN2”免费领取《中国移动SPN2.0技术白皮书
  • 5、回复“LTKJ7”免费领取《 联通科技周17本白皮书合集
  • 6、回复“5g-a”免费领取《中国联通5G-A 通感算融合技术白皮书
  • 7、回复“URLLC”免费领取《中国联通5G URLLC 技术白皮书
  • 8、回复“LDSL”免费领取《中国移动算力网络技术白皮书
  • 对本帖内容的看法? 我要点评





    各种信令流程精品资料全打尽——大集合
    http://www.mscbsc.com/bbs/viewthread.php?tid=180615
    经典----掉话问题分析全集
    http://www.mscbsc.com/bbs/viewthread.php?tid=175886
    ITU-T国际标准系列:A-Z
    http://www.mscbsc.com/bbs/thread-181415-1-1.html
    通信初学者宝典集--GSM基础培训教材集
    http://www.mscbsc.com/bbs/viewthread.php?tid=177108
     
    [充值威望,立即自动到帐] [VIP贵宾权限+威望套餐] 另有大量优惠赠送活动,请光临充值中心
    充值拥有大量的威望和最高的下载权限,下载站内资料无忧
    jzl860501
    初级会员



     发短消息    关注Ta 

    积分 362
    帖子 72
    威望 3046 个
    礼品券 0 个
    专家指数 2
    注册 2010-2-25
    专业方向  网络优化
    来自 湖北
    回答问题数 0
    回答被采纳数 0
    回答采纳率 0%
     
    发表于 2010-04-08 21:19:30  QQ
    技术问题,回答得专家指数,快速升级
    看不懂什么东东 ~!~

    对本帖内容的看法? 我要点评





    人生在世,事业为重;一息尚存,绝不松劲~!~
     
    [立即成为VIP会员,百万通信专业资料立即下载,支付宝、微信付款,简单、快速!]
    水库移民
    银牌会员
    鎵嬫満鍙风爜宸查獙璇


     发短消息    关注Ta 

    积分 2996
    帖子 597
    威望 701 个
    礼品券 8 个
    专家指数 11
    注册 2009-8-31
    专业方向  通信
    回答问题数 0
    回答被采纳数 0
    回答采纳率 0%
     
    发表于 2010-04-08 21:55:02 
    路过学习一下

    对本帖内容的看法? 我要点评

     
    最新通信职位:广东通信人才网 | 北京通信人才网 | 上海通信人才网 | 南京通信人才网 | 西安通信人才网 | 重庆通信人才网 | 中国通信人才网
    guojimilan11
    初级会员



     发短消息    关注Ta 

    积分 370
    帖子 64
    威望 114 个
    礼品券 0 个
    专家指数 0
    注册 2009-2-26
    专业方向  信息工程及控制
    回答问题数 0
    回答被采纳数 0
    回答采纳率 0%
     
    发表于 2010-04-10 14:27:28 
    :lol :lol

    共获得 1 次点评 我要点评

    • kulin 威望 -10 个
      · 恶意灌水,警告 详细.. 发表与:2010-4-13 09:54:31
     
    热点: 通信招聘职位 | 网络优化全集 | WCDMA精品 | TD-SCDMA学习资料 | EVDO | MGW媒体网关资料

    快速回复主题    
    标题
    内容
     上传资料请点左侧【添加附件】

    当前时区 GMT+8, 现在时间是 2024-03-28 21:46:19
    渝ICP备11001752号  Copyright @ 2006-2016 mscbsc.com  本站统一服务邮箱:mscbsc@163.com

    Processed in 0.397858 second(s), 20 queries , Gzip enabled
    TOP
    清除 Cookies - 联系我们 - 移动通信网 - 移动通信论坛 - 通信招聘网 - Archiver