三层交换机组播配置实例
华为三层交换机配置案例

华为三层交换机配置案例华为三层交换机配置案例下面以华三通信H3C S3600-28P-SI为例,给大家带来华为三层交换机配置案例,希望对你有帮助!配置命令system-view //进入系统视图[H3C]display current-configuration //显示当前配置//以下开始配置第一步:划分VLAN,并描述vlan 1description local-S3600vlan 2description link-to-wenquanvlan 3description link-to-ruzhouvlan 4description link-to-xiaotunvlan 5description link-to-baofengvlan 6description link-to-pingxivlan 7description link-to-pingnanvlan 8description Uplink-to-Putianvlan 9description link-to-pingxicentre第二步:给VLAN 划网关interface Vlan-interface2description link to wenquanip address 10.41.77.41 255.255.255.192 interface Vlan-interface3description link to ruzhouip address 10.41.77.105 255.255.255.192 interface Vlan-interface4description link to xiaotunip address 10.41.77.169 255.255.255.192 interface Vlan-interface5description link to baofengip address 10.41.77.233 255.255.255.192 interface Vlan-interface6description link to pingxiip address 10.41.78.41 255.255.255.192 interface Vlan-interface7description link to pingnanip address 10.41.78.105 255.255.255.192 interface Vlan-interface8description uplink to putianip address 10.41.244.102 255.255.255.252 interface Vlan-interface9description link to pingxicentreip address 10.41.80.233 255.255.255.192 第三步:给VLAN 指定端口interface Ethernet1/0/2description link to wenquanport access vlan 2interface Ethernet1/0/3description link to ruzhouport access vlan 3interface Ethernet1/0/4description link to xiaotunport access vlan 4interface Ethernet1/0/5description link to baofengport access vlan 5interface Ethernet1/0/6description link to pingxiport access vlan 6interface Ethernet1/0/7description link to pingnanport access vlan 7interface Ethernet1/0/8description uplink to putianport access vlan 8interface Ethernet1/0/9 to Ethernet1/0/24description link to pingxicentreport access vlan 9第四步:配置路由协议//(1)用RIP配动态路由ripnetwork 10.41.77.41network 10.41.77.105network 10.41.77.169network 10.41.77.233network 10.41.78.41network 10.41.78.105network 10.41.80.233network 10.41.244.102//(2)配静态路由(只用对远端设备配一条路由即可,本地自通)---推荐用此协议ip route 0.0.0.0 0.0.0.0 10.41.244.101案例:华为S3600三层交换机配置方法sys[Quidway]vlan 2[Quidway-vlan2]port e1/0/2[Quidway-vlan2]int vlan 2[Quidway-Vlan-interface2]ip add 10.41.77.41 255.255.255.192 //温泉网关[Quidway-Vlan-interface2]vlan 3[Quidway-vlan3]port e1/0/3[Quidway-vlan3]int vlan 3[Quidway-Vlan-interface3]ip add 10.41.77.105 255.255.255.192 //汝州网关[Quidway-Vlan-interface3]vlan 4[Quidway-vlan4]port e1/0/4[Quidway-vlan4]int vlan 4[Quidway-Vlan-interface4]ip add 10.41.77.169 255.255.255.192 //小屯网关[Quidway-Vlan-interface4]vlan 5[Quidway-vlan5]port e1/0/5[Quidway-vlan5]int vlan 5[Quidway-Vlan-interface5]ip add 10.41.77.233 255.255.255.192 //宝丰网关[Quidway-Vlan-interface5]vlan 6[Quidway-vlan6]port e1/0/6[Quidway-vlan6]int vlan 6[Quidway-Vlan-interface6]ip add 10.41.78.41 255.255.255.192 //平西网关[Quidway-Vlan-interface6]vlan 7[Quidway-vlan7]port e1/0/7[Quidway-vlan7]int vlan 7[Quidway-Vlan-interface7]ip add 10.41.78.105 255.255.255.192 //平南网关[Quidway-Vlan-interface7]vlan 8[Quidway-vlan8]port e1/0/8[Quidway-vlan8]int vlan 8[Quidway-Vlan-interface8]ip add 10.41.244.102 255.255.255.252 //省中心网关[Quidway-Vlan-interface8]vlan 9[Quidway-vlan9]port e1/0/9 to e1/0/24[Quidway-vlan9]int vlan 9[Quidway-Vlan-interface9]ip add 10.41.80.233 255.255.255.192 //分中心网关//配置路由ip route 0.0.0.0 0.0.0.0 10.41.244.101华为三层交换机上如何实现不同vlan间的通信命令如下:一、组网需求:交换机配置了4个VLAN,分别为VLAN1,VLAN2,VLAN3,VLAN4,要求VLAN1可以与VLAN2,3,4互访,但是VLAN2,3,4之间不能互访,用Hybrid端口属性实现此功能。
Dell三层交换机配置实例

