实验1 交换机的基本配置

您所在的位置:网站首页 了解交换机原理的软件 实验1 交换机的基本配置

实验1 交换机的基本配置

2024-04-09 01:30| 来源: 网络整理| 查看: 265

【实验名称】交换机的基本配置 【实验目的】掌握交换机命令行各种操作模式的区别,能够使用各种帮助信息,以及命令进行基本的配置 【实验设备】交换机1台、Console线1条、电脑1台 【实验拓扑】在这里插入图片描述 【实验步骤】 步骤1 交换机各个操作模式直接的切换

//使用enable命令从用户模式进入特权模式 Switch>enable //使用configure terminer命令从特权模式进入全局配置模式 Switch#configure terminal //使用interface命令进入接口配置模式 Switch(config)#interface fastEthernet 0/1 //使用exit命令退回上一级操作模式 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/2 //使用end命令直接退回特权模式 Switch(config-if)#end Switch#

步骤2 交换机命令行界面基本功能

//显示当前模式下所有可执行的命令 Switch#? Exec commands: clear Reset functions clock Manage the system clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions (see also 'undebug') delete Delete a file dir List files on a filesystem disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC logout Exit from the EXEC more Display the contents of a file no Disable debugging informations ping Send echo messages reload Halt and perform a cold restart resume Resume an active network connection setup Run the SETUP command facility show Show running system information ssh Open a secure shell client connection telnet Open a telnet connection terminal Set terminal line parameters traceroute Trace route to destination undebug Disable debugging functions (see also 'debug') vlan Configure VLAN parameters write Write running configuration to memory, network, or terminal //使用tab键补全命令 Switch#en Switch#enable //使用?显示当前模式下所有以“con”开头的命令 Switch#con? configure connect //使用命令的简称 Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. //显示interface命令后可执行的参数 Switch(config)#interface ? Ethernet IEEE 802.3 FastEthernet FastEthernet IEEE 802.3 GigabitEthernet GigabitEthernet IEEE 802.3z Port-channel Ethernet Channel of interfaces Vlan Catalyst Vlans range interface range command

步骤3 配置交换机的名称

//使用configure terminer命令从特权模式进入全局配置模式 Switch#configure terminal //使用honstname命令更改交换机的名称 Switch(config)#hostname zhangsan zhangsan(config)#end

步骤4 查看交换机的系统和配置信息

//查看交换机的系统信息:show version zhangsan#show version Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1) Copyright (c) 1986-2005 by cisco Systems, Inc. Compiled Wed 18-May-05 22:31 by jharirba Image text-base: 0x80010000, data-base: 0x80562000 ROM: Bootstrap program is is C2950 boot loader Switch uptime is 14 minutes, 26 seconds System returned to ROM by power-on Cisco WS-C2950-24 (RC32300) processor (revision C0) with 21039K bytes of memory. Processor board ID FHK0610Z0WC Last reset from system-reset Running Standard Image 24 FastEthernet/IEEE 802.3 interface(s) 63488K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address: 00D0.5800.C097 Motherboard assembly number: 73-5781-09 Power supply part number: 34-0965-01 Motherboard serial number: FOC061004SZ Power supply serial number: DAB0609127D Model revision number: C0 Motherboard revision number: A0 Model number: WS-C2950-24 System serial number: FHK0610Z0WC Configuration register is 0xF //查看正在运行的有效配置:show running-config zhangsan#show running-config Building configuration... Current configuration : 979 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname zhangsan ! ! ! spanning-tree mode pvst ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! end


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3