版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Dell switch vlan 划分及路由转发配置(dell 6224 三层)1. 网络拓扑结构(图略):硬件环境:1台dell 6224 三层交换机, 2台 pc 主机,一台管理pc主机网络连接:将其中两台主机分别接入交换机的vlan 2及vlan 3,管理pc用串口线通过超级终端连接交换机的console 口.网络规划: 交换机共划分3个vlan ,分别如下:交换机管理vlan(使用默认的,vlan 1): 192.168.6.9Vlan 划分如下:Port ( 19): vlan 1 (ip 192.168.6.9)Port(10) : trunk allowed vlan add 1
2、-3, “trunk”端口(允许全部三个vlan通过)Port(1120) : vlan 2 (ip 192.168.7.9)Port( 2124): vlan 3 (ip 192.168.8.9)Pc 主机ip地址:Pc1: ip address :192.168.7.199 gateway:192.168.7.9 (即vlan 2的ip 地址),并接入vlan 2上的任意一个端口,如port :18pc2: ip address :192.168.8.152 gateway:192.168.8.9 (即vlan 3的ip 地址)实验测试:测试主机pc1与pc2 在不同vlan 间能否通信?
3、交换机具体配置如下:console>enconsole#show run!Current Configuration:!System Description "Dell 24 Port Gigabit Ethernet, 2.2.0.3, VxWorks5.5.1"!System Software Version 2.2.0.3!configurevlan databasevlan 2-3exitstackmember 1 1exitip address 192.168.6.9 255.255.255.0ip routinginterface vlan 2routin
4、gip address 192.168.7.9 255.255.255.0exitinterface vlan 3routingip address 192.168.8.9 255.255.255.0exitusername "admin" password a6ad02483506938f1f86ea32c2390f52 level 15 encrypted!interface ethernet 1/g10switchport mode trunkswitchport trunk allowed vlan add 1-3exit!interface ethernet 1/
5、g11switchport access vlan 2exit!interface ethernet 1/g12switchport access vlan 2exit!interface ethernet 1/g13switchport access vlan 2exit!interface ethernet 1/g14switchport access vlan 2exit!interface ethernet 1/g15switchport access vlan 2exit!interface ethernet 1/g16switchport access vlan 2exit!int
6、erface ethernet 1/g17switchport access vlan 2exit!interface ethernet 1/g18switchport access vlan 2exit!interface ethernet 1/g19switchport access vlan 2exit!interface ethernet 1/g20switchport access vlan 2exit!interface ethernet 1/g21switchport access vlan 3exit!interface ethernet 1/g22switchport acc
7、ess vlan 3exit!interface ethernet 1/g23switchport access vlan 3exit!interface ethernet 1/g24switchport access vlan 3exitconsole#2. 配置的具体操作如下:(1)查看初始配置:console#show vlanVLAN Name Ports Type Authorization- - - - -1 Default ch1-24, Default Required 1/g1-1/xg4console#这是”划分vlan及配置路由转发” 前的配置,仅仅配置了默认管理vlan
8、(vlan 1及其ip地址 :192.168.6.9)console#show run!Current Configuration:!System Description "Dell 24 Port Gigabit Ethernet, 2.2.0.3, VxWorks5.5.1"!System Software Version 2.2.0.3!configurestackmember 1 1exitip address 192.168.6.9 255.255.255.0username "admin" password a6ad02483506938f1
9、f86ea32c2390f52 level 15 encryptedexitconsole#(2)进行vlan划分及ip等配置:console#configureconsole(config)#vlan database /进入vlan 数据库模式console(config-vlan)#vlan 2 /创建vlan 2Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.console(config-vlan)#vla
10、n 3 /创建vlan 3Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.console(config-vlan)#exitconsole(config)#interface vlan 2 /进入VLAN 2 的接口配置模式console(config-if-vlan2)#ip address 192.168.7.9 255.255.255.0 /配置VLAN 2的IPconsole(config-if-vlan2
11、)#exitconsole(config)#interface vlan 3 /进入VLAN3 的接口配置模式console(config-if-vlan3)#ip address 192.168.8.9 255.255.255.0 /配置VLAN 3的IPconsole(config-if-vlan3)#exitconsole(config)#(3)将指定范围的端口加入相应VLAN onsole(config)#interface range ethernet 1/g1-1/g9 / 指定加入vlan 的端口范围console(config-if)#switchport mode acces
12、s /指定 端口为”access”模式console(config-if)#switchport access vlan 1 /将以上端口加入vlan 1Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.console(config-if)#exitconsole(config)#interface range ethernet 1/g11-1/g20console(config-if)#switchport mod
13、e accessconsole(config-if)#switchport access vlan 2Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.console(config-if)#exitconsole(config)#interface range ethernet 1/g21-1/g24console(config-if)#switchport mode accessconsole(config-if)
14、#switchport access vlan 3Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.console(config-if)#exitconsole(config)#exitconsole(config)#end查看是否指定的端口已正确加入相应vlan :console#show vlanVLAN Name Ports Type Authorization- - - - -1 Default ch1-24
15、, Default Required 1/g1-1/g10, 1/xg1-1/xg42 1/g11-1/g20 Static Required3 1/g21-1/g24 Static Requiredconsole#(4)配置(干线) ”trunk “端口console#console#configureconsole(config)#interface ethernet 1/g10 /进入 端口 1/g10 的接口配置模式console(config-if-1/g10)#switchport mode trunk /将端口设置为”trunk”模式Warning:'switchport
16、 mode trunk' removes the interface(s) from VLAN 1 by default.console(config-if-1/g10)#switchport trunk allowed vlan add 1-3 /配置”trunk”允许通过的vlan Warning: The use of large numbers of VLANs or interfaces may cause significantdelays in applying the configuration.查看”trunk port” 是否已经成功配置:console(confi
17、g-if-1/g10)#endconsole#show vlanVLAN Name Ports Type Authorization- - - - -1 Default ch1-24, Default Required 1/g1-1/g10, 1/xg1-1/xg42 1/g10-1/g20 Static Required3 1/g10, Static Required 1/g21-1/g24console#console(config-if-1/g10)#(5)开启ip routing (路由转发):console#configure /进入全局配置模式console(config)#ip
18、routing /配置路由转发查看路由转发是否已经开启及最终配置是否正确:console#show run!Current Configuration:!System Description "Dell 24 Port Gigabit Ethernet, 2.2.0.3, VxWorks5.5.1"!System Software Version 2.2.0.3!configurevlan databasevlan 2-3exitstackmember 1 1exitip address 192.168.6.9 255.255.255.0ip routing 表明路由转发已
19、开启interface vlan 2routingip address 192.168.7.9 255.255.255.0exitinterface vlan 3routingip address 192.168.8.9 255.255.255.0exitusername "admin" password a6ad02483506938f1f86ea32c2390f52 level 15 encrypted!interface ethernet 1/g10switchport mode trunkswitchport trunk allowed vlan add 1-3 表
20、明trunk 已设置并且已配置好允许全部3个vlan 数据通过trunk 端口”1/g10” exit!interface ethernet 1/g11switchport access vlan 2exit!interface ethernet 1/g12switchport access vlan 2exit!interface ethernet 1/g13switchport access vlan 2exit!interface ethernet 1/g14switchport access vlan 2exit!interface ethernet 1/g15switchport a
21、ccess vlan 2exit!interface ethernet 1/g16switchport access vlan 2exit!interface ethernet 1/g17switchport access vlan 2exit!interface ethernet 1/g18switchport access vlan 2exit!interface ethernet 1/g19switchport access vlan 2exit!interface ethernet 1/g20switchport access vlan 2exit!interface ethernet
22、 1/g21switchport access vlan 3exit!interface ethernet 1/g22switchport access vlan 3exit!interface ethernet 1/g23switchport access vlan 3exit!interface ethernet 1/g24switchport access vlan 3exitexitconsole#(6)通过超级终端,在此交换机上测试vlan 间是否已经能够互通?:console#ping 192.168.6.9Pinging 192.168.6.9 with 64 bytes of
23、data:64 bytes from 192.168.6.9: icmp_seq = 0. time < 10ms64 bytes from 192.168.6.9: icmp_seq = 1. time < 10ms64 bytes from 192.168.6.9: icmp_seq = 2. time < 10ms64 bytes from 192.168.6.9: icmp_seq = 3. time < 10ms-192.168.6.9 PING Statistics-4 packets transmitted,4 packets received,0% pa
24、cket lossround-trip (ms) min/avg/max = 0/0/0console#ping 192.168.8.9Pinging 192.168.8.9 with 64 bytes of data:-192.168.8.9 PING Statistics-4 packets transmitted,0 packets received,100% packet lossround-trip (ms) min/avg/max = 0/NaN/0console#ping 192.168.7.9Pinging 192.168.7.9 with 64 bytes of data:-
25、192.168.7.9 PING Statistics-4 packets transmitted,0 packets received,100% packet lossround-trip (ms) min/avg/max = 0/NaN/0说明:此处之所以不能ping 通”192.168.7.9”及”192.168.8.9”,是因为trunk 端口”1/g10” 处于”down”状态:现在”1/g10”端口接一网线,使该端口由“down”变为“up”状态即可(因为本例只使用该一台交换机)这是接线前的状态:console#show interfaces status ethernet 1/g
26、10 / 查看端口”trunk” 1/g10 的 状态Port Type Duplex Speed Neg Link Flow Control State Status- - - - - - -1/g10 Gigabit - Level N/A Unknown Auto Down InactiveFlow Control:Disabledconsole#这是接线后的状态:console#show interfaces status ethernet 1/g10Port Type Duplex Speed Neg Link Flow Control State Status- - - - - -
27、 -1/g10 Gigabit - Level Full 100 Auto Up InactiveFlow Control:Disabledconsole#此时因为trunk port (1/g10) 已经接入网线,并由“down”改变为“up”状态此时再次测试是否vlan 之间能够互通?console#ping 192.168.6.9Pinging 192.168.6.9 with 64 bytes of data:64 bytes from 192.168.6.9: icmp_seq = 0. time < 10ms64 bytes from 192.168.6.9: icmp_se
28、q = 1. time < 10ms64 bytes from 192.168.6.9: icmp_seq = 2. time < 10ms64 bytes from 192.168.6.9: icmp_seq = 3. time < 10ms-192.168.6.9 PING Statistics-4 packets transmitted,4 packets received,0% packet lossround-trip (ms) min/avg/max = 0/0/0console#ping 192.168.7.9Pinging 192.168.7.9 with 6
29、4 bytes of data:64 bytes from 192.168.7.9: icmp_seq = 0. time < 10ms64 bytes from 192.168.7.9: icmp_seq = 1. time < 10ms64 bytes from 192.168.7.9: icmp_seq = 2. time < 10ms64 bytes from 192.168.7.9: icmp_seq = 3. time < 10ms-192.168.7.9 PING Statistics-4 packets transmitted,4 packets rec
30、eived,0% packet lossround-trip (ms) min/avg/max = 0/0/0console#ping 192.168.8.9Pinging 192.168.8.9 with 64 bytes of data:64 bytes from 192.168.8.9: icmp_seq = 0. time < 10ms64 bytes from 192.168.8.9: icmp_seq = 1. time < 10ms64 bytes from 192.168.8.9: icmp_seq = 2. time < 10ms64 bytes from 192.1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 商场软装合同范例
- 合作办厂生产加工合同模板
- 厂房场地租赁合同模板
- 发型师聘用合同范例
- 个人卖货合同范例
- 个人佣金合同模板中英
- 分期车辆合同范例
- 人工智能辅助消费者行为分析与预测合同
- it维护合同范例封面
- 农村建房承建合同范例
- 本科生毕业论文写作指导93590课件
- JC/T 547-2017 陶瓷砖胶粘剂
- 网络安全 100mw光伏并网电站电气系统设计
- 《国际中文教育概论》课件全套 第1-12章 从对外汉语教学到国际中文教育- 国际中文教育前瞻
- 艾灸烫伤护理
- 招标投标从业人员知识竞赛试题(试题及答案1-200题)
- 第18课《善待同学》课件
- 全麻术后复苏护理查房
- 教学《电力电子技术》(第2版)南余荣
- 飞花令题库完整
- 社团活动未来规划
评论
0/150
提交评论