cisco交换机基本配置,交换机的基本配置步骤

广告位招租
联系电话:13518188210

思科交换机的配置指令

cisco交换机基本配置,交换机的基本配置步骤

http://www.cisco .康姆/cisco/web/psa/configure.html http://www.cisco .康姆/cisco/web/psa/configure.html

凡是cisco给出的交换机配置指令,想找就找

product-switches–再选择你要的型号

http://www.cisco .康姆/cisco/web/CN/psa/configure.html http://www.cisco .康姆/cisco/web/CN/psa/configure.html

以上环节由思科中国官网提供,并提供中文资料。如果你不熟悉网络的话可以通过这个网页去访问。从产品—交换机中选择所需配置。

思科交换机的详细组态方法及指令

cisco交换机基本配置,交换机的基本配置步骤

思科交换机基本组态指令研究

一、交换机口令的设定:

switch>enable;步入特权模式

switch#config terminal;在系统初始化时,首先根据当前的运行状态选择需要进行设置的参数。输入全局配置模式

• Switch(config)#hostname csico ;设置交换机的主机名

switch(config)#tenable secrecy

csico1;设特权加密口令

switch(config)#tenable password csico8 ;设置特权非密口令

switch(config)#line console 0 ;进入控制台口

switch(config-line)#line vty 0-4

;访问虚拟终端

switch(config-line)#login;虚拟终端是指由网络服务器提供给用户的一种具有一定功能和作用,能与计算机进行通信并在计算机上运行的软件。虚拟终端可以登录

change (config-line)#password

csico6;设定虚拟终端的登录口令csico6

switch#exit;返回指令

二、交换机显示指令:

switch#write;保存所述配置信息

switch#show pg ;查看vtp配置信息

switch#show run;查看当前的配置信息

switch#show –

vlan;看vlan的配置资料

switch#show ;查看端口信息

switch#show f0/0

;查阅指定的端口信息

switch#show int f0/0 status;查看任意一个设备的唯一标识,并对其进行加密。查看规定的端口状态

switch#dir lightning: ;查看闪存

Cisco路由器配置指令大全网络2010-06-2606:43:44读657评论0字号:大订阅,小订阅。

(1)模式转换命令等

使用方式—-特权模式,使用命令”enable”

权限模式—-全局配置模式,使用命令”config

t” t”

全局配置模式—-界面模式,使用命令”interface加上接口类型和接口号”

全局配置方式—-线控方式,使用命令”line加接口类型加接口号”

注:

用户模式:看初始化信息。

特权模式:查看全部资料,调试,保存配置资料

全局模式:配置全部信息,为整个路由器或者交换机提供全部界面

接口模式:为特定界面配置

线控模式:控制路由器的界面配置

(2)配置指令

show running config显示所有的配置

show

versin表示版本号与寄存器值之间的关系

shut down封闭界面

no shutdown开启界面

ip add +ip ‰”

分配IP地址

secondary+IP地址是界面配置的第二IP地址

show interface→接口类型→接口号看接口的管理性

the 查看接口是否有DCE电缆 interface of the display controllers

show history看历史记录

show

terminal观察终端记录的尺寸

hostname以上主机名配路由器或者交换机身份

config memory system

修改NVRAM上保存的启动配置

exec timeout 00设置控制台会话超时为0

serve password-encryptin

对全部密码进行手工加密

enable password以上的密码配置为明文密码

ena sec以上密码分配密文密码

row vty 0

4/15进入telnet接口

password+密码配置telnet密码

line aux 0进入AUX接口

password password

+口令配置口令

line con 0进入CON接口

password以上的密码分配

bandwidth加上数字配置带宽

no ip address删除已配置的IP地址

showing the 查看NVRAM中的配置信息 boot configuration

copy

run-config atartup config 保存信息到NVRAM

write保存信息到NVRAM

erasure

startup-config清除NVRAM中的配置信息

show ip interface brief查看接口的谪要信息

banner

motd#+消息+#对路由器或者交换机进行描素消息配置

description+信息配置界面听描素信息

vlan data bank

输入VLAN数据库模式

vlan+vlan号+名称创建VLAN

switchport access vlan +vlan号 switchport access vlan +vlan号

对于VLAN是配接口的

the interface vlan +vlan The 进入VLAN接口模式 of the vertices

ip add+ip地址为VLAN配置管理IP地址

vtp+service/tracsparent/client 配置SW的VTP工作模式 vtp+service/tracsparent/client 配置SW的VTP工作模式

vtp+domain+域名配置SW的VTP域名

vtp加password加密码分配SW

switchport mode trunk 启用中继

no vlan +vlan号 no vlan +vlan号

去掉VLAN

shows the spamming-tree vlan +vlan The 查看VLA怕生成树议 of the algorithm

ip ip