Dell三层交换机配置实例在这个文档中,我们将提供一些关于Dell三层交换机配置的实例。
这将帮助您了解如何正确配置和管理这些交换机,使其能够满足您的网络需求。
1. 配置VLAN要配置VLAN,请按照以下步骤操作:1. 使用管理员账户登录到Dell三层交换机的管理界面。
2. 打开命令行界面,并输入以下命令以进入全局配置模式:configure3. 创建一个新的VLAN,输入以下命令并替换`vlan_id`和`vlan_name`为您想要的VLAN的ID和名称:vlan databasevlan vlan_id name vlan_name4. 将一个或多个端口分配给VLAN,输入以下命令并替换`interface_range`和`vlan_id`为您要配置的界面范围和VLAN的ID:interface range interface_rangeswitchport access vlan vlan_id5. 保存配置并退出全局配置模式,输入以下命令:wrexit2. 配置静态路由要配置静态路由,请按照以下步骤操作:1. 使用管理员账户登录到Dell三层交换机的管理界面。
2. 打开命令行界面,并输入以下命令以进入全局配置模式:configure3. 添加静态路由,输入以下命令并替换`destination_network`,`next_hop_ip`和`interface`为您要配置的目标网络、下一跳IP和接口:ip route destination_network next_hop_ip interface4. 保存配置并退出全局配置模式,输入以下命令:wrexit3. 配置端口聚合要配置端口聚合,请按照以下步骤操作:1. 使用管理员账户登录到Dell三层交换机的管理界面。
2. 打开命令行界面,并输入以下命令以进入全局配置模式:configure3. 创建一个聚合组,输入以下命令并替换`group_number`为您想要创建的聚合组的编号:interface port-channel group_number4. 将端口添加到聚合组,输入以下命令并替换`interface_range`为要添加的端口范围:interface range interface_rangechannel-group group_number mode on5. 配置聚合组的参数,例如速度和模式,输入以下命令并替换`group_number`、`speed`和`mode`为您想要配置的聚合组的编号、速度和模式:interface port-channel group_numberspeed speedmode mode6. 保存配置并退出全局配置模式,输入以下命令:wrexit希望这些配置实例可以帮助您正确地配置Dell三层交换机。
三层交换机的配置实例

