思科交换机配置手册(思科交换机系列选型)

发布时间:

    连接交换机

    Switch#vlan data (进入vlan配置模式)

    【设置密码】

    switch#show fcdomain domain-list

    ◆以图表的方式显示 Cisco路由器/交换机的带宽使用情况,可以按端口,数据流向等分类。

    switch#config t

    交换机Console管理

    配置端口在一个zone里面,

    交换机的配置可以说是评判一款交换机的重要指标,面对不同的使用场景,一款优秀的交换机要可以让使用者从容应对。对于小企业而言主要是能连网,稳定,配置简单甚至是不配置最好,对于大企业来说,考虑得就会多一些,比如能不能作为主干网络的延伸,是不是易于管理等等。

    Configure default switchport trunk mode (on/off/auto) [on]:

    switch#c onfigure terminal

    Switch(config)no ipdomain-lookup 关闭DNS查找功能

    在配置之前,需按照下面的表格准备好数据。

    233(config)#interface f0/4

    这个地方有两种配置方式,

    switch#config t

    switch(config)# description this is a fast Ethernetport used to connecting the company’s intranet!

    switch(conf)#hostname aptch2950

    show run显示当前配置

    Flow control: Xon/Xoff

    switch(config)#member pwwn 21:00:00:24:ff:00:2e:f3

    aptech2950(conf-if)#no shut 是配置处于运行中

    show vsan 查看交换机的vsan信息

    switch#

    在主交换机上(输入switch#show fcdomain domain-list

    Confirm the password for "admin": password

    叫NO 删除VLAN

    Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]:

    Parity: NONE

    首次设置,必须通过console进行连接(需要U口转DB9针的接口线,专门卖接口线的有卖大约30元),然后进行初始化设计,以后设定IP后可通过LAN进行登陆

    show mac-address-table 查看 mac 地址表

    show mac-address-table aging-time 查看 mac 地址表自动老化时间

    在小型园区中,S2700&S3700通常部署在网络的接入层,S5700&S6700通常部署 在网络的核心,出口路由器一般选用AR系列路由器。

    2ceng(config-if)#exit //退出到全局配置模式

    233(config)#do reload

    switch (config)#zoneset activate name set10 vsan 2

    Switch(config-if)#noswitchport mode 或 ( switchport mode access) 禁用干线

    Switch(config-line)#login

    Any interface listed with OK? value "NO" does not have a valid configuration

    access to the router over a network interface.

    2ceng(config)#interface range fa0/1-12 //进入到端口1-12

    一、思科交换机基本配置命令

    1、创建多个VLAN

    Switch(vlan)#vlan 10 name IT (划分vlan10,名称为IT)

    aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口 ip 和子网掩码

    aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址

    aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0

    ip 192.168.1.2 主机的 ip 必须和交换机端口的地址在同一网络

    netmask 255.255.255.0

    gate-way 192.168.1.1 网关地址是交换机端口地址

    telnet 192.168.1.1

    二、利用三层交换机,实现不同vlan间互相通信

    1、在交换机SwitchA上创建VLAN 20,并将F0/15口划分到VLAN 20中。

    2、在交换机SwitchA上与SwitchB相连的端口(此处为F0/24端口)定义为tag vlan 模式。

    3、在交换机SwitchB上创建VLAN 10,并将F0/5端口划入VLAN 10中。

    4、在交换机SwitchB上与SwitchA相连的端口(此处为F0/24端口)定义为tag vlan 模式。

    5、设置三层交换机VLAN 间通讯,开启三层交换机的路由功能

    SwitchA(config-if) #ip address 192.168.10.254 255.255.255.0 //配置vlan10的虚拟接口ip地址

    SwitchA(config-if) #ip address 192.168.20.254 255.255.255.0 //配置vlan20的虚拟接口ip地址

    5、配置默认网关

    将PC1的默认网关设置为192.168.10.254,将PC2的默认网关设置为192.168.20.254