您的当前位置:首页正文

RG-S3550-24配置

2020-07-18 来源:步旅网
1、基本配置

cdw> 用户模式

cdw>enable 进入特权模式

Password: 输入进入特权模式的密码(如已设置好的“12345”)

cdw# 特权模式

cdw#disable 返回用户模式 cdw>enable 进入特权模式

Password: 输入进入特权模式的密码(如已设置好的“12345”)

cdw#configure terminal 进入全局模式

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

cdw(config)# 全局模式

Switch(config)#interface fastethernet 0/1

2009-10-09 15:11:12 @5-CONFIG:Configured from outband

Switch(config-if)# 接口模式

Switch(config-if)#no shutdown

2009-10-09 15:11:44 @5-CONFIG:Configured from outband

cdw(config)#no hostname

2009-10-09 14:30:05 @5-CONFIG:Configured from outband

Switch(config)#end

2009-10-09 14:30:09 @5-CONFIG:Configured from outband

Switch#configure terminal

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

Switch(config)#enable secret level 1 0 1234

2009-10-09 14:31:35 @5-CONFIG:Configured from outband

Switch(config)#enable secret level 15 0 12345

2009-10-09 14:31:58 @5-CONFIG:Configured from outband

Switch(config)#end

2009-10-09 14:32:04 @5-CONFIG:Configured from outband

Switch(config)#hostname switch1

2009-10-09 14:33:48 @5-CONFIG:Configured from outband

switch1(config)#end

2009-10-09 14:33:54 @5-CONFIG:Configured from outband

switch1#

2接口配置

Switch#configure terminal

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

Switch(config)#interface fastethernet 0/1

2009-10-09 15:11:12 @5-CONFIG:Configured from outband

Switch(config-if)#no shutdown

2009-10-09 15:11:44 @5-CONFIG:Configured from outband

Switch(config-if)#description to p1

2009-10-09 15:13:01 @5-CONFIG:Configured from outband

Switch(config-if)#speed 100

2009-10-09 15:13:26 @5-CONFIG:Configured from outband

Switch(config-if)#speed 1000

^

% Invalid input detected at '^' marker.

Switch(config-if)#duplex full

2009-10-09 15:13:45 @5-CONFIG:Configured from outband

Switch(config-if)#end

2009-10-09 15:13:54 @5-CONFIG:Configured from outband

Switch#show interface fastethernet 0/1 显示0/1号接口的全部状态和配置信息

Interface : FastEthernet100BaseTX 0/1 Description : to p1 AdminStatus : up OperStatus : up

Hardware : 10/100BaseTX Mtu : 1500

LastChange : 0d:0h:39m:42s AdminDuplex : Full OperDuplex : Full AdminSpeed : 100 OperSpeed : 100

FlowControlAdminStatus : On FlowControlOperStatus : On Priority : 0

Broadcast blocked :DISABLE Unknown multicast blocked :DISABLE Unknown unicast blocked :DISABLE

Switch#show interface fastethernet 0/1 status 显示0/1号接口状态

Interface Status vlan duplex speed type --------------- -------------------- ------ ------- ------- ------------- Fa0/1 up 1 Ful

Interface Switchport Mode Access Native Protected VLAN lists ---------- ---------- --------- ------- -------- --------- ---------------------

Fa0/1 Enabled Access 1 1 Disabled All

Switch#show interface fastethernet 0/1 switchport 显示0/1号可交换接口状态信息

Switch#show interface fastethernet 0/1 description显示0/1号接口的描述配置和接口状态

Interface Status Administrative Description --------- ------ -------------- -------------------------------- Fa0/1 up up to p1

Switch#show running-config interface fastethernet 0/1显示接口当前运行的各种配置信息

System software version : 2.41(4) Build Nov 23 2005 Release Building configuration...

Current configuration : 107 bytes !

interface FastEthernet 0/1 flowcontrol on speed 100 duplex full

description to p1