三层交换机的配置实例三层交换机的配置实例1、交换机配置模版(以迈普4152E 交换机为例)hostname HEBSJZZXCG5_WN_AS02service password-encryptno service new-encryptservice login-secureenable password maipuuser admin password 0 adminip access-list standard 110 permit 10.59.16.0 0.0.0.25520 permit 10.59.18.0 0.0.0.255exitip access-list standard telnet_acl10 permit 10.59.16.0 0.0.0.25520 permit 100.255.1.0 0.0.0.25530 permit 100.255.0.0 0.0.0.255exitaaa new-modelaaa authentication login default tacacs localaaa authentication enable default tacacs enableaaa authorization exec default tacacs localaaa authorization commands 1 default tacacs local aaa authorization commands 15 default tacacs local aaa accounting exec default start-stop tacacsaaa accounting commands 1 default start-stop tacacs aaa accounting commands 15 default start-stop tacacs ip ctrl-protocol unicastip ctrl-protocol multicastip load-sharing per-destinationvlan 1exitvlan 2021description TO-HEBSJZZX3_WN_AS01 exit vlan 2051description TO-2600C-ABISexitvlan 2052description TO-2600C-OAexitvlan 2053description TO-2600C-TESTexit!slot_0_S4152E!slot 0/0port 0/0/0port-type nniport access vlan 2021exitport 0/0/1port-type nniport access vlan 2021exitport 0/0/2port-type nniport access vlan 2021exitport 0/0/3port-type nniport access vlan 2021 exitport 0/0/4port-type nniport access vlan 2021 exitport 0/0/5port-type nniexitport 0/0/6port-type nniport access vlan 2021 exit port 0/0/7port-type nniport access vlan 2021 exit port 0/0/8port-type nniport access vlan 2021 exit port 0/0/9port-type nniport access vlan 2021 exit port 0/0/10port-type nniport access vlan 2021 exit port 0/0/11port-type nniport access vlan 2021 exit port 0/0/12port-type nniport access vlan 2021 exitport-type nniport access vlan 2021 exit port 0/0/14port-type nniport access vlan 2021 exit port 0/0/15port-type nniport access vlan 2021 exit port 0/0/16port-type nniexitport 0/0/17port-type nniport access vlan 2021 exit port 0/0/18port-type nniport access vlan 2021 exit port 0/0/19port-type nniport access vlan 2021 exit port 0/0/20port-type nniport access vlan 2021 exit port 0/0/21port-type nniport access vlan 2021 exit port 0/0/22port-type nniport access vlan 2021 exitport-type nniport access vlan 2021 exit port 0/0/24port-type nniport access vlan 2021 exit port 0/0/25port-type nniport access vlan 2021 exit port 0/0/26port-type nniport access vlan 2021 exit port 0/0/27port-type nniexitport 0/0/28port-type nniport access vlan 2021 exit port 0/0/29port-type nniport access vlan 2021 exit port 0/0/30port-type nniport access vlan 2021 exit port 0/0/31port-type nniport access vlan 2021 exit port 0/0/32port-type nniport access vlan 2051 exitport-type nniport access vlan 2051 exit port 0/0/34port-type nniport access vlan 2051 exit port 0/0/35port-type nniport access vlan 2051 exit port 0/0/36port-type nniport access vlan 2051 exit port 0/0/37port-type nniport access vlan 2051 exit port 0/0/38port-type nniexitport 0/0/39port-type nniport access vlan 2051 exitport 0/0/40port-type nniport access vlan 2051 exitport 0/0/41port-type nniport access vlan 2051 exitport-type nniport access vlan 2052exitport 0/0/43port-type nniport access vlan 2052exitport 0/0/44port-type nniport access vlan 2052exitport 0/0/45port-type nniport access vlan 2052exitport 0/0/46description TO-HEBSJZZX2_WN_AS03 port-type nni port mode trunkport trunk allowed vlan allport trunk pvid vlan 1traffic-shape 10240 12288exitport 0/0/47description TO-2600Cport-type nniport mode trunkport trunk allowed vlan allport trunk pvid vlan 1!end!slot_1_SM41-4GE!slot 0/1port 0/1/0port-type nniport access vlan 2053exitport 0/1/1port-type nniport access vlan 2053exitport 0/1/2port-type nniexitport 0/1/3port-type nniexitinterface vlan 1description TO-9512E-GUANLIip address 100.255.1.131 255.255.255.0exitip route 0.0.0.0 0.0.0.0 100.255.1.254logging 10.59.18.1 0 6line vty 0 15exec-timeout 0 300login localexitsnmp-server startsnmp-server view default 1.3.6.1 includesnmp-server community public view default ro 1snmp-server host 130.25.2.103 traps community publicversion 2 snmp-server trap-source 10.6.24.222 snmp-server enable traps snmp authentication snmp-server enable traps snmp linkdownsnmp-server enable traps snmp linkup2、配置操作3、网点迈普4152E交换机配置模版enaconf tvlan 2051description ABISexitvlan 2052description OAexitvlan 2053description TESTexitvlan 2054description waiwangexitport 0/0/0-0/0/47port-type nniport 0/0/0-0/0/29port access vlan 2051exitport 0/0/30-0/0/39port access vlan 2052exitport 0/0/40-0/0/44port access vlan 2054exitport 0/0/45-0/0/47port access vlan 2053 exit exitwr。
三层交换机14-IPv6组播VLAN典型配置举例

