文档详情

校园网设备配置的操作步骤

人***
实名认证
店铺
DOC
190KB
约18页
文档ID:412957041
校园网设备配置的操作步骤_第1页
1/18

校园网设备配■的操作步骤路由器A的配置:1・ 配置路由器主机名(注:从用户模式进入特权模式)(注:从特权模式进入全局配置模式)(注:将主机名配置为“A”)Red-Giant>enableRed-Giant#configure terminal2・配置路由器远程登陆密码A(config)# line vty 0 4A(config-line)#loginA(config-line)#password starRed-Giant(config)#hostname A A(config)#(注:进入路由器vty0至vty4虚拟终端线路模式)(注:将路由器远程登陆口令设置为“star” ) 3・配置路由器特权模式口令A (conf ig) #enable password star (明文方式进入) 或:A (conf ig) #enable secret st ar (加密方式进入)(注:将路由器特权模式口令配置为“star” )4. 为路由器各接口分配IP地址A (config) #in terface fas tet hernet 0 注:进入路由器 fas tethernet 0 的接口配置模式A(config-if)#ip address 172. 16. 1. 1 255. 255. 255. 0注:设置路由器fastethernet 0的IP地址为172. 16. 1. 1,对应的子网掩码为255. 255. 255. 0 A(config-if) #no shut (注意要打开端口,不要忘记操作注:手工打开物理接口。

A (config) #in terface fas tet hernet 1 注:进入路由器 fas tet hernet 1 的接口配置模式 A(config-if)#ip address 172.16.2.2 255. 255. 255. 0注:设置路由器fastethernet 1的IP地址为172. 16. 2. 2,对应的子网掩码为255. 255. 255. 0 注:手工打开物理接口测试结果§1・ 查看路由器端口为up, up.§ 2.两台主机分别ping与其直连的路由器的Fastethernet 口,应为通.§3•从Administrator主机ping WWW服务器,结果应为通验证命令1、 show run 2、 show controllers s 0 3、 show int4、 show ip int brief 5、 ping 6、 telnet 注意事项§通过show contr s 0来查看该端是DCE还是DTE, DCE端需要配置时钟速率,否则接口线协议 为 down交换机操作VLAN配置:§实验名称:VLAN—本交换机隔离§实验设备:S3550-24 (1台§实验目的:通过划分PORT VLAN实现本交换端口隔离§实验时间:30分钟SWITCH#configureterminalSWITCH(config)# vlanSWITCH(config-vlan)#SWITCH(config)# vlanSWITCH(config-vlan)#SWITCH(config-if)#式SWITCH(config-if)#SWITCH(config-if)#模式SWITCH(config-if)#测试结果10name20name注:进入交换机全局配置模式注:创建vlan 10 test10 注:将 Vlan 10 命名为 test10注:创建vlan 20test20 注:将 Vlan 20 命名为 test200/5 注:进入fastethernet 0/5的接口配置模interface fastethernetswitch acce s s v l an 1 0 interface fastethernetswitchaccessvlan20注:将 fastethernet 0/5 端口加入 vlan 10 中0/15 注:进入 fastethernet 0/15 的接口配置注:将 fastethernet 0/15 端口加入 vlan 20 中§ PC1和PC2设成192.168. 10. 0/24网段的地址,在划VLAN之前可以Ping通。

