搜档网
当前位置:搜档网 › CISCO交换机设置

CISCO交换机设置

交换机设置步骤

1.上电-除电源线外,其它任何线缆都不要插在交换机上

2.自检完成- system led绿色,其它除XPS以外的LED常亮

3.按住MODE按钮不放(持续3s)

4.插上网线,连接电脑(电脑端口设置为自动获取IP地址)

5.进入配置页面:10.0.0.1---用户名及密码都是cisco

交换机密码:cisco1 talent密码:wisdri

6.电脑需要安装USB驱动

7.启用talent登录

输入交换机密码cisco1

Switch>enable Password:

Using driver version 4 for me

Switch>show vlan

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gi1/0/1, Gi1/0/2, Gi1/0/3

Gi1/0/4, Gi1/0/5, Gi1/0/6

Gi1/0/7, Gi1/0/8, Gi1/0/9

Gi1/0/10, Gi1/0/11, Gi1/0/12

Gi1/0/13, Gi1/0/14, Gi1/0/15

Gi1/0/16, Gi1/0/17, Gi1/0/18

Gi1/0/19, Gi1/0/20, Gi1/0/21

Gi1/0/22, Gi1/0/23, Gi1/0/24

Gi1/1/1, Gi1/1/2, Gi1/1/3

Gi1/1/4

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 0 0 100

2 fddi 101002 1500 - - - - - 0 0 100

3 tr 101003 1500 - - - - - 0 0 100

4 fdnet 101004 1500 - - - ieee - 0 0 100

5 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs

------------------------------------------------------------------------------

Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Switch>

Switch>

Switch>

Switch>enable

Password:

Password:

Password:

% Bad secrets

Switch>cisco1

Translating "cisco1"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer address Switch>

Switch>

Switch>

Switch>

Switch>

Switch>

Switch>

Switch>

Switch>

Switch>

Switch>enable

Password:

Password:

Password:

% Bad secrets

Switch>enable

Password:

Password:

Switch#

Switch#

Switch#

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 2

Switch(config-vlan)#name plc

Switch(config-vlan)#end

Switch#

Mar 29 02:33:57.955: %SYS-5-CONFIG_I: Configured from console by console Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 3

Switch(config-vlan)#name level

Switch(config-vlan)#end

Switch#

Mar 29 02:36:58.747: %SYS-5-CONFIG_I: Configured from console by console Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface gigabitethernet1/0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan2

^

% Invalid input detected at '^' marker.

Switch(config-if)#switchport access vlan 2

Switch(config-if)#exit

Switch(config)#interface gigabitethernet1/0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 2

Switch(config-if)#end

Switch#

Mar 29 02:48:26.503: %SYS-5-CONFIG_I: Configured from console by console

Switch#show ip interface brief

Interface IP-Address OK? Method Status Protocol Vlan1 191.167.0.2 YES TFTP up down FastEthernet0 unassigned YES other down down GigabitEthernet1/0/1 unassigned YES unset down down GigabitEthernet1/0/2 unassigned YES unset down down GigabitEthernet1/0/3 unassigned YES unset down down GigabitEthernet1/0/4 unassigned YES unset down down GigabitEthernet1/0/5 unassigned YES unset down down GigabitEthernet1/0/6 unassigned YES unset down down GigabitEthernet1/0/7 unassigned YES unset down down GigabitEthernet1/0/8 unassigned YES unset down down GigabitEthernet1/0/9 unassigned YES unset down down GigabitEthernet1/0/10 unassigned YES unset down down GigabitEthernet1/0/11 unassigned YES unset down down GigabitEthernet1/0/12 unassigned YES unset down down

GigabitEthernet1/0/13 unassigned YES unset down down

GigabitEthernet1/0/14 unassigned YES unset down down GigabitEthernet1/0/15 unassigned YES unset down down GigabitEthernet1/0/16 unassigned YES unset down down GigabitEthernet1/0/17 unassigned YES unset down down GigabitEthernet1/0/18 unassigned YES unset down down GigabitEthernet1/0/19 unassigned YES unset down down GigabitEthernet1/0/20 unassigned YES unset down down GigabitEthernet1/0/21 unassigned YES unset down down GigabitEthernet1/0/22 unassigned YES unset down down GigabitEthernet1/0/23 unassigned YES unset down down GigabitEthernet1/0/24 unassigned YES unset down down GigabitEthernet1/1/1 unassigned YES unset down down GigabitEthernet1/1/2 unassigned YES unset down down GigabitEthernet1/1/3 unassigned YES unset down down GigabitEthernet1/1/4 unassigned YES unset down down Te1/1/1 unassigned YES unset down down Te1/1/2 unassigned YES unset down down

