当前位置:首页 » 存储配置 » 如何用指令配置交换机

如何用指令配置交换机

发布时间: 2022-08-15 18:30:08

㈠ 帮我找给交换机配置的命令

l 交换机的管理方式基本分为两种:带内管理和带外管理。 l 通过交换机的Console 端口管理交换机属于带外管理;这种管理方式不占用交换机的网络端口,第 一次配置交换机必须利用Console端口进行配置。 l 通过Telnet、拨号等方式属于带内管理。 l 交换机的命令行操作模式主要包括: l 用户模式Switch> l 特权模式Switch# l 全局配置模式Switch(config)# l 端口模式Switch(config-if)# 实验步骤: l 新建Packet Tracer 拓扑图 l 了解交换机命令行 l 进入特权模式(en) l 进入全局配置模式(conf t) l 进入交换机端口视图模式(int f0/1) l 返回到上级模式(exit) l 从全局以下模式返回到特权模式(end) l 帮助信息(如? 、co?、?) l 命令简写(如conf t) l 命令自动补全(Tab) l 快捷键(ctrl+c 中断测试,ctrl+z 退回到特权视图) l Reload重启。(在特权模式下) l 修改交换机名称(hostname X) l 配置交换机端口参数(speed,plex) l 查看交换机版本信息(show version) l 查看当前生效的配置信息(show run) 实验设备 Switch_2960 1 台;PC 1 台;配置线; PDF created with pdfFactory Pro trial version www.pdffactory.com 3 PC console端口 enable conf t interface fa 0/1 speed 100 plex full end show version show run 第三章交换机的 Telnet远程登陆配置 实验目标 l 掌握采用Telnet方式配置交换机的方法。 实验背景 l 第一次在设备机房对交换机进行了初次配置后,你希望以后在办公室或出差时也可以对设备进行远程管 理。现要在交换机上做适当配置。 技术原理 l 配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一个网段): l为 telnet 用户配置用户名和登录口令: l 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。 l switch(config)# enable password ****** 设置进入特权模式的密码 l switch(config-line)可以设置通过console端口连接设备及Telnet 远程登录时所需的密码; l switch(config)# line console 0 l switch(config-line)# password 5ijsj l switch(config-line)# login l switch(config)# line vty 0 4 l switch(config-line)# password 5ijsj l switch(config-line)# login 实验步骤 l 新建Packet Tracer 拓扑图 l 配置交换机管理ip 地址 l Switch(config)# int vlan 1 l Switch(config-if)# ip address **IP** **submask*** l 配置用户登录密码 l Switch(config)# enable password ******* 设置进入特权模式的密码 l Switch(config)# line vty 0 4 l Switch(config-line)# password 5ijsj PDF created with pdfFactory Pro trial version www.pdffactory.com 4 l Switch(config-line)# login 实验设备 Switch_2960 1 台;PC 1 台;直连线;配置线 PC 192.168.1.2 255.255.255.0 192.168.1.1 PC 终端 en conf t inter vlan 1(默认交换机的所有端口都在VLAN1 中) ip address 192.168.1.1 255.255.255.0 no shutdown exit enable password 123456 line vty 0 4 password 5ijsj login end show run PC CMD ping 192.168.1.1 telnet 192.168.1.1 password:5ijsj enable password:123456 show runing

㈡ 交换机配置命令是什么

1、交换机配置命令,英文名Switchboard
Command,是一种计算机语言,用来控制交换机的语言。
2、交换机的配置方式
(1)使用控制(console)端口,使用超级终端配置交换机
console是一个用来连接配置终端的异步串行接口,其接口标准是RJ-45。
(2)使用telnet配置交换机
用远程登陆telnet对交换机进行配置,是一种远程管理设备的常用方式。
(3)使用浏览器配置交换机
该方式可以对交换机进行配置,也可以修改交换机的参数,以便对交换机进行管理,还可以查看交换机的运行状态。
3、显示交换表命令的使用方法
(1)大中型交换机
在交换机超级用户模式下输入命令:Cisco-4000#show
cam
dynamic。
(2)小型交换机
在交换机超级用户模式下输入命令:
Cisco-3548#show
mac-address-table。

㈢ 简述交换机的几种配置模式,以及进入的操作命令是什么

交换机的模式有普通用户模式、特权用户模式、全局配置模式、接口配置模式、vlan配置模式、恢复交换机的缺省配置等等。

1、普通用户模式

开机直接进入普通用户模式,在该模式下我们只能查询交换机的一些基础信息,如版本号(show version) 等,权限最低,只能使用少量的查看行政的命令。如需进入特权模式一般需要密码。。

2、特权用户模式

在普通用户模式下输入enable命令即可进入特权用户模式,在该模式下我们可以查看交换机的配置信息和调试信息等等,使用更多的查看性质的命令和做一些少量修改的路由器参数命令,进入全局配置模式不需要任何密码。