三层交换机14-IPv6组播VLAN典型配置举例H3C S5130-EI IPv6 组播VLAN 典型配置举例目录1 简介 (1)2 配置前提 (1)3 基于子VLAN的IPv6 组播VLAN (1)3.1 组网需求 (1)3.1.1 现网描述 (1)3.2 配置思路 (3)3.3 使用版本 (3)3.4 配置注意事项 (3)3.5 配置步骤 (4)3.6 验证配置 (5)3.7 配置文件 (5)4 基于端口的IPv6 组播VLAN (7)4.1 组网需求 (7)4.1.1 现网描述 (7)4.1.2 需求描述 (8)4.2 配置思路 (9)4.3 使用版本 (9)4.4 配置注意事项 (9)4.5 配置步骤 (10)4.6 验证配置 (12)4.7 配置文件 (12)5 相关资料 (14)1 简介本文档介绍了基于子VLAN 的IPv6 组播VLAN 和基于端口的IPv6 组播VLAN 的配置举例。
2 配置前提本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。
如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文假设您已了解IPv6 组播VLAN 特性。
3 基于子VLAN的IPv6 组播VLAN3.1 组网需求3.1.1 现网描述如图1 所示,某楼层分布了两个不同的部门,通过在Switch B上配置不同的VLAN来区分这两个部门,其中用户VLAN 10、VLAN 20 分别标识了部门1、部门2。
交换机Switch A上配置了VLAN 10、VLAN 20 对应的VLAN虚接口,分别作为用户VLAN的网关。
由于业务需要,部门1 中有多台主机需要同时接收网络中某一发送源发送的数据。
该企业采用了IPv6 组播的传输方式:在Switch A 的Vlan-interface10 上运行MLDv1。
同时为避免组播数据在数据链路层的广播问题,该企业在交换机Switch B 的VLAN 10 内开启了版本 1 的MLD Snooping功能。
三层交换机详细配置实例(图)

三层交换机与路由器的配置实例(图解)目的:学会使用三层交换与路由器让处于不同网段的网络相互通信实验步骤:一:二层交换机的配置:在三个二层交换机上分别划出两VLAN,并将二层交换机上与三层交换或路由器上的接线设置为trunk接口二:三层交换机的配置:1:首先在三层交换上划出两个VLAN,并进入VLAN为其配置IP,此IP将作为与他相连PC 的网关。
2:将与二层交换机相连的线同样设置为trunk接线,并将三层交换与路由器连接的线设置为路由接口(no switchsport)3:将路由器和下面的交换机进行单臂路由的配置实验最终结果:拓扑图下各个PC均能相互通信交换机的配置命令:SW 0:Switch>Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int f0/2Switch(config-if)#switchport access vlan 2Switch(config-if)#no shutSwitch(config-if)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#exitSwitch(config)#SW 1:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#SW 2:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunkSwitch(config-if)#三层交换的配置命令:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to downSwitch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int vlan 1Switch(config-if)#no shut%LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up Switch(config-if)#ip address 192.168.1.168 255.255.255.0Switch(config-if)#exitSwitch(config)#int vlan 2%LINK-5-CHANGED: Interface Vlan2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip addSwitch(config-if)#ip address 192.168.2.168 255.255.255.0Switch(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#no switchport%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#Switch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#ip routingSwitch(config-if)#exitSwitch(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2Switch(config)#路由器的配置:Router>enRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#exitRouter(config)#int f0/0Router(config-if)#no shutRouter(config-if)#exitRouter(config)#int f0/0.1Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip address 192.168.3.168 255.255.255.0Router(config-subif)#exitRouter(config)#int f0/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip addRouter(config-subif)#ip address 192.168.4.168 255.255.255.0Router(config-subif)#exitRouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.1Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/1Router(config-if)#ip addRouter(config-if)#ip address 192.168.10.2 255.255.255.0 Router(config-if)#。
三层交换机配置实例

2950(config-if)# switchport trunk pruning vlan remove VLAN_# 清除不希望消减的VLAN
1900(config)# vtp pruning enable|disable 启用/禁用修剪(默认启用)
1900(config)# vtp trap enable 启用SNMP陷阱(默认启用)
1900# show vtp 验证VTP配置
2950# vtp database 访问VLAN和VTP配置(以下均是在IOS12.1前用,12.1后全是在全局配置模式下)
2950(config)# vlan VLAN_# 进入VLAN数据库(ISO12.1后用)
2950(config-vlan)# name VLAN_name 创建VLAN
2950(config-if)# switchport mode access 指定连接是接入链路连接
2950(config-if)# switchport access vlan VLAN_# 指定VLAN是接入链路连接
4000> enable 进入特权模式
4000>(enable) set password 设置用户模式密码
4000>(enable) set enablepass 设置授权密码
4000>(enable) set interface sc0 IP_address mask 配置IP地址
2950(vlan)# vtp domain VTP_domain_name 定义交换机域名
H3C三层交换机经典案例【含注释】分析