§划分VLAN之后,PC1与PC 2不能相互ping通验证命令§ Show vlan注意事项:§清空交换机原有vlan配置: delete flash:config.text deleteflash:vlan.dat§实验名称:VLAN/802・1Q-跨交换机VLAN§实验设备:S3550-24 (2台)§实验目的:通过802. 1Q实现VLAN跨交换机§实验时间:30分钟 交换机Swi tch1:注:进入交换机全局配置模式 注:给交换机命名为switch1Switch#configureterminalSwitch(config)#hostnameSwitch1test10test20Switch1(config)#vlan 10Switch1(config-vlan)#nameSwitch1(config)#vlan 20Switch1(config-vlan)#name注:创建vlan 10注:将Vlan 10命名为test10注:创建vlan 20注:将Vlan 20命名为test20注:进入fastethernet 0/5的接口配注:将 fastethernet 0/5 端口加入 vlan注:进入 fastethernet 0/15 的接口注:将 fastethernet 0/15 端口加入 vlan注:进入 fastethernet 0/24 的接口注:将 fastethernet 0/24 设为 tag vlan注:进入交换机全局配置模式注:给交换机命名switch2Switch1(config-if)# interface fastethernet 0/5 置模式Switch1(config-if)#switchaccessvlan10 10中Switch1(config-if)# interface fastethernet 0/15 配置模式Switch1(config-if)#switchaccessvlan20 20中Switch1(config-if)# interface fastethernet 0/24 配置模式Switch1(config-if)# switchport mode trunk 模式 交换机Swi tch2:Switch#configureterminalSwitch(config)# hostname Switch2Switch2(config)# vlan 10Switch2(config-vlan)# name test10Switch2(config-if)# interface fastethernet 置模式Switch2(config-if)# switch access vlan 10 10中Switch2(config-if)# interface fastethernet 配置模式Switch2(config-if)# switchport mode trunk 模式注:创建 vlan 10注:将 Vlan 10 命名为 test100/5 注:进入 fastethernet 0/5 的接口配注:将 fastethernet 0/5 端口加入 vlan0/24 注:进入 fastethernet 0/24 的接口注:将 fastethernet 0/24 设为 tag vlan测试结果:§ PC1与PC3地址都设成192.168. 10. 0/24的地址.PC2地址设成192. 168. 20. 0/24的地址. §当 PC1 与 PC3 都分别接在两台交换机的 f 0/5 口 时,即在同一 Vlan 中,可互相 ping 通.§当 PC2 与 PC1,PC3 不在同一 vlan 中则不通 验证命令:§show vlan§show int f0/24 switchport注意事项:§清空交换机原有配置:delete flash:config.textdelete flash:vlan.dat §实验名称:VLAN/802. 1Q-VLAN间通信§实验设备:S3550-24 (2台)§实验目的:接上面实验(2),通过三层交换机实现vian间互相通信。

§实验时间:30分钟 配置方法:第一步:分别创建每个VLAN三层SVI端口,并分配IP地址:Switch(config)# interface vlan 注:创建虚拟 VLANSwitch(config-if)# ip address

第二步:将每个VLAN内主机的网关指定为本VLAN接口地址 实验步骤:交换机 Switch1:Switch#configure terminal 注:进入交换机全局配置模式Switch(config)# hostname Switch1 注:给交换机命名Switch1(config)# int vlan 10 注:创建虚拟接口 vlan 10Switch1(config-if)#ip address 注:配置虚拟接口 vlan 10的地址为Switch1(config-if)#exit 注:返回到全局配置模式Switch1(config)# int vlan 20 注:创建虚拟接口 vlan 20Switch1(config-if)#ip address 注:配置虚拟接口 vlan 20的地址为测试结果:§将PC1和PC3的默认网关设置为192. 168. 10. 254;将PC2的默认网关设置为192. 168. 20. 254. §不同VLAN内的主机可以互相PING通验证命令:§Show vlan §Show int f 0/24 switchport §Show ip int注意事项:§一定要设置PC的网关。

交换网络中的冗余链路的实验§实验名称:生成树一802・1d /802.1w§实验设备:S3550-24 (1 台)、S2126G (1 台)§实验目的:掌握如何通过STP (802.1d)和RSTP (802.1w)将某一链路临时阻塞掉来解决交换 网络中冗余链路§实验时间:40 分钟生成树协议目的:建立网络最佳树形拓扑结构1 •根交换机(Root Switch):每广播域选出一个根交换机2•根口(Root Port):从每个非根交换机到达根交换机的具有最佳路径的端口.处于转发状态 (Forwarding)3•指定端口 (Designated Port):从每个网段到达根交换机的具有最佳路径的端口.处于转发状 态 (Forwarding)4•阻塞端口(Non-designated Port或Alternate Port ):阻塞其它的冗余端口,处于阻塞状态 (Blocking)实验步骤:Switch1:Switch1#configure terminal 注:进入全局配置模式Switch(config)#hos。

下载提示
相似文档
正为您匹配相似的精品文档