Switch#

Switch#

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface vlan 2

Switch(config-if)#

Mar 29 02:52:06.646: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, chan ged state to down

Switch(config-if)#ip address 10.52.40.254 255.255.255.0

Switch(config-if)#end

Switch#

Mar 29 02:53:30.171: %SYS-5-CONFIG_I: Configured from console by console

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface vlan 3

Switch(config-if)#

Mar 29 02:54:00.672: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, chan ged state to down

Switch(config-if)#ip address 10.52.41.254 255.255.255.0

Switch(config-if)#end

Switch#

Mar 29 02:54:28.765: %SYS-5-CONFIG_I: Configured from console by console

Switch#show ip interface brief

Interface IP-Address OK? Method Status Protocol Vlan1 191.167.0.2 YES TFTP up down Vlan2 10.52.40.254 YES manual up down Vlan3 10.52.41.254 YES manual up down FastEthernet0 unassigned YES other down down GigabitEthernet1/0/1 unassigned YES unset down down GigabitEthernet1/0/2 unassigned YES unset down down GigabitEthernet1/0/3 unassigned YES unset down down GigabitEthernet1/0/4 unassigned YES unset down down GigabitEthernet1/0/5 unassigned YES unset down down GigabitEthernet1/0/6 unassigned YES unset down down GigabitEthernet1/0/7 unassigned YES unset down down GigabitEthernet1/0/8 unassigned YES unset down down GigabitEthernet1/0/9 unassigned YES unset down down GigabitEthernet1/0/10 unassigned YES unset down down

GigabitEthernet1/0/11 unassigned YES unset down down

GigabitEthernet1/0/12 unassigned YES unset down down GigabitEthernet1/0/13 unassigned YES unset down down GigabitEthernet1/0/14 unassigned YES unset down down GigabitEthernet1/0/15 unassigned YES unset down down GigabitEthernet1/0/16 unassigned YES unset down down GigabitEthernet1/0/17 unassigned YES unset down down GigabitEthernet1/0/18 unassigned YES unset down down GigabitEthernet1/0/19 unassigned YES unset down down GigabitEthernet1/0/20 unassigned YES unset down down GigabitEthernet1/0/21 unassigned YES unset down down GigabitEthernet1/0/22 unassigned YES unset down down GigabitEthernet1/0/23 unassigned YES unset down down GigabitEthernet1/0/24 unassigned YES unset down down GigabitEthernet1/1/1 unassigned YES unset down down GigabitEthernet1/1/2 unassigned YES unset down down GigabitEthernet1/1/3 unassigned YES unset down down GigabitEthernet1/1/4 unassigned YES unset down down Te1/1/1 unassigned YES unset down down Te1/1/2 unassigned YES unset down down

Switch#

Switch#

Switch#show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gi1/0/3, Gi1/0/4, Gi1/0/5

Gi1/0/6, Gi1/0/7, Gi1/0/8

Gi1/0/9, Gi1/0/10, Gi1/0/11

Gi1/0/12, Gi1/0/13, Gi1/0/14

Gi1/0/15, Gi1/0/16, Gi1/0/17

Gi1/0/18, Gi1/0/19, Gi1/0/20

Gi1/0/21, Gi1/0/22, Gi1/0/23

Gi1/0/24, Gi1/1/1, Gi1/1/2

Gi1/1/3, Gi1/1/4

2 plc active Gi1/0/1, Gi1/0/2

3 level active

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface range gigabitethernet1/0/3 - 20

Switch(config-if-range)#switch mode access

Switch(config-if-range)#switch access vlan 2

Switch(config-if-range)#end

Switch#

Mar 29 02:59:22.333: %SYS-5-CONFIG_I: Configured from console by console

Switch#show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gi1/0/21, Gi1/0/22, Gi1/0/23

Gi1/0/24, Gi1/1/1, Gi1/1/2

Gi1/1/3, Gi1/1/4

2 plc active Gi1/0/1, Gi1/0/2, Gi1/0/3

Gi1/0/4, Gi1/0/5, Gi1/0/6

Gi1/0/7, Gi1/0/8, Gi1/0/9