route→非直连网部分→子网掩码→下一跳的地址分配静态/默认路由

show ip route看路由表

showcase protocols

展示了所有被动路由协议,以及在界面中设置了哪一个

show ip protocols展示配置给路由器的路由选择协议,同时,给出用于路由选择协议的实现方法

的定时器上

等等资料

router tear 激活RIP协议

network加直连网段公布

interface lookback 0 激活逻辑接口

passive-interface→接口类型→接口号的配置界面是被动的

debug ip+协议动态显示路由的更新情况

undebug all关闭所有DEBUG信息

router eigrp +as号

启动EIGRP路由协议

network→网段→子网掩码→直连网段的分发

showing ip eigrp neighbours 查看邻居表

to demonstrate the topology ip eigrp 查看拓扑表

show ip eigrp traffic查看发送包数量

router •

ospf +process-ID 激活OSPF协议 ospf +process-ID 激活OSPF协议

network→直连网段→area→区域号分发直连网段

exhibit ip ospf

显示OSPF的进程号和ROUTER-ID

encapsulation加上改变封装格式

non ip admain-lookup

关闭路由器域名搜索

ip routing启用三层交换机中的路由功能

show user查看SW的在线用户

clear-line

+路线编号清理路线

配置一组二层端口

configuring terminal 进入配置状态

nterface span {port-span} 进入组配置状态

配置3层端口

configuring terminal 进入配置状态

interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} |

{port-e

channel-port-number} 进入端口配置状态

no switchport no switchport

将所述物理端口转换为三层口

ip address ip_address subnet_mask 配置IP地址和掩码 p

no shutdown启动端口

例:

Switch(config)# gigabitethernet0/2 interface –

Change(config-if)#

no switchport no switchport

Switch(config-if)#p ip address 192.20.135.21 255.255.255.0

Switch(config-if)# non-stop

配置了VLAN

configuring terminal 进入配置状态

vlan vlan-id输入一个VLAN号,再进入vlan配态,可键入新VLAN号,也可键入旧号修改

cisco交换机配置指令?

cisco交换机基本配置,交换机的基本配置步骤

交换机口令的设定:

switch>enable;步入特权模式

switch#config terminal;在系统初始化时,首先根据当前的运行状态选择需要进行设置的参数。输入全局配置模式

switch(config)#hostname;当一个设备需要与其他设备交换信息时,可以使用交换机来进行数据交换。设定交换机主机名

switch(config)#tenable secrecy xxx ;设置特权加密口令

switch(config)#tenable password xxa ;设置特权非密口令

switch(config)#line console 0 ;进入控制台口

switch(config-line)#line vty 0 4 ;进入虚拟终端. 1-3

switch(config-line)#login ;允许登录 switch(config-line)#login ;允许登录

switch(config-line)#password xx ;设置登录口令xxswitch#exit ;返回命令

交换机VLAN的建立:

category: Switch#vlan database ;进入VLAN设置

switch(vlan)#vlan 2 ;建VLAN 2

switch(vlan)#no vlan 2 ;删vlan 2

switch(config)#int f0/1 ;进入端口1

switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2

switch(config-if)#switchport mode trunk ;设置为干线

switch(config-if)#switchport trunk permitted vlan 1,2 ;设置允许的vlan

switch(config-if)#switchport chunk encloses dot1q ;设置vlan 中继

switch(config)#vtp-domain ;设置发vtp域名

switch(config)#vtp-password ;设置发vtp密码

switch(config)#vtp-mode server ;设置发vtp模式

switch(config)#vtp-mode client ;设置发vtp模式

思科交换机组态保存指令

cisco交换机基本配置,交换机的基本配置步骤

1、先打开思科交换CLI,从特权模式进入全局配置模式,如下图所示。

2、特权模式中交换机可被命名,从而避免了在配置多个交换机时误写交换机的配置。

3、为交换机配备使能密码,在特权模式下需要输入密码才可访问,防止设备可供他人使用。

4、交换机分配VLAN并且为向VLAN添加端口。

5、最后用show:看指令,交换机各项配置等相关资料均需借助show指令才能看到。

思科3层交换机有哪些详细配置指令?

cisco交换机基本配置,交换机的基本配置步骤

三层交换机的基本配置

【实验名称】

三层交换机端口的配置。

【实验目的】

配置打开三层交换机三层功能以达到路由作用。

【背景描述】

公司目前有一台三层交换机需要您检测一下,这台交换机三层功能运行正常吗

【技术原理】