H3C三层交换机经典案例【含注释】分析H3C S3600系列交换机常用配置举例1.1.1 配置举例1. 组网需求当前用户通过Telnet方式登录,且用户级别为管理级(3级)。
当前登录用户需要对通过Console口(AUX用户界面)登录进行如下限定:●设置通过Console口登录交换机的用户不需要进行认证●设置从AUX用户界面登录后可以访问的命令级别为2级●设置Console口使用的波特率为19200bit/s●设置终端屏幕的一屏显示30行命令●设置历史命令缓冲区可存放20条命令●设置AUX用户界面的超时时间为6分钟2. 组网图配置交换机的PC机运行Telnet图1-1配置认证方式为None的AUX用户的组网图3. 配置步骤# 进入系统视图。
system-view# 进入AUX用户界面视图。
[H3C] user-interface aux 0# 设置通过Console口登录交换机的用户不需要进行认证。
[H3C-ui-aux0] authentication-mode none# 设置从AUX用户界面登录后可以访问的命令级别为2级。
[H3C-ui-aux0] user privilege level 2# 设置Console口使用的波特率为19200bit/s。
[H3C-ui-aux0] speed 19200# 设置终端屏幕的一屏显示30行命令。
[H3C-ui-aux0] screen-length 30# 设置历史命令缓冲区可存放20条命令。
[H3C-ui-aux0] history-command max-size 20# 设置AUX用户界面的超时时间为6分钟。
[H3C-ui-aux0] idle-timeout 61.1.2 配置举例1. 组网需求当前用户通过Telnet方式登录,且用户级别为管理级(3级)。
当前登录用户需要对通过Console口(AUX用户界面)登录进行如下限定:●设置通过Console口登录交换机的用户进行Password认证●设置用户的认证口令为明文方式,口令为123456●设置从AUX用户界面登录后可以访问的命令级别为2级●设置Console口使用的波特率为19200bit/s●设置终端屏幕的一屏显示30行命令●设置历史命令缓冲区可存放20条命令●设置AUX用户界面的超时时间为6分钟2. 组网图配置交换机的PC机运行Telnet图1-2配置认证方式为Password的AUX用户的组网图3. 配置步骤# 进入系统视图。
三层交换机配置实例教程文件