Switch(config-if)#flowcontrol on

2009-10-09 15:16:41 @5-CONFIG:Configured from outband

Switch(config-if)#end

2009-10-09 15:16:52 @5-CONFIG:Configured from outband

3、关于VLAN的配置

Switch#

Switch#configure terminal

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

Switch(config)#vlan10

2009-10-09 15:23:08 @5-CONFIG:Configured from outband

Switch(config-vlan)#name maths

2009-10-09 15:23:31 @5-CONFIG:Configured from outband

Switch(config-vlan)#end

2009-10-09 15:23:35 @5-CONFIG:Configured from outband

Switch#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4 Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8 Fa0/9 ,Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15,Fa0/16 Fa0/17,Fa0/18,Fa0/19,Fa0/20 Fa0/21,Fa0/22,Fa0/23,Fa0/24 10 maths active

Switch#configure terminal

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

Switch(config)#vlan10

2009-10-09 15:24:48 @5-CONFIG:Configured from outband

Switch(config-vlan)#no name

2009-10-09 15:24:53 @5-CONFIG:Configured from outband

Switch(config-vlan)#end

2009-10-09 15:24:58 @5-CONFIG:Configured from o

Switch#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4 Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8 Fa0/9 ,Fa0/10,Fa0/11,Fa0/12

Fa0/13,Fa0/14,Fa0/15,Fa0/16 Fa0/17,Fa0/18, Fa0/21,Fa0/22,Fa0/23,Fa0/24 10 VLAN0010 active

Switch#configure terminal

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

Switch(config)#no vlan10

2009-10-09 15:25:42 @5-CONFIG:Configured from outband

Switch(config)#end

2009-10-09 15:25:45 @5-CONFIG:Configured from outband

Switch#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4 Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8 Fa0/9 ,Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15,Fa0/16 Fa0/17,Fa0/18,Fa0/19,Fa0/20 Fa0/21,Fa0/22,Fa0/23,Fa0/24

Switch#configure terminal

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

Switch(config)#interface fastethernet0/10

2009-10-09 15:27:22 @5-CONFIG:Configured from outband

Switch(config-if)#

Switch(config-if)#switchport mode access

2009-10-09 15:27:42 @5-CONFIG:Configured from outband

Switch(config-if)#switchport access vlan10

2009-10-09 15:28:18 @5-CONFIG:Configured from outband %Warning : Access VLAN does not exist. Creating vlan 10

Switch(config-if)#end

2009-10-09 15:28:24 @5-CONFIG:Configured from outband

Switch#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4

Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8 Fa0/9 ,Fa0/11,Fa0/12,Fa0/13 Fa0/14,Fa0/15,Fa0/16,Fa0/17 Fa0/18,Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa 10 VLAN0010 active Fa0/10

Switch#show interface fastethernet0/10 switchport

Interface Switchport Mode Access Native Protected VLAN lists ---------- ---------- --------- ------- -------- --------- ---------------------

Fa0/10 Enabled Access 10 1 Disabled All

3关于VLAN的配置2

Switch#

switch1#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 Fa0/4 ,Fa0/5 ,Fa0/6 Fa0/7 ,Fa0/8 ,Fa0/9 Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15 Fa0/16,Fa0/17,Fa0/18 Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/24

switch1#configure terminal

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

switch1(config)# vlan 10

2009-10-09 14:36:26 @5-CONFIG:Configured from outband

switch1(config-vlan)#name students

2009-10-09 14:44:40 @5-CONFIG:Configured from outband

switch1(config-vlan)#exit

2009-10-09 14:44:47 @5-CONFIG:Configured from outband

switch1(config)#vlan 20

2009-10-09 14:45:00 @5-CONFIG:Configured from outband

switch1(config-vlan)#name teachers

2009-10-09 14:45:19 @5-CONFIG:Configured from outband

switch1(config-vlan)#exit

2009-10-09 14:45:23 @5-CONFIG:Configured from outband

