交换机简单操作及配置ppt课件.ppt

上传人:牧羊曲112 文档编号:1643069 上传时间:2022-12-12 格式:PPT 页数:31 大小:1.12MB
返回 下载 相关 举报
交换机简单操作及配置ppt课件.ppt_第1页
第1页 / 共31页
交换机简单操作及配置ppt课件.ppt_第2页
第2页 / 共31页
交换机简单操作及配置ppt课件.ppt_第3页
第3页 / 共31页
交换机简单操作及配置ppt课件.ppt_第4页
第4页 / 共31页
交换机简单操作及配置ppt课件.ppt_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《交换机简单操作及配置ppt课件.ppt》由会员分享,可在线阅读,更多相关《交换机简单操作及配置ppt课件.ppt(31页珍藏版)》请在三一办公上搜索。

1、计算机网络与应用技术,人文信息管理学院计算机教研室任伟,成都医学院,实验内容和目的,掌握交换机等设备的初始化连接。熟悉三层交换机的配置,掌握VLAN的划分及VLAN之间的访问控制。了解DHCP服务的功能。,通过Console连接交换机,1.一台交换机配送了一条Console线,通常情况下选用USB2DB9的转换头将计算机COM口与Console进行连接。,通过Console连接交换机,再将Console线接入交换机Console口中。,通过Console连接交换机,2.选择SecureCRT软件进行登录。SecureCRT支持多种协议,我们选择协议“Serial”,端口选择USB2DB9的端口

2、,波特率选择“9600”。,通过Console连接交换机,如果配置正确,就可以在窗口看见交换机的信息了。,在交换机上查看IOS的版本。,创建VLAN并分配端口,配置两个VLAN,划分VLAN2、VLAN 3。将 Ports 4、5、6 分配给VLAN 2。将 Ports 7、8、9 分配给VLAN3。用show vlan 命令验证配置结果。,创建VLAN并分配端口,Switch(config)#vlan 2Switch(config-vlan)#interface range fa0/4 - 6Switch(config-if-range)#switchport mode access Swi

3、tch(config-if-range)#switchport access vlan 2Switch(config-if-range)#no shSwitch(config-if-range)#exitSwitch(config)#vlan 3Switch(config-vlan)#interface range fa0/7-9Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 3Switch(config-if-range)#no shSwitch(con

4、fig-if-range)#exit,创建VLAN并分配端口,Switch#show vlan,实验要求,1.配置要求:将交换机划分为3个VLANVLAN2为服务器所在网络,命名为SERVER,IP地址段为192.168.2.0,子网掩码为255.255.255.0,网关为192.168.2.1,DNS服务器IP地址为192.168.2.10。 VLAN3为客户机1所在网络,命名为WORK01,IP地址段为192.168.3.0,子网掩码为255.255.255.0,网关为192.168.3.1。 VLAN4为客户机2所在网络,命名为WORK02,IP地址段为192.168.4.0,子网掩码为

5、255.255.255.0,网关为192.168.4.1。Cisco3560兼作DHCP服务器,端口18划分到VLAN2,端口96划分到VLAN3,端口1724划分到VLAN4。,实验要求,2.DHCP服务器实现功能 各VLAN保留210的IP地址不分配,例如,192.168.2.0网段,保留192.168.2.2192.168.2.10的IP地址不分配。3.安全要求 VLAN3和VLAN4不允许互相访问,但都可以访问服务器所在的VLAN2,默认访问控制列表的规则是拒绝所有数据包。,实验拓扑及模拟器属性,实验拓扑,实验拓扑及模拟器属性,模拟器属性安装图示将模拟器的设备连接完毕,设置SERVER

6、的DNS服务。,实验配置命令,1.配置交换机基本信息Switchenable Switch#config terminal Switch(config)#no ip domain-lookup Switch(config)#hostname C3560,实验配置命令,2.创建VLANC3560#en C3560#vlan databaseC3560(vlan)#vlan 2 name serverC3560(vlan)#vlan 3 name work01C3560(vlan)#vlan 4 name work02,实验配置命令,3.设置VLAN IP地址C3560en C3560#conf

