热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Catalsty4908GL3VLAN间的路由和桥接

必备知识:首先我门应当了解Catalsty4908G-L3,实际上他是一台路由器,完全使用CISCO的IOS配置接口。默认的状态下所有的接口都是可以路由的接口。Catalsty49

必备知识:
首先我门应当了解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
附图:



推荐阅读
  • HSRP热备份路由器协议的应用及配置
    本文介绍了HSRP热备份路由器协议的应用及配置方法,包括设计目标、工作原理、配置命令等。通过HSRP协议,可以实现在主动路由器故障时自动切换到备份路由器,保证网络连通性。此外,还介绍了R1和R2路由器的配置方法以及Sw1和Sw2交换机的配置方法,最后还介绍了测试连通性和路由追踪的方法。 ... [详细]
  • 本文详细介绍了cisco路由器IOS损坏时的恢复方法,包括进入ROMMON模式、设置IP地址、子网掩码、默认网关以及使用TFTP服务器传输IOS文件的步骤。 ... [详细]
  • NSD cisco高级路由与交换技术2014.8.12
    实验01:DHCP服务的应用实验目标:通过建立DHCP服务,给计算机自动分配地址实验环境:实验步骤:一、配置计算机pc8pc ... [详细]
  • 动态多点××× 单云双HUB
    动态多点是一个高扩展的IPSEC解决方案传统的ipsecS2S有如下劣势1.中心站点配置量大,无论是采用经典ipsec***还是采用greoveripsec多一个分支 ... [详细]
  • VScode格式化文档换行或不换行的设置方法
    本文介绍了在VScode中设置格式化文档换行或不换行的方法,包括使用插件和修改settings.json文件的内容。详细步骤为:找到settings.json文件,将其中的代码替换为指定的代码。 ... [详细]
  • 本文介绍了在rhel5.5操作系统下搭建网关+LAMP+postfix+dhcp的步骤和配置方法。通过配置dhcp自动分配ip、实现外网访问公司网站、内网收发邮件、内网上网以及SNAT转换等功能。详细介绍了安装dhcp和配置相关文件的步骤,并提供了相关的命令和配置示例。 ... [详细]
  • 本文讨论了在openwrt-17.01版本中,mt7628设备上初始化启动时eth0的mac地址总是随机生成的问题。每次随机生成的eth0的mac地址都会写到/sys/class/net/eth0/address目录下,而openwrt-17.01原版的SDK会根据随机生成的eth0的mac地址再生成eth0.1、eth0.2等,生成后的mac地址会保存在/etc/config/network下。 ... [详细]
  • IP经常分为内网和外网的,内网IP一般是有路由器分配的,尤其是想公司可能都有各自的内网IP,公用的公网IP。查询内网IP的通用方法是通过doc指令来查询,如ipconfig或者ipconfigall ... [详细]
  • 域名解析系统DNS
    文章目录前言一、域名系统概述二、因特网的域名结构三、域名服务器1.根域名服务器2.顶级域名服务器(TLD,top-leveldomain)3.权威(Authoritative)域名 ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • Java学习笔记之面向对象编程(OOP)
    本文介绍了Java学习笔记中的面向对象编程(OOP)内容,包括OOP的三大特性(封装、继承、多态)和五大原则(单一职责原则、开放封闭原则、里式替换原则、依赖倒置原则)。通过学习OOP,可以提高代码复用性、拓展性和安全性。 ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • 配置IPv4静态路由实现企业网内不同网段用户互访
    本文介绍了通过配置IPv4静态路由实现企业网内不同网段用户互访的方法。首先需要配置接口的链路层协议参数和IP地址,使相邻节点网络层可达。然后按照静态路由组网图的操作步骤,配置静态路由。这样任意两台主机之间都能够互通。 ... [详细]
  • RouterOS 5.16软路由安装图解教程
    本文介绍了如何安装RouterOS 5.16软路由系统,包括系统要求、安装步骤和登录方式。同时提供了详细的图解教程,方便读者进行操作。 ... [详细]
  • Python项目实战10.2:MySQL读写分离性能优化
    本文介绍了在Python项目实战中进行MySQL读写分离的性能优化,包括主从同步的配置和Django实现,以及在两台centos 7系统上安装和配置MySQL的步骤。同时还介绍了创建从数据库的用户和权限的方法。摘要长度为176字。 ... [详细]
author-avatar
胡意顺LOL
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有