Gi1/0/10, Gi1/0/11, Gi1/0/12

Gi1/0/13, Gi1/0/14, Gi1/0/15

Gi1/0/16, Gi1/0/17, Gi1/0/18

Gi1/0/19, Gi1/0/20

3 level active

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface range gigabitethernet1/0/21 - 24

Switch(config-if-range)#switch mode access

Switch(config-if-range)#switch access vlan 3

Switch(config-if-range)#end

Switch#

Mar 29 03:01:19.388: %SYS-5-CONFIG_I: Configured from console by console

Switch#show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Gi1/1/1, Gi1/1/2, Gi1/1/3

Gi1/1/4

2 plc active Gi1/0/1, Gi1/0/2, Gi1/0/3

Gi1/0/4, Gi1/0/5, Gi1/0/6

Gi1/0/7, Gi1/0/8, Gi1/0/9

Gi1/0/10, Gi1/0/11, Gi1/0/12

Gi1/0/13, Gi1/0/14, Gi1/0/15

Gi1/0/16, Gi1/0/17, Gi1/0/18

Gi1/0/19, Gi1/0/20

3 level active Gi1/0/21, Gi1/0/22, Gi1/0/23

Gi1/0/24

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface range gigabitethernet1/1/1 - 4

Switch(config-if-range)#switch mode access

Switch(config-if-range)#switch access vlan 3

Switch(config-if-range)#end

Switch#

Mar 29 03:05:44.921: %SYS-5-CONFIG_I: Configured from console by consoles

% Type "show ?" for a list of subcommands

Switch#show vlan brief

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active

2 plc active Gi1/0/1, Gi1/0/2, Gi1/0/3

Gi1/0/4, Gi1/0/5, Gi1/0/6

Gi1/0/7, Gi1/0/8, Gi1/0/9

Gi1/0/10, Gi1/0/11, Gi1/0/12

Gi1/0/13, Gi1/0/14, Gi1/0/15

Gi1/0/16, Gi1/0/17, Gi1/0/18

Gi1/0/19, Gi1/0/20

3 level active Gi1/0/21, Gi1/0/22, Gi1/0/23

Gi1/0/24, Gi1/1/1, Gi1/1/2

Gi1/1/3, Gi1/1/4

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#ip routing

^

% Invalid input detected at '^' marker.

Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#ip routing

Switch(config)#end

Switch#

Mar 29 03:09:23.922: %SYS-5-CONFIG_I: Configured from console by console

Switch#show ip ospf

Switch#copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

0 bytes copied in 1.217 secs (0 bytes/sec)

Switch#

Switch#

Switch#

Switch#

Switch#

Switch#

Cisco交换机配置新手篇

Cisco交换机配置新手篇:正确连接和初级配置 Cisco交换机在网络届处于绝对领先地位,高端冗余设备(如:冗余超级引擎,冗余负载均衡电源,冗余风扇,冗余系统时钟,冗余上连,冗余的交换背板),高背板带宽,高多层交换速率等都为企业网络系统的高速稳定运行提供良好解决方案。这就是为什么大型企业都选择Cisco交换机做核心层和分布层等主要网络设备。 Cisco分为高中低端交换机,分别面向不同层次。但是多数Cisco交换机都基于Cisco自家的IOS( Internet Operating System )系统。所以设置都是大同小异。 让我们从零开始,一步一步教大家学会用Cisco交换机。 第一步:利用电脑超级终端与交换机建立连接 可进行网络管理的交换机上有一个“Console”端口,它是专门用于对交换机进行配置和管理的。可以通过Console端口连接和配置交换机。用Cisco自带的Console线,RJ-45端接入Cisco交换机Console 口,Com口端接入电脑Com1或Com2口,必须注意的是要记清楚接入的是那个Com口。 按照步骤开启超级终端:开始-程序-附件-通讯-超级终端(图2)

(图2) 点击文件-新建连接(图3) (图3) 输入超级终端名称,选择数据线所连端口(注意选择Com口时候要对应Console线接入电脑的Com口):图4

(图4) 确定-点击还原为默认值(图5) (图5) 确定后开启交换机 此时交换机开始载入IOS,可以从载入IOS界面上看到诸如IOS版本号,交换机型号,内存大小等数据