3、全局配置模式

在特权用户模式下输入c terminal命令即可进入全局配置模式,在该模式下主要完成全局参数的配置,不能使用查看性质的命令,在此模式下做大量的路由配置模式,可用在此基础上接口配置模式,线路配置模式,路由进程模式。

4、接口配置模式

在全局配置模式下输入interface interface-list 即可进入接口配置模式,在该模式下主要完成接口参数的配置。

5、vlan配置模式

在全局配置模式下输入vlan vlan-number即可进入vlan配置模式,在该配置模式下可以完成vlan的一些相关配置。

6、恢复交换机的缺省配置
为了不让实验受交换机以前的配置影响,常常需要先恢复交换机的缺省配置。在特权用户模式下顺序使用erase,restet命令即可恢复交换机的缺省配置。

(3)如何用指令配置交换机扩展阅读:

交换机说明:

1、在实验环境中,如果配置两个vlan: vlan1, vlan2, 注意其中vlan1是交换机默认的vlan,既不能创建也不能删除,所有端口都属于vlan1,所以应该首先创建vlan2,然后为各个vlan分配端口(switchport interface-list)。

2、使用命令行进行配置的时候,在任何模式下均可以使用“?”来帮助我们完成配置。

使用“?”可以查询任何模式下可以使用的命令;或者某参数后面可以输入的参数;或者以某字母开始的命令。例如在全局配置模式下输入“?”或“show ?”或“s?”,可以看看它们分别有什么帮助信息显示。

如果你不能确认当前模块所在的插槽的编号,可以通过命令行中的show命令来查看插槽以及插槽.上的端口信息;也可以在路由器特权EXEC模式下执行show version命 令,在路由器版本信息中有每个模块所在插槽编号的信息。

㈣ 查看交换机端口并进行设置用什么命令

查看交换机端口并进行设置用什么命令的方法。

如下参考:

1.首先,将交换机连接到控制台端口,启动交换机,输入交换机配置接口。

㈤ 华三交换机配置命令

华三交换机配置命令如下:

<H3C>system-view

[H3C]super password H3C:设置用户分级密码

[H3C]undo super password:删除用户分级密码

[H3C]localuser bigheap 123456 1:Web网管用户设置,1(缺省)为管理级用户,缺admin,admin

[H3C]undo localuser bigheap:删除Web网管用户

[H3C]user-interface aux 0:只支持0

[H3C-Aux]idle-timeout 2 50:设置超时为2分50秒,若为0则表示不超时,默认为5分钟

[H3C-Aux]undo idle-timeout:恢复默认值

[H3C]user-interface vty 0:只支持0和1

[H3C-vty]idle-timeout 2 50:设置超时为2分50秒,若为0则表示不超时,默认为5分钟

[H3C-vty]undo idle-timeout:恢复默认值

[H3C-vty]set authentication password 123456:设置telnet密码,必须设置

[H3C-vty]undo set authentication password:取消密码

[H3C]display users:显示用户

[H3C]display user-interface:显示用户界面状态

(5)如何用指令配置交换机扩展阅读:

H3C Switch命令:

一、模式命令:

1、用户模式:Switch>

2、特权模式:Switch>enable

Switch#

3、全局配置模式:Switch#config terminal

Switch(config)#

4、接口配置模式:Switch(config)#interface fastethernet0/1

Switch(config-if)#

5、Line模式:Switch(config)#line console 0

Switch(config-line)#

二、特权模式下的命令:

1、查看机MAC地址:Switch#show mac-address-table

2、发现(CDP):

Switch#show cdp

Switch#show cdp interface fastethernet0/1

Switch#show cdp neighbors

Switch#show cdp neighbors detail

Switch#show cdp entry

工作原理:

交换机工作于OSI参考模型的第二层,即数据链路层。交换机内部的CPU会在每个端口成功连接时,通过将MAC地址和端口对应,形成一张MAC表。

在今后的通讯中,发往该MAC地址的数据包将仅送往其对应的端口,而不是所有的端口。因此,交换机可用于划分数据链路层广播,即冲突域;但它不能划分网络层广播,即广播域。

参考资料:网络—交换机

参考资料:网络—交换机命令

㈥ 交换机怎么配置呀

1、将USB转串口网口数据线一头插入交换机前面板的“consel”口,另一头插入电脑的USB接口连接好。

㈦ 交换机如何配置

准备工具/原料:一台PC和一台交换机

1、首先将一台PC和一台交换机用线缆连接起来。

㈧ 华为交换机配置命令有哪些

华为交换机配置命令有以下几种:

