admin 管理员组

文章数量: 1086019


2024年4月27日发(作者:解除mousemove事件)

CISCO 设备的简单运行状态

(1)Switch> 开机时自动进入

特权模式 配置系统参数,升级IOS软件,备份配置文件 Switch#

在非特权模式下键入ENABLE 使用quit返回非特权模式全局模式 CISCO交换机

大部分配置都是在这个模式下进行 Switch(config)#

在特权模式下键入configure terminal 使用quit返回特权模式监控模式

升级IOS系统软件 Switch: 开机时摁住面板上的MODE键约5秒钟

(2) 基本设置命令

全局设置 config terminal 设置访问用户及密码 Username username password

password 设置特权密码 enable secret password

设置路由器名 Hostname name

设置静态路由 ip route destination subnet-mask next-hop

启动IP路由 ip routing 启动IPX路由 ipx routing

端口设置 interface type slot/number

设置IP地址 ip address address subnet-mask

设置IPX网络 ipx network network

激活端口 no shutdown

物理线路设置 line type number

启动登录进程 login [local|tacacs server]

设置登录密码 Password password

显示命令任务 命令 查看版本及引导信息 show version

查看运行设置 show running-config

查看开机设置 show startup-config

显示端口信息 show interface type slot/number

显示路由信息 show ip route

3、Catalyst 3560接口说明

FE电接口:符合100Base-TX物理层规范 GE电接口:1000Base-TX物理层规范

工作速率 FE电 接口可以选择10Mbit/s、100Mbit/s两种速率 GE电接口可以选

择10Mbit/s、100Mbit/s、1000Mbit/s三种速率工作模式 自动协商模式

4、Catalyst 3560接口配置

3560的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,

则需要用switchport来使其成为二层端口

(4.1) 配置端口速率及双工模式

可以配置快速以太口的速率为10/100Mbps及千兆以太口的速率为

10/100/1000-Mbps; 但对于SFP端口则不能配置速率及双工模式,有时可以配置

nonegotiate,当需要联接不支持自适应的其它千兆端口时。

Step 1 configure terminal 进入配置状态.

Step 2 interface interface-id 进入端口配置状态.

Step 3 speed {10 | 100 | 1000 | auto | nonegotiate} 设置端口速率 注 1000

只工作在千兆口. GBIC模块只工作在1000 Mbps下. nonegotiate 只能在这些

GBIC上用 1000BASE-SX, -LX, and -ZX GBIC

Step 4 duplex {auto | full | half} 设置全双工或半双工.

Step 5 end 退出

Step 6 show interfaces interface-id 显示有关配置情况

Step 7 copy running-config startup-config 保存

Switch# configure terminal

Switch(config)# interface fastethernet0/3

Switch(config-if)# speed 10

Switch(config-if)# duplex half

(4.2)配置一组端口

Step 1 configure terminal 进入配置状态

Step 2 interface range {port-range}

Switch(config)# interface range fastethernet0/1 - 5 进入组配置状态

Switch(config-if-range)# no shutdown 启用端口

Step 3 end 退回

Step 4 show interfaces [interface-id] 验证配置

Step 5 copy running-config startup-config 保存

(4.3)配置不同类型端口的组:

Switch# configure terminal

Switch(config)# interface range fastethernet0/1 - 3,

Switch(config)#gigabitethernet0/1 - 2

Switch(config-if-range)# no shutdown

(4.4)配置三层口

Catalyst 3560支持三种类型的三层端口: SVIs: 即interface vlan Note 当

生成一个interface Vlan时,只有当把某一物理端口分配给它时才能被激活

· 三层以太网通道口(EtherChannel): 以太通道由被路由端口组成。以太通

道端口接口在“配置以太通道”中被描述。

.路由口:路由口是指某一物理端口在端口配置状态下用no switchport命令生

成的端口 所有的三层都需要IP地址以实现路由交换配置步骤如下: Step 1

configure terminal 进入配置状态

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

vlan-id} | {port-channel port-channel-number} 进入端口配置状态

Step 3 no switchport 把物理端口变成三层口

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

Step 5 no shutdown 激活端口

Step 6 End 退出

Step 7 show interfaces [interface-id]

show ip interface [interface-id]

show running-config interface [interface-id] 验证配置

Step 8 copy running-config startup-config

(4.5)监控及维护端口

监控端口和控制器的状态主要命令见下表:

show interfaces [interface-id] 显示所有端口或某一端口的状态和配置.

show interfaces interface-id status [err-disabled] 显示一系列端口的状

态或错误-关闭的状态

show interfaces [interface-id] switchport 显示二层端口的状态,可以用来

决定此口是否为二层或三层口。

show interfaces [interface-id] description 显示端口描述 show ip


本文标签: 端口 配置 模式 设置 状态