当屏幕显示Press RETURN to get started的时候按回车就能直接进入交换机。 第二步:学习交换机的一些初级命令 首先我们要知道Cisco配置界面分两种,一种是基于CLI(Command-line Interface 命令行界面),一种是基于IOS(Internetwork Operting System 互联网操作系统)。暂时我们先探讨基于IOS的Cisco交换机。 基于IOS的交换机有三种模式,“>”用户模式,“#”特权模式,“(CONFIG)#”全局模式,在用户模式输入enable进入特权模式,在特权模式下输入disable回到用户模式,在特权模式下输入configure terminal进入全局模式。在特权模式下输入disable回到特权模式下。 刚进入交换机的时候,我们处于用户模式,如:switch>。在用户模式我们可以查询交换机配置以及一些简单测试命令。在用户模式输入?号可以查询可以运行的命令。出现命令过多不能全部显示可以用Enter键逐行显示,空格键整页翻动。 对于一个默认未配置的交换机来说,我们必须对一些命名,密码和远程连接等进行设置,这样可以方便以后维护。 hostname /*设置交换机名 如:switch(config)#hostname switch ip address

思科交换机的基本配置

思科交换机的基本配置 随着Internet的高速发展,网络规模不断膨胀,对于从事网络专业的学生熟练掌握路由器和交换机的配置已显得十分重要。接下来是小编为大家收集的思科交换机的基本配置方法,希望能帮到大家。 思科交换机的基本配置的方法 一、交换机的基本配置 Author:chenchao in ZJNU 从本篇文章开始,将连载大概8-9篇自己学习交换与路由的实验报告,但是怕自己能力不行,会出现错误,所以,先载两篇文章,依次为:交换机的基本配置;路由器基本配置。本篇为交换机的基本配置,使用的仿真软件是Cisco的一款免费软件:Cisco Packet Tracer。想学习的可以在百度自行下载。 下面开始附上实验过程: 实验环境: Cisco 2950交换机1台,Console电缆1根,PC机一台,网线1根。连接如下图所示: 实验步骤: 一、交换机的带外配置; 1、在用户模式、特权模式、全局模式、接口模式之间转换; Switch>enable Switch#configure terminal Enter configuration commands, one perline. End with CNTL/Z. Switch(config)#interface FastEthernet 0/1 Switch(config-if)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console byconsole Switch#exit

Switch con0 is now available Press RETURN to get started. Switch> 2、将交换机的名称改为“student”; Switch(config)#hostname student student(config)# 3、为交换机各个模式设置密码“cisco”; 特权模式下的密码保护 student#enable student#configure t Enter configuration commands, one perline. End with CNTL/Z. student(config)#enable password cisco student(config)#enable secret cisco1 远程登录口令设置 student#configure t Enter configuration commands, one perline. End with CNTL/Z. student(config)#line console 0 student(config-line)#line vty 0 4 student(config-line)#password cisco2 student(config-line)#login student(config-line)# student# 4、为交换机制定一个IP地址10.10.10.X/24; student#config Configuring from terminal, memory, ornetwork [terminal]? Enter configuration commands, one perline. End with CNTL/Z. student(config)#interface vlan 1

思科交换机路由基本配置命令

思科交换机路由基本配置命令 常用命令 1.配置接口:interface {interface_type} {interface_number} 2.配置IP地址:ip address {IP_address} {subnet_mask} 3.配置默认网关:ip default-gateway {default_gateway_IP} 4.开启接口:no shutdown 5.配置路由协议:router {routing_protocol} 6.配置路由器ID:router-id {router_ID} 7.配置路由信息:network {network_address} {subnet_mask} 8.配置静态路由:ip route {destination_network} {subnet_mask} {next-hop_IP} 9.配置动态路由:router {routing_protocol} {network_address} 10.保存配置:copy running-config startup-config 注意:上述命令仅作为参考,具体配置应根据实际环境和设备型号进行调整。 下面是一些基本的 Cisco 交换机路由配置命令: 1.配置 hostname: hostname 2.配置 IP 地址: interface 后进入接口模式,再输入 ip address 3.配置默认路由: ip route 0.0.0.0 0.0.0.0

4.启用路由协议: router (例如: router rip) 5.配置路由连接: network (例如: network 192.168.1.0) 6.查看路由表: show ip route Cisco 交换机路由配置步骤 1.进入配置模式:configure terminal 2.配置 IP 地址和子网掩码:interface [interface-name] ; ip address [ip-address] [subnet-mask] 3.配置默认路由:ip route 0.0.0.0 0.0.0.0 [next-hop-IP-address] 4.启用路由协议:router [protocol-name] (如:router ospf) 5.配置路由协议参数: [protocol-name] [process-id] (如:ospf 1) 6.配置路由连接:network [network-address] [wildcard-mask] area [area-id] (如:network 192.168.1.0 0.0.0.255 area 0) 7.保存配置:copy running-config startup-config 8.退出配置模式:exit