1、用户模式:交换机启动后在控制台直接按回车就进入用户模式(远程管理telnet 交换机ip时需要口令)。

  • ?——帮助

  • quit——退出当前模式返回上一级

  • <switchone>ping ip-address——测试网络连通性

  • <switchone>telnet ip-address——从交换机登陆其它设备<switchone>super--从用户模式进入特权模式

2、特权模式:进入特权模式一般需要口令,可以防止非法登陆交换机

  • <switchone>display current——显示当前运行的配置

  • <switchone>save——保存当前运行的配置

  • <switchone>reboot——重启交换机

  • <switchone>display mac——显示mac地址表

  • <switchone>display inteface ethernet 0/1——查看以太网口状态

  • <switchone>system-view——从特权模式进入全局模式

3、全局模式:更改配置

a. 进入以太网口配置模式及相关配置

  • [switchone]interface ethernet ——0/1

  • [switchone-Ethernet0/1]shutdown/undo shutdown ——关闭/打开接口

  • [switchone-Ethernet0/1]port link-type access/trunk——接口类型设为untagged端口(默认)/tagged端口(用于上行口和级联口)

  • access端口发出和接收的帧不带vlan标记,即untagged端口

  • trunk端口发出和接收的帧一般要带vlan标记,即tagged端口

  • 设为tagged口后,还要做以下操作:

  • [switchone-Ethernet0/1]port trunk permit vlan 225 to 250——这条命令是允许有vlan标记225到250的帧上传

b. 进入vlan配置模式(为了便于操作,不用在接口模式下配置access,而在vlan模式下进行相关操作)

  • [switchone]vlan 225

  • [switchone-vlan225] port Ethernet 1/1将ethernet 1/1加入vlan225

c. 设置super口令

[switchone]super password simple 2403h 特权口令为2403h

㈨ 交换机的配置命令

1.在基于IOS的交换机上设置主机名/系统名:
switch(config)# hostname hostname
在基于CLI的交换机上设置主机名/系统名:
switch(enable) set system name name-string

2.在基于IOS的交换机上设置登录口令:
switch(config)# enable password level 1 password
在基于CLI的交换机上设置登录口令:
switch(enable) set password
switch(enable) set enalbepass

3.在基于IOS的交换机上设置远程访问:

switch(config)# interface vlan 1

switch(config-if)# ip address ip-address netmask

switch(config-if)# ip default-gateway ip-address

在基于CLI的交换机上设置远程访问:

switch(enable) set interface sc0 ip-address netmask broadcast-address

switch(enable) set interface sc0 vlan

switch(enable) set ip route default gateway

4.在基于IOS的交换机上启用和浏览CDP信息:

switch(config-if)# cdp enable

switch(config-if)# no cdp enable

为了查看Cisco邻接设备的CDP通告信息:

switch# show cdp interface [type modle/port]

switch# show cdp neighbors [type mole/port] [detail]

在基于CLI的交换机上启用和浏览CDP信息:

switch(enable) set cdp {enable|disable} mole/port

为了查看Cisco邻接设备的CDP通告信息:

switch(enable) show cdp neighbors[mole/port] [vlan|plex|capabilities|detail]

5.基于IOS的交换机的端口描述:

switch(config-if)# description description-string

基于CLI的交换机的端口描述:

switch(enable)set port name mole/number description-string

6.在基于IOS的交换机上设置端口速度:

switch(config-if)# speed{10|100|auto}

在基于CLI的交换机上设置端口速度:

switch(enable) set port speed moudle/number {10|100|auto}

switch(enable) set port speed moudle/number {4|16|auto}

7.在基于IOS的交换机上设置以太网的链路模式:

switch(config-if)# plex {auto|full|half}

在基于CLI的交换机上设置以太网的链路模式:

switch(enable) set port plex mole/number {full|half}

8.在基于IOS的交换机上配置静态VLAN:

switch# vlan database

switch(vlan)# vlan vlan-num name vla

switch(vlan)# exit

switch# configure teriminal

switch(config)# interface interface mole/number

switch(config-if)# switchport mode access

switch(config-if)# switchport access vlan vlan-num

switch(config-if)# end

在基于CLI的交换机上配置静态VLAN:

switch(enable) set vlan vlan-num [name name]

switch(enable) set vlan vlan-num mod-num/port-list

9. 在基于IOS的交换机上配置VLAN中继线:

switch(config)# interface interface mod/port

switch(config-if)# switchport mode trunk

switch(config-if)# switchport trunk encapsulation {isl|dotlq}

switch(config-if)# switchport trunk allowed vlan remove vlan-list

switch(config-if)# switchport trunk allowed vlan add vlan-list

在基于CLI的交换机上配置VLAN中继线:

switch(enable) set trunk mole/port [on|off|desirable|auto|nonegotiate]

Vlan-range [isl|dotlq|dotl0|lane|negotiate]