switch1(config)#vlan 30

2009-10-09 14:45:29 @5-CONFIG:Configured from outband

switch1(config-vlan)#name workers

2009-10-09 14:45:43 @5-CONFIG:Configured from outband

switch1(config-vlan)#exit

2009-10-09 14:45:48 @5-CONFIG:Configured from outband

switch1(config)#exit

2009-10-09 14:45:53 @5-CONFIG:Configured from outband

switch1#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1 ,Fa0/2 ,Fa0/3 Fa0/4 ,Fa0/5 ,Fa0/6 Fa0/7 ,Fa0/8 ,Fa0/9 Fa0/10,Fa0/11,Fa0/12

Fa0/16,Fa0/17,Fa0/18

Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/24 10 students active 20 teachers active 30 workers active

switch1#configure terminal

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

switch1(config)#interface fastethernet 0/1

2009-10-09 14:48:49 @5-CONFIG:Configured from outband

switch1(config-if)#switchport access vlan10

2009-10-09 14:49:16 @5-CONFIG:Configured from outband

switch1(config-if)#interface fastethernet 0/2

2009-10-09 14:49:49 @5-CONFIG:Configured from outband

switch1(config-if)#switchport access vlan20

2009-10-09 14:50:17 @5-CONFIG:Configured from outband

switch1(config-if)#interface fastethernet 0/3

2009-10-09 14:50:43 @5-CONFIG:Configured from outband

switch1(config-if)#switchport access vlan30

2009-10-09 14:51:36 @5-CONFIG:Configured from outband

switch1(config-if)#end

2009-10-09 14:51:45 @5-CONFIG:Configured from outband

switch1#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/4 ,Fa0/5 ,Fa0/6 Fa0/7 ,Fa0/8 ,Fa0/9 Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15 Fa0/16,Fa0/17,Fa0/18 Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/24 10 students active Fa0/1

20 teachers active Fa0/2 30 workers active Fa0/3

switch1#configure terminal

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

switch1(config)#interface range fastethernet 0/4-9

2009-10-09 14:53:02 @5-CONFIG:Configured from outband

switch1(config-if-range)#switchport access vlan 10

2009-10-09 14:53:30 @5-CONFIG:Configured from outband

switch1(config-if-range)#end

2009-10-09 14:53:55 @5-CONFIG:Configured from outband

switch1#show vlan

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15 Fa0/16,Fa0/17,Fa0/18 Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/24 10 students active Fa0/1 ,Fa0/4 ,Fa0/5 Fa0/6 ,Fa0/7 ,Fa0/8 Fa0/9 20 teachers active Fa0/2 30 workers active Fa0/3

4、生成树

switch1#

switch1#show spanning-tree

StpVersion : MSTP

SysStpStatus : Disabled BaseNumPorts : 24 MaxAge : 20 HelloTime : 2

ForwardDelay : 15 BridgeMaxAg

BridgeHelloTime : 2

BridgeForwardDelay : 15 MaxHops : 20

TxHoldCount : 3

PathCostMethod : Long BPDUGuard : Disabled

BPDUFilter : Disabled

###### MST 0 vlans mapped : All BridgeAddr : 00d0.f88b.db41 Priority : 32768

TimeSinceTopologyChange : 0d:1h:30m:50s TopologyChanges : 0

DesignatedRoot : 800000D0F88BDB41 RootCost : 0 RootPort : 0

CistRegionRoot : 800000D0F88BDB41 CistPathCost : 0

switch1#

switch1#show spanning-tree interface fastethernet 0/1

PortAdminPortfast : Disabled

PortOperPortfast : Disabled PortAdminLinkType : auto

PortOperLinkType : point-to-point PortBPDUGuard: Disabled PortBPDUFilter: Disabled

###### MST 0 vlans mapped : All PortState : discarding PortPriority : 128

PortDesignatedRoot : 800000D0F88BDB41 PortDesignatedCost : 0

PortDesignatedBridge : 800000D0F88BDB41 PortDesignatedPort : 0000 PortForwardTransitions : 0 PortAdminPathCost : 0

PortOperPathCost : 200000 PortRole : disabledPort

switch1#configure terminal

Enter configuration commands, one per line. End with CNT

switch1(config)#spanning-tree

2009-10-09 15:00:30 @5-CONFIG:Configured from outband

switch1(config)#end

2009-10-09 15:00:50 @5-CONFIG:Configured from outband

switch1#show span

2009-10-09 15:01:00 @4-TOPOCHANGE:Topology is changedn

StpVersion : MSTP

SysStpStatus : Enabled BaseNumPorts : 24 MaxAge : 20 HelloTime : 2

ForwardDelay : 15 BridgeMaxAge : 20 BridgeHelloTime : 2

BridgeForwardDelay : 15

MaxHops : 20

TxHoldCount : 3

PathCostMethod : Long BPDUGuard : Disabled BPDUFilter : Disabled

###### MST 0 vlans mapped : BridgeAddr : 00d0.f88b.db41 Priority : 32768

TimeSinceTopologyChange : 0d:0h:0m:0s TopologyChanges : 2

DesignatedRoot : 800000D0F88BDB41 RootCost : 0 RootPort : 0

CistRegionRoot : 800000D0F88BDB41 CistPathCost : 0

switch1#

switch1#show spanning-tree

StpVersion : MSTP

SysStpStatus : Enabled BaseNumPorts : 24 MaxAge : 20 HelloTime : 2

ForwardDelay : 15 BridgeMaxAge : 20 BridgeHelloTime : 2

BridgeForwardDelay : 15 MaxHops : 20

TxHoldCount : 3

PathCostMethod : Long BPDUGuard : Disabled BPDUFilter : Disabled

###### MST 0 vlans mapped : All

BridgeAddr : 00d0.f88b.db41 Priority : 32768

TimeSinceTopologyChange : 0d:0h:0m:12s TopologyChanges : 0

DesignatedRoot : 800000D0F88BDB41 RootCost : 0 RootPort : 0

CistRegionRoot : 800000D0F88BDB41 CistPathCost : 0

switch1#

switch1#show spanning-tree interface fastethernet 0/1

PortAdminPortfast : Disabled PortOperPortfast : Disabled PortAdminLinkType : auto

PortOperLinkType : point-to-point PortBPDUGuard: Disabled

PortBPDUFilter: Disabled

###### MST 0 vlans mapped : All PortState : f

PortPriority : 128terminal

PortDesignatedRoot : 800000D0F88BDB41mmands, one per line. PortDesignatedCost : 0

PortDesignatedBridge : 800000D0F88BDB41ace fastethernet 0/1 PortDesignatedPort : 80019-10-09 15:11:12 @5-CONF PortForwardTransitions : 1 PortAdminPathCost : 0 Switch(config-i

PortOperPathCost : 200000 2009-10

PortRole : designatedPortnfigured from outband

switch1#configure terminal

Swi

End with CNTL/ Enter configuration commands, one per line. End with CNTL/Z. 2009-10-09 15:13:01 @5-CONFIG:Configured from outband switch1(config)#spanning-tree mode stp

StpVersion : STP

SysStpStatus : Enabled BaseNumPorts : 24 MaxAge : 20 HelloTime : 2

ForwardDelay : 15 BridgeMaxAge : 20 BridgeHelloTime : 2

BridgeForwardDelay : 15 MaxHops : 20 TxHoldCount : 3

PathCostMethod : Long BPDUGuard : Disabled BPDUFilter : Disabled

BridgeAddr : 00d0.f88b.db41 Priority : 32768

TimeSinceTopologyChange : 0d:0h:2m:20s TopologyChanges : 0

DesignatedRoot : 800000D0F88BDB41 RootCost : 0 RootPort : 0

因篇幅问题不能全部显示,请点此查看更多更全内容