思科交换机2960配置

cisco 交换机2960配置 配置密码: 2960>en ;第一次密码为空 2960h#conf t ;进入全局配置模式 2960(config)#hostname swa ;设置交换机名 2960(config)#enable secret aaa ;设置特权加密口令为aaa 2960(config)#enable password aax ;设置特权非密口令为aax 2960(config)#line console 0 ;进入控制台口(Rs232) 2960(config-line)#password aa ;设置登录口令aa 2960(config-line)#login ;登录要求口令验证 2960(config-line)#line vty 0 4 ;进入虚拟终端virtual tty 2960(config-line)#password a ;设置登录口令a 2960(config-line)#login ;登录要求口令验证 2960(config-line)#exit ;返回上一层 2960(config)#exit ;返回上一层 2960#sh run ;看配置信息 2960#exit ;返回命令 配置Vlan 新建一个Vlan的命令 Switch>enable 进入特权模式 Switch#configure terminal 进入全局配置模式 Switch (config)# vlan vlan-id 创建一个Vlan或者进入Vlan配置模式Switch (config-vlan)# name vlan-name 给Vlan命名(取消设置:no name) Switch (config-vlan)# mtu mtu-size 设置最大通讯量(取消设置:no mtu) Switch (config-vlan)#remote-span 开启远程流量监控(关闭:no remote-span) Switch (config-vlan)# end 回到特权模式 Switch#show vlan {name vlan-name | id vlan-id} 查看当前配置Switch#copy running-config startup config 保存配置 删除Vlan的命令 Switch>enable 进入特权模式 Switch#configure terminal 进入全局配置模式 Switch (config)# no vlan vlan-id 删除Vlan Switch (config)# end 回到特权模式 Switch#show vlan brief 查看删除情况 Switch#copy running-config startup config 保存配置 端口加入特定Vlan的命令 Switch>enable 进入特权模式 Switch#configure terminal 进入全局配置模式

思科交换机的基本配置

思科交换机的基本配置 思科交换机的基本配置 H3C每年将销售额的15%以上用于研发投入,在中国的北京、杭州和深圳设有研发机构,在北京和杭州设有可靠性试验室以及产品鉴定测试中心。下面店铺整理一些思科交换机的基本配置,希望大家认真阅读! CISCO交换机基本配置:Console端口连接 用户模式hostname# ; 特权模式hostname(config)# ; 全局配置模式hostname(config-if)# ; 交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname csico ;设置交换机的主机名 switch(config)#enable secret csico1 ;设置特权加密口令 switch(config)#enable password csico8 ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;虚拟终端允许登录 switch(config-line)#password csico6 ;设置虚拟终端登录口令csico6 switch#exit ;返回命令 交换机VLAN创建,删除,端口属性的设置,配置trunk端口,将某端口加入vlan中,配置VTP: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#vlan 3 name vlan3 ;建VLAN 3并命名为vlan3 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1

CISCO交换机配置命令全集

CISCO交换机配置命令大全 1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 3.在基于IOS的交换机上设置远程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 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 module/port] [detail] 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 7.在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex {auto|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 module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end 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 10.在基于IOS的交换机上配置VTP管理域: switch# vlan database switch(vlan)# vtp domain domain-name

思科交换机基本配置(非常详细)

cisco交换机基本配置 1.Cisco IOS简介 Cisco Catalyst系列交换机所使用的操作系统是IOS(Internetwork Operating System,互联网际操作系统)或COS (Catalyst Operating System),其中以IOS使用最为广泛,该操作系统和路由器所使用的操作系统都基于相同的内核和shell。 IOS的优点在于命令体系比较易用。利用操作系统所提供的命令,可实现对交换机的配置和管理。Cisco IOS操作系统具有以下特点: (1)支持通过命令行(Command-Line Interface,简称CLI)或Web界面,来对交换机进行配置和管理。 (2)支持通过交换机的控制端口(Console)或Telnet会话来登录连接访问交换机。 (3)提供有用户模式(user level)和特权模式(privileged level)两种命令执行级别,并提供有全局配置、接口配置、子接口配置和vlan数据库配置等多种级别的配置模式,以允许用户对交换机的资源进行配置。 (4)在用户模式,仅能运行少数的命令,允许查看当前配置信息,但不能对交换机进行配置。特权模式允许运行提供的所有命令。 (5)IOS命令不区分大小写。 (6)在不引起混淆的情况下,支持命令简写。比如enable通常可简约表达为en。 (7)可随时使用?来获得命令行帮助,支持命令行编辑功能,并可将执行过的命令保存下来,供进行历史命令查询。 1.搭建交换机配置环境 在对交换机进行配置之前,首先应登录连接到交换机,这可通过交换机的控制端口(Console)连接或通过Telnet登录来实现。 (1)通过Console口连接交换机 对于首次配置交换机,必须采用该方式。对交换机设置管理IP地址后,就可采用Telnet登录方式来配置交换机。 对于可管理的交换机一般都提供有一个名为Console的控制台端口(或称配置口),该端口采用RJ-45接口,是一个符合EIA/TIA-232异步串行规范的配置口,通过该控制端口,可实现对交换机的本地配置。 交换机一般都随机配送了一根控制线,它的一端是RJ-45水晶头,用于连接交换机的控制台端口,另一端提供了DB-9(针)和DB-25(针)串行接口插头,用于连接PC机的COM1或COM2串行接口。Cisco的控制线两端均是RJ-45水晶头接口,但配送有RJ-45到DB-9和RJ-45到DB-25的转接头。 通过该控制线将交换机与PC机相连,并在PC上运行超级终端仿真程序,即可实现将PC机仿真成交换机的一个终端,从而实现对交换机的访问和配置。 Windows系统一般都默认安装了超级终端程序,对于Windows 2000 Server系统,该程序位于【开始】菜单下【程序】中【附件】的【通讯】群组下面,若没有,可利用控制面板中的【添加/删除程序】来安装。单击【通讯】群组下面的【超级终端】,即可启动超级终端。 首次启动超级终端时,会要求输入所在地区的电话区号,输入后将显示下图所示的连接创建对话框,在【名称】输入框中输入该连接的名称,并选择所使用的示意图标,然后单击确定按钮。 图9-2 超级终端连接创建对话框

Cisco交换机详细配置及命令说明

Cisco交换机的概述 交换机根据OSI层次通常可分为第2层交换机和多层交换机。通常所说的交换机指第2层交换机也叫LAN交换机(第二层MAC地址进行交换);多层交换机与第2层交换机工作方式类似,除了使用第二层MAC地址进行交换之外,还使用第3层网络地址。 交换机的基本配置 3、电缆连接及终端配置 如图11-8所示,接好PC机和交换机各自的电源线,在未开机的条件下,把PC机的串口1 (COM1)通过控制台电缆线与交换机的Console端口相连,即完成设备连接工作。 交换机Console端口的默认参数如下: 端口速率:9600b/s; 数据位:8; 奇偶校验:无; 停止位:1; 流控:无。 3、交换机的启动 启动过程未用户提供了丰富的信息,我们可以对交换机的硬件结构和软件加载过程有直观的认识,这些信息对我们了解该交换机以及对她做相应的配置很有帮助,另外部件号、序列号、版本号等信息再产品验货时都是非常重要的信息。 3、交换机的基本配置 在默认情况下,所有接口处于可用状态并且都属于VLAN1,这种情况下交换机就可用正常工作了,为了方便管理和使用,首先应对交换机做基本的配置,最基本的配置可以通过启动时的对话框配置模式完成,也可以在交换机启动后再进行配置。 (1)配置Enable口令和主机名。在交换机中可以配置使能口令(Enable password)和使能密码(Enable secret),一般情况下只需配置一个就可以,当两者同时配置时,后者生效。这两者的区别是使能口令 以明文显示而使能密码以密文形式显示。 Switch> (用户执行模式提示符) Switch>enable (进入特权模式) Switch # (特权模式提示符) Switch # config termianal (进入配置模式) Switch (config) # (配置模式提示符) Switch (config) # enable password cisco 设置enable password 为cisco) Switch (config) # enable secret cisco1 (设置enable secret 为cisco1) Switch (config) # hostname C2950 (设置主机名为C2950) C2950 (config) # end (退回到特权模式) C2950 # (2)配置交换机IP地址、默认网关、域名、域名服务器。应该注意的时这里所设置的Ip地址、网关、域名等信息,是为交换机本身所设置用来管理交换机的,与连接在该交换机上的计算机或其它网络设 备无关。也就是说所有与交换机连接的主机都应该设置自身的域名、网关等信息。 C2950(config) # ip address 192.168.1.1 255.255.255.0 (设置交换机IP地址)

思科交换机的Line配置模式方法

思科交换机的Line配置模式方法 你还在为不知道思科交换机的Line配置模式而烦恼么?接下来是小编为大家收集的思科交换机的Line配置模式教程,希望能帮到大家。思科交换机的Line配置模式的方法 在全局配置模式下,执行line vty或line console命令,将进入Line配置模式。该模式主要用于对虚拟终端(vty)和控制台端口进行配置,其配置主要是设置虚拟终端和控制台的用户级登录密码。 Line配置模式的命令行提示符为:student1(config-line)# 交换机有一个控制端口(console),其编号为0,通常利用该端口进行本地登录,以实现对交换机的配置和管理。为安全起见,应为该端口的登录设置密码,设置方法为: student1#config terminal student1(config)#line console 0 student1(config-line)#? exit exit from line configuration mode login Enable password checking password Set a password 从帮助信息可知,设置控制台登录密码的命令是password,若要启用密码检查,即让所设置的密码生效,则还应执行login命令。退出line配置模式,执行exit命令。 下面设置控制台登录密码为654321,并启用该密码,则配置命令为: student1(config-line)#password 654321 student1(config-line)#login student1(config-line)#end student1#write 设置该密码后,以后利用控制台端口登录访问交换机时,就会首先询问并要求输入该登录密码,密码校验成功后,才能进入到交换机

CISCO catalyst 2960交换机配置方法

CISCO catalyst 2960交换机配置方法 一、连接交换机 1、将交换机配置电缆连接于交换机的通讯配置端口(console口)和 计算机的串口(可以直接连接到SCADA服务器后面的串口上)。 2、点击Start(开始)> Programs(程序)> Accessories(附件)> Cojhunications(通讯)> HyperTerminal(超级终端),运行 HyperTerminal。 3、在Connection Description对话框中,为这一连接输入一个名称(自 己识别方便即可),点击“ok”。 4、在Icon对话框,点击相应的图标并确认。 5、在Connect To对话框,选择正在被使用的串口(一般为COM1口), 并确认。 6、在Properties对话框配置端口如下: Bits per second: 9600 Data Bits: 8 Parity: NONE Stop bits: 1 Flow control: Xon/Xoff 通讯端口默认为COM1,点击“ok”。 7、打开交换机电源。 二、配置交换机 1、在新交换机上电启动后,会出现向导配置模式(若没有请在SWITCH>提示符后输入setup即可启动向导配置模式),在如下部分输入相应的值(粗斜体),并回车。 Would you like to enter the initial configuration dialog? [yes/no]: y At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity

CISCO交换机和路由器基本配置

一CISCO交换机和路由器基本配置 交换机的配置 1用户模式 switch > 2进入特权模式 switch > enable 3 进入全局配置模式,全局模式的配置对整个交换机生效. switch config terminal switch config 4进入接口模式,配置只对当前的接口生效 switchconfig interface f0/1 switchconfig-if 进入line 模式,这个模式主要用来对控制台做相应的配置5 switchconfig line console 0 switchconfig-line 6配置主机名 switchconfig hostname 主机名 7配置使能口令 switchconfig enable password 密码 8 配置加密使能口令 switchconfig enable secret 密码 9配置ip地址 switchconfig interface vlan 1

switchconfig ip add ip地址子网掩码switchconfig no shutdown 10配置交换机的网关 switchconfig ip default-gateway ip地址 11 保存配置 switch copy runing-config startup-config switch write 12清空配置 switch erase startup-config 13 清空接口配置 switch config interface f0/1 switch config-if default interface f0/1 14清空交换机密码 1 关闭电源. 2 开启电源, 并且按住交换机的mode键,当交换机进入................................ ................................ flash_init load_helper boot switch: 3 在switch 后执行 flash_init命令 switch: flash-init 4 在查看flash中的文件

cisco交换机端口隔离的设置教程

cisco交换机端口隔离的设置教程 交换机的主要功能包括物理编址、网络拓扑结构、错误校验、帧序列以及流控。交换机还具备了一些新的功能,如对VLAN(虚拟局域网)的支持、对链路汇聚的支持,甚至有的还具有防火墙的功能。H3C交换机可以用端口隔离来实现,下面给大家介绍一下在cisco的交换机上面如何来实现这样的(端口隔离)需求 在cisco 低端交换机中的实现方法: 1.通过端口保护(Switchitchport protected)来实现的。 2.通过PVLAN(private vlan 私有vlan)来实现. 主要操作如下: 相对来说cisco 3550或者2950交换机配置相对简单,进入网络接口配置模式: Switch(config)#int range f0/1 - 24 #同时操作f0/1到f0/24口可根据自己的需求来选择端口 Switch(config-if-range)#Switchitchport protected #开启端口保护 ok...到此为止,在交换机的每个接口启用端口保护,目的达到. 由于4500系列交换机不支持端口保护,可以通过PVLAN方式实现。 主要操作如下: 交换机首先得设置成transparents模式,才能完成pvlan的设置。 首先建立second Vlan 2个 Switch(config)#vlan 101 Switch(config-vlan)#private-vlan community ###建立vlan101 并指定此vlan为公共vlan Switch(config)vlan 102 Switch(config-vlan)private-vlan isolated ###建立vlan102 并指定此vlan为隔离vlan Switch(config)vlan 200

干货!思科交换机配置命令大全,附配置案例

干货!思科交换机配置命令大全,附配置案例 一、思科交换机基本配置命令 1 switch> enable switch# 2 switch> enable switch#configure terminal switch(conf)# 3 switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5

switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6 1、创建多个VLAN Switch>enable (进入特权模式) Switch#vlan data (进入vlan配置模式) Switch(vlan)#vlan 10 name IT (划分vlan10,名称为IT) Switch(vlan)#vlan 20 name HR (划分vlan20,名称为HR) Switch(vlan)#vlan 30 name FIN (划分vlan30,名称为FIN) Switch(vlan)#vlan 40 name LOG (划分vlan40,名称为LOG) Switch(vlan)#exit 7 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口 ip 和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中 aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址 8 17 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#

思科交换机中文配置手册

先把这个学会吧,再去搞哪个,会容易入手,是同样的结构。思科的命令和这不同,我这有路由模拟器要的话告诉我你的邮箱我发给你。 SWITCH笔记 1. Switch command 2. Switch setup 3. Vlan setup 4. VLAN TRUNK 5. Switch interface setup 6. SHOW command 7. Cisco catalyst 2950互换机的密码恢复 8. VTP 9. STP 10. 三层互换 11. 12. 13. 14. 15. Switch command Switch > en 进入特权模式 Switch # conf t 进入全局配置模式

Switch(config)# interface interface-num 进入接口 Switch(config)# hostname name 给互换机命名 Switch(config)# enable password password 设立明文密码 Switch(config)# enable secret password 设立加密的启用秘密口令。假如设立则取代明文口令 Switch # copy running-config startup-config Switch # write 保存设立 保存设立 Switch # erase startup-config 恢复互换机出厂值 置顶 Switch setup switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# no shut switch(config-if)# exit switch(config)# ip default-gateway ip-address switch(config)# ip domain-name domain-name switch(config)# ip name-server IP-address 互换机上设立远程访问,用于互换机管理 配置IP地址 开起端口

思科交换机 路由器配置命令大全

思科Cisco交换机、路由器设置命令 交换机口令设置: switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令为 xxx switch(config)#enable password xxx ;设置特权非密口令为 xxx switch(config)#line console 0 ;进控制台口(Rs232)初始化 switch(config-line)#line vty 0 4 ;进入虚拟终端virtual tty switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令 交换机VLAN设置: 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 ;当前端口1加入VLAN 2 switch(config-if)#switchport mode trunk ;设置为干线switch(config-if)#switchport trunk allowed vlan 1,2;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password switch(config)#vtp mode server switch(config)#vtp mode client 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ip address ;添加远程登录IP switch(config)#ip default-gateway ;添加默认网关switch#dir flash: ;查看内存 交换机显示命令: switch#write ;写入保存 switch#show vtp switch#show run ;查看当前配置信息switch#show vlan ;看VLAN switch#show interface ;显示所有端口信息

cisco交换机配置口令大全

cisco交换机配置口令大全 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 module/port] [detail] 在基于CLI的交换机上启用和浏览CDP信息: switch(enable) set cdp {enable|disable} module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/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)# duplex {auto|full|half}

相关主题