三层交换机配置实例三层交换综合实验一般来讲,设计方案中主要包括以下内容:◆∙∙∙∙∙ 用户需求◆∙∙∙∙∙ 需求分析◆∙∙∙∙∙ 使用什么技术来实现用户需求◆∙∙∙∙∙ 设计原则◆∙∙∙∙∙ 拓扑图◆∙∙∙∙∙ 设备清单一、模拟设计方案【用户需求】1.应用背景描述某公司新建办公大楼,布线工程已经与大楼内装修同步完成。
现公司需要建设大楼内部的办公网络系统。
大楼的设备间位于大楼一层,可用于放置核心交换机、路由器、服务器、网管工作站、电话交换机等设备。
在每层办公楼中有楼层配线间,用来放置接入层交换机与配线架。
目前公司工程部25人、销售部25人、发展部25人、人事部10人、财务部加经理共15人。
2.用户需求为公司提供办公自动化、计算机管理、资源共享及信息交流等全方位的服务,目前的信息点数大约100个,今后有扩充到200个的可能。
公司的很多业务依托于网络,要求网络的性能满足高效的办公要求。
同时对网络的可靠性要求也很高,要求在办公时间内,网络不能宕掉。
因此,在网络设计过程中,要充分考虑到网络设备的可靠性。
同时,无论是网络设备还是网络线路,都应该考虑冗余备份。
不能因为单点故障,而导致整个网络的瘫痪,影响公司业务的正常进行。
公司需要通过专线连接外部网络。
【需求分析】为了实现网络的高速、高性能、高可靠性还有冗余备份功能,主要用于双核心拓扑结构的网络中。
本实验采用双核心拓扑结构,将三层交换技术和VTP、STP、EthernetChannel综合运用。
【设计方案】1、在交换机上配置VLAN,控制广播流量2、配置2台三层交换机之间的EthernetChannel,实现三层交换机之间的高速互通3、配置VTP,实现单一平台管理VLAN,同时启用修剪,减少中继端口上不必要的广播信息量4、配置STP,实现冗余备份、负载分担、避免环路5、在三层交换机上配置VLAN间路由,实现不同VLAN之间互通6、通过路由连入外网,可以通过静态路由或RIP路由协议【网络拓扑】根据用户对可靠性的要求,我们将网络设计为双核心结构,为了保证高性能,采用双核心进行负载分担。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
三层交换机组播配置实例
『配置环境参数』
1.组播服务器地址为19
2.168.0.10/24,网关为192.168.0.1/24
2.三层交换机SwitchA通过上行口G1/1连接组播服务器,交换机连接组播服务器接口interface vlan 100,地址为192.168.0.1。
3. vlan10和vlan20下挂两个二层交换机SwitchB和SwitchC,地址为10.10.10.1/24和10.10.20.1/24。
『组网需求』
1:在SwitchA、SwitchB和SwitchC上运行组播协议,要求L3上配置为IP PIM-SM模式
2:数据配置步骤『PIM-SM数据流程』
PIM-SM(Protocol Independent Multicast,Sparse Mode)即与协议无关的组播稀疏模式,属于稀疏模式的组播路由协议。
PIM-SM主要用于组成员分布相对分散、范围较广、大规模的网络。
与密集模式的扩散?剪枝不同,PIM-SM协议假定所有的主机都不需要接收组播数据包,只有主机明确指定需要时,PIM-SM路由器才向它转发组播数据包。
PIM-SM协议中,通过设置汇聚点RP(Rendezvous Point)和自举路由器BSR (Bootstrap Router),向所有PIM-SM路由器通告组播信息,并利用路由器的加入/剪枝信息,建立起基于RP的共享树RPT(RP-rooted shared tree)。
从而减少了数据报文和控制报文占用的网络带宽,降低路由器的处理开销。
组播数据沿着共享树流到该组播组成员所在的网段,当数据流量达到一定程度,组播数据流可以切换到基于源的最短路径树SPT,以减少网络延迟。
PIM-SM不依赖于特定的单播路由协议,而是使用现存的单播路由表进行RPF检查。
运行PIM-SM协议,需要配置候选RP和BSR,BSR负责收集候选RP发来的信息,并把它们广播出去。
【SwitchA相关配置】
1.使能多播路由
[SwitchA]multicast routing-enable
2.创建(进入)vlan100的虚接口
[SwitchA]int vlan 100
3.给vlan100的虚接口配置IP地址
[SwitchA-Vlan-interface100]ip add 192.168.0.1 255.255.255.0
4.创建(进入)vlan10的虚接口
[SwitchA]int vlan 10
5.给vlan10的虚接口配置IP地址
[SwitchA-Vlan-interface10]ip add 10.10.10.1 255.255.255.0
6.在接口上启动PIM SM
[SwitchA-Vlan-interface10]pim SM
7.创建(进入)vlan20的虚接口
[SwitchA]interface Vlan-interface 20
8.给vlan20的虚接口配置IP地址
[SwitchA-Vlan-interface20]ip add 10.10.20.1 255.255.255.0
9.在接口上启动PIM SM
[SwitchA-Vlan-interface20]pim SM
10.进入PIM视图
[SwitchA]pim
11.配置候选BSR
[SwitchA-pim]c-bsr vlan 100 24
12.配置候选RP
[SwitchA-pim]c-rp vlan 100
『PIM-DM数据流程』
PIM-DM(Protocol Independent Multicast,Dense Mode)属于密集模式的组播路由协议。
PIM-DM适用于小型网络,在这种网络环境下,组播组的成员相对比较密集。
PIM-DM的工作过程可以概括为:邻居发现、扩散?剪枝过程、嫁接阶段。
1.使能多播路由
[SwitchA]multicast routing-enable
2.创建(进入)vlan100的虚接口
[SwitchA]int vlan 100
3.给vlan100的虚接口配置IP地址
[SwitchA-Vlan-interface100]ip add 192.168.0.1 255.255.255.0
4.创建(进入)vlan10的虚接口
[SwitchA]int vlan 10
5.给vlan10的虚接口配置IP地址
[SwitchA-Vlan-interface10]ip add 10.10.10.1 255.255.255.0
6.在接口上启动PIM DM
[SwitchA-Vlan-interface10]pim DM
7.创建(进入)vlan20的虚接口
[SwitchA]interface Vlan-interface 20
8.给vlan20的虚接口配置IP地址
[SwitchA-Vlan-interface20]ip add 10.10.20.1 255.255.255.0
9.在接口上启动PIM DM
[SwitchA-Vlan-interface20]pim DM
【SwitchB相关配置】
swtichB可以不配置,或者支持IGMP SNOOPING,可以在系统视图下启动multicast routing-enable。
如果是二层交换机,则只需在系统视图下配置igmp-snooping即可;
目前交换机的IGMP只支持V1/V2版本。
【SwitchC相关配置】
switchC可以不配置,或者支持IGMP SNOOPING,可以在系统视图下启动multicast routing-enable。
如果是二层交换机,则只需在系统视图下配置igmp-snooping即可;
目前交换机的IGMP只支持V1/V2版本。
3、测试验证PC1和PC2都能够看到正常的组播源内容。