7、tC3560(config)#interface VLAN 2C3560(config-if)#ip address 192.168.2.1 255.255.255.0C3560(config-if)#no shutdown C3560(config-if)#interface vlan 3C3560(config-if)#ip address 192.168.3.1 255.255.255.0C3560(config-if)#no shutdown C3560(config-if)#interface vlan 4C3560(config-if)#ip address 192.168.4.1

8、 255.255.255.0C3560(config-if)#no shutdown C3560(config-if)#exit,实验配置命令,4.设置端口全局参数C3560(config)#interface range fa0/1-24C3560(config-if-range)#switchport mode access C3560(config-if-range)#spanning-tree portfast,实验配置命令,5.将端口添加到VLAN2、VLAN3、VLAN4中C3560(config)#interface range fa0/1-8C3560(config-if-ra

9、nge)#switchport access vlan 2C3560(config-if-range)#interface range fa0/9-16C3560(config-if-range)#switchport access vlan 3C3560(config-if-range)#interface range fa0/17-24C3560(config-if-range)#switchport access vlan 4C3560(config-if-range)#exit,实验配置命令,6.配置Cisco3560作为DHCP服务器C3560(config)#ip dhcp poo

10、l serverC3560(dhcp-config)#network 192.168.2.0 255.255.255.0C3560(dhcp-config)#dns-server 192.168.2.10C3560(dhcp-config)#default-router 192.168.2.1C3560(dhcp-config)#exit,实验配置命令,C3560(config)#ip dhcp pool work01C3560(dhcp-config)#network 192.168.3.0 255.255.255.0C3560(dhcp-config)#dns-server 192.168

11、.2.10C3560(dhcp-config)#default-router 192.168.3.1C3560(dhcp-config)#exit,实验配置命令,C3560(config)#ip dhcp pool work02C3560(dhcp-config)#network 192.168.4.0 255.255.255.0C3560(dhcp-config)#dns-server 192.168.2.10C3560(dhcp-config)#default-router 192.168.4.1C3560(dhcp-config)#exit,实验配置命令,7.设置DHCP服务器保留不分配

12、的地址C3560(config)#ip dhcp excluded-address 192.168.2.2 192.168.2.10C3560(config)#ip dhcp excluded-address 192.168.3.2 192.168.3.10C3560(config)#ip dhcp excluded-address 192.168.4.2 192.168.4.10C3560(config)#ip routing,实验配置命令,8.配置访问控制列表C3560(config)#access-list 103 permit ip 192.168.2.0 0.0.0.255 192.

13、168.3.0 0.0.0.255C3560(config)#access-list 103 permit ip 192.168.3.0 0.0.0.255 192.168.2.0 0.0.0.255C3560(config)#access-list 103 permit udp any any eq bootpcC3560(config)#access-list 103 permit udp any any eq tftpC3560(config)#access-list 103 permit udp any eq bootpc anyC3560(config)#access-list 10

14、3 permit udp any eq tftp any,实验配置命令,C3560(config)#access-list 103 permit ip 192.168.2.0 0.0.0.255 192.168.4.0 0.0.0.255C3560(config)#access-list 103 permit ip 192.168.4.0 0.0.0.255 192.168.2.0 0.0.0.255C3560(config)#access-list 104 permit udp any any eq bootpcC3560(config)#access-list 104 permit udp

15、 any any eq tftpC3560(config)#access-list 104 permit udp any eq bootpc anyC3560(config)#access-list 104 permit udp any eq tftp any,实验配置命令,9.应用访问控制列表C3560(config)#interface vlan 3C3560(config-if)#ip access-group 103 outC3560(config-if)#interface vlan 4C3560(config-if)#ip access-group 104 out,实验配置命令,10.保存配置C3560(config-if)#endC3560#copy running-config startup-config,实验验证,11.验证IP地址分配情况和网络连通性保存虚拟机配置后,重新给设备加电,查看PC机是否正确获得IP地址等相关信息。VLAN2下面的PC机跟VLAN3、VLAN4相互间通信都可以,而VLAN3和VLAN4下面的PC机相互间是不能通信的。,实验验证,PC1-01,实验验证,PC2-01,实验验证,SERVER,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号