学习交换机基本配置

 

一、交换机的基本配置

配置enable口令、密码和主机名

Switch> (用户执行模式提示符)

Switch>enable(进入特权模式) Switch# (特权模式提示符)

Switch#config terminal(进入配置模式) Switch(config)#enable password cisco (设置enable password为cisco) Switch(config)#enable secret cisco1(设置enable secret为sisco1) Switch(config)#hostname C2950 (设置主机名为C2950) C2950(config)#end (退回到特权模式)

C2950#

配置交换机IP地址、默认网关、域名和域名服务器

C2950(config)#ip address 192.168.1.1 255.255.255.0(设置交换机IP) C2950(config)#ip default-gateway 192.168.1.254(设置默认网关)

C2950(config)#ip domain-name cisco.com(设置域名)

C2950(config)#ip name-server 200.0.0.1(设置域名服务器) C2950(config)#end

配置交换机的端口属性

C2950(config )#interface fastethernet0/1 (进入接口0/1的配置模式)

C2950(config-if)#speed ?(查看speed命令的子命令)

C2950(config-if)#speed 100(设置该端口速率为100Mbps)C2950(config-if)#duplex ? (查看duplex命令的子命令)

C2950(config-if)#duplex full(设置该端口为全双工) C2950(config-if)#description TO_PC1 (设置该端口描述为TO_PC1) C2950(config-if)#^Z(返回到特权模式,同end) C2950#show interface fastethernet0/1(查看端口0/1的配置结果)

C2950#show interface fastethernet0/1 status(查看端口0/1的状态) 配置和查看MAC地址表

C2950(config)#mac-address-table ?(查看mac-address-table的子命令) C2950(config)#mac-address-table aging-time 100(设置超时时间为100s)

C2950(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 (加入永久地址)

C2950(config)#mac-address-table restricted static 0000.0c02.bbcc f0/3 f0/7

(加入静态地址) C2950(config)#end

C2950#show mac-address-table(查看整个MAC地址表)C2950#clear mac-address-table restricted static (清除限制性地址)

二、配置和管理VLAN

1. VLAN基础知识

VLAN技术:把物理上直接相连的网络从逻辑上划分为多个子网。每一个VLAN对应着一个广播域,处于不同VLAN上的主机不能直接进行通信,不同VLAN之间的通信要引入第三层交换技术才可以解决。

VLAN中继(VLAN Trunk)也称为VLAN主干,是指在交换机与交换机或交换机与路由器之间

www.99jianzhu.com/包含内容:建筑图纸、PDF/word/ppt 流程,表格,案例,最新,免费下载,施工方案、工程书籍、建筑论文、合同表格、标准规范、CAD图纸等内容。


TOP最近更新内容

    园林史名词解释
    长城小学关爱留守儿童工作制度
  • 上一篇:CAD快捷键文档
  • 下一篇:浅析呼伦贝尔地区冬季冰雪旅游