三层交换机以二层交换为主,实现三层路由功能。它采用分层设计思想,将整个网络划分为多个子网并分别对它们实施管理,从而使得每个子网能独立地处理自己所需的信息,而不是像传统的路由器那样与其它设备相通信。三层交换机是根据“一次路由、多次交换”特点,局域网环境下的转发性能要比路由器高得多。由于三层交换机具有较高的网络利用率以及良好的扩展性,因此可以将它作为一个独立的网络设备应用于不同的领域之中。而三层交换机兼有两层功能,能与两层交换机实现良好数据转发。由于其自身特点,三层交换机可以应用于各种不同类型的网络之中。三层交换机以太网接口远远大于普通路由器,更适用于多局域网段的互连。

三层交换机全部端口默认为二层端口,没有路由功能。如果要使用路由功能。无法直接为物理端口分配IP地址。如果将其设置成三层路由器时,则无法实现网络互连互通。但是能够在物理端口上打开三层路由功能。

三层交换机预设的打开路由功能可以通过ip routing命令来控制。

【实现功能】

在三层交换机物理端口上打开路由功能。

【实验设备】

S3550-24或S3550-48(1台),直连线(1条)

【实验步骤】

第一步。

Switch>enable Switch>enable

Switch#configuration terminal

Switch(config)#hostname – S3550-24

S3550-24(config)#ip routing!是目前国内最大容量和最先进的三层网络,它提供了一个完全开放的网络接口,使用户可以方便地在这个平台上进行各种应用。在三层交换机上打开路由功能

第二步。

S3550-24(config)#interface fastethernet 0/5 S3550-24(config)#interface fastethernet 0/5

S3550-24(config-if)#no switchport!这是一款可以在任何网络环境下运行的嵌入式路由器。在端口处打开三层路由功能

S3550-24(config-if)#ip address 192.168.5.1 255.255.255.0 S3550-24(config-if)#ip address 192.168.5.1 255.255.255.0

!为端口配置IP地址

S3550-24(config-if)#no closure

S3550-24(config-if)#end S3550-24(config-if)#end

第三步。

S3550#show ip interface!系统的主要任务是实现对现场总线网络上各个设备和仪表进行实时监控,并在出现故障时及时通知用户。查看界面的状态信息

Interface : Fa0/5

Description : FastEthernet100BaseTX – 0/5

OperStatus : up !接口状态是UP

• ManagementStatus : Enabled

Primary Internet address: 192.168.5.1/24 Primary Internet address: 192.168.5.1/24

Broadcast address : 255.255.255.255

PhysAddress : 00d0.f8ff.bd43 PhysAddress : 00d0.f8ff.bd43

S3550#show interfaces f0/5!是一款基于嵌入式系统的多功能数字示波器。查看界面的状态信息

Interface : FastEthernet100BaseTX – 0/5

Description :

AdminStatus : up !接口状态是UP

OperStatus : ascending

Medium type : copper

Hardware : 10/100BaseTX –

Mtu : 1500

LastChange : 0d:0h:32m:49s LastChange : 0d:0h:32m:49s

AdminDuplex : Automotive

OperDuplex : Not known

AdminSpeed : Auto

OperSpeed : Not known

FlowControlAdminStatus : Off FlowControlAdminStatus : Off

FlowControlOperStatus : Off FlowControlOperStatus : Off

Priority : zero

Distribution blocked :DISABLE

Unfamiliar blocked :DISABLE multicast

Unheard unicast blocked :DISABLE

ARP Timeout : 3600 seconds

Primary Internet address: 192.168.5.1/24 Primary Internet address: 192.168.5.1/24

PhysAddress : 00d0.f8ff.bd43 PhysAddress : 00d0.f8ff.bd43

ManagementStatus:Activated

Broadcast address : 255.255.255.255

主机测试:将PC1的IP地址设为192.168.5.2/24,在PC1上ping 192.168.5.1。

pinging 192.168.5.1

The 192.168.5.1 ping with 32 bytes of data is as follows:

192.168.5.1’s response is as follows: bytes=32 time<1ms TTL=64

192.168.5.1’s response is as follows: bytes=32 time<1ms TTL=64

192.168.5.1’s response is as follows: bytes=32 time<1ms TTL=64

192.168.5.1’s response is as follows: bytes=32 time<1ms TTL=64

Statistics of ping in the year 192.168.5.1.

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round-trip times in milli seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms Minimum = 0ms, Maximum = 0ms, Average = 0ms

【参考配置】

S3550-24#show race-config

System software version : 1.02 Build Oct 17 2005 Release

Building set-up…

Present configuration : 145 bytes

1.0 release

hostname Switch hostname Switch

vlan-1

interface FastEthernet 0/5 interface FastEthernet 0/5

no switchport no switchport

ip address 192.168.5.1 255.255.255.0, p.p

!

end

原创文章,作者:聚禄鼎,如若转载,请注明出处:https://www.xxso.cn/22955.html

(0)
聚禄鼎的头像聚禄鼎
上一篇 2022年12月16日 上午8:32
下一篇 2022年12月16日 上午8:32

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注