10.在基于IOS的交换机上配置VTP管理域:

switch# vlan database

switch(vlan)# vtp domain domain-name

在基于CLI的交换机上配置VTP管理域:

switch(enable) set vtp [domain domain-name]

11.在基于IOS的交换机上配置VTP 模式:

switch# vlan database

switch(vlan)# vtp domain domain-name

switch(vlan)# vtp {sever|cilent|transparent}

switch(vlan)# vtp password password

在基于CLI的交换机上配置VTP 模式:

switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]

12. 在基于IOS的交换机上配置VTP版本:

switch# vlan database

switch(vlan)# vtp v2-mode

在基于CLI的交换机上配置VTP版本:

switch(enable) set vtp v2 enable

13. 在基于IOS的交换机上启动VTP剪裁:

switch# vlan database

switch(vlan)# vtp pruning

在基于CL I 的交换机上启动VTP剪裁:

switch(enable) set vtp pruning enable

14.在基于IOS的交换机上配置以太信道:

switch(config-if)# port group group-number [distribution {source|destination}]

在基于CLI的交换机上配置以太信道:

switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}

15.在基于IOS的交换机上调整根路径成本:

switch(config-if)# spanning-tree [vlan vlan-list] cost cost

在基于CLI的交换机上调整根路径成本:

switch(enable) set spantree portcost moudle/port cost

switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]

16.在基于IOS的交换机上调整端口ID:

switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority

在基于CLI的交换机上调整端口ID:

switch(enable) set spantree portpri {mlle/port}priority

switch(enable) set spantree portvlanpri {mole/port}priority [vlans]

17. 在基于IOS的交换机上修改STP时钟:

switch(config)# spanning-tree [vlan vlan-list] hello-time seconds

switch(config)# spanning-tree [vlan vlan-list] forward-time seconds

switch(config)# spanning-tree [vlan vlan-list] max-age seconds

在基于CLI的交换机上修改STP时钟:

switch(enable) set spantree hello interval[vlan]

switch(enable) set spantree fwddelay delay [vlan]

switch(enable) set spantree maxage agingtiame[vlan]

18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:

switch(config-if)#spanning-tree portfast

在基于CLI的交换机端口上启用或禁用Port Fast 特征:

switch(enable) set spantree portfast {mole/port}{enable|disable}

19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:

switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]

在基于CLI的交换机端口上启用或禁用UplinkFast 特征:

switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]

20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name cv

㈩ 交换机怎么设置

解决方案:
1.下面只介绍进入配置界面的方法,至于如何配置那是比较多的,要视具体情况而定,不作具体介绍。进入配置界面步骤很简单,只需简单的两步:
第1步:单击”开始“按钮选择”运行“菜单项,然后在对话框中按”telnet61.159.62.182“格式输入。
2.登录(当然也可先不输入IP地址,在进入telnet主界面后再进行连接,但是这样会多了一步,直接在后面输入要连接的IP的地址更好些),如图所示。如果为交换机配置了名称,则也可以直接在“Telnet”。
3.命令后面空一个空格后输入交换机配置的名称。
4.这里要注意的是”Hostnqme包括了交换机的名称,但更多的是我们在前面是为交换机配置了IP地址,所以在这里更多的是指交换机的IP地址。格式后面的“Port”一般是不需要输入的,它是用来设定Telnet通信所用的端口的。
5.
一般来说Telnet通信端口,在TCP/IP协议中有规定,为23号端口,最好不用改它,也就是说我们可以不接这个参数。第2步,输入好后,单击“确定”按钮,或单击回车键,建立与远程交换机的连接。如图9所示为与计算机通过Tetnet与Catalyst1900交换机建立连接时显示的界面。
当利用Console口为交换机配置好IP地址信息并启用HTTP服务后,即可通过支持JAVA的Web浏览器访问交换机,并可通过Web通过浏览器修改交换机的各种参数并对交换机进行管理。

热点内容
安卓由哪个公司提供 发布:2024-04-30 12:27:03 浏览:414
服务器2个cpu的内存如何安装 发布:2024-04-30 12:19:02 浏览:326
如何搭建outlook服务器 发布:2024-04-30 10:46:50 浏览:635
美图忘记密码手机如何刷机 发布:2024-04-30 10:45:43 浏览:190
sql字符设置 发布:2024-04-30 10:39:03 浏览:305
androidram 发布:2024-04-30 10:36:06 浏览:280
购买的新车有哪些基本配置 发布:2024-04-30 10:27:32 浏览:324
远程访问摄像头 发布:2024-04-30 10:10:57 浏览:72
贴吧网站源码 发布:2024-04-30 10:10:42 浏览:251
饥荒为什么服务器模组不能用 发布:2024-04-30 10:10:41 浏览:551