




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
交换机1、 配置主机名A. 全局模式,(config)#hostnameB. 全局模式,(enable)set system name全局模式,(enable)set prompt(设置系统提示)2、 配置超级用户口令A. 全局模式,(config) # enable secret / enable password 7B. 全局模式,(enable)set enablepass3、 配置远程登录口令A. (config) # line vty 0 4(config-line) # password 7B. (enable)set password4、 改变系统时间A. Clock set 23:00:00 23 february 2007B. Set time fri 2/23/2007 23:00:005、 配置IP地址,缺省路由A. 配置IP地址:(config) # interface VLAN1 (默认管理口VLAN1)(config-if) # ip address 配置缺省路由:(config) # ip default-gateway (默认网关)B. 配置IP:Set interface sc0 3 55(地址 掩码 广播地址)配置缺省路由:Set ip route 6、 配置端口描述信息A. (config) # interface f0/24(config-if) # descriptionB. Set port name 4/5 mail-sever (端口 描述信息)7、 配置端口开启,关闭A. (config) # interface f0/24(config-if) # shutdown/no shutdownB. (enable) set port enable/disable 4/58、 配置通信方式A. (config) # interface f0/24(config-if) # duplex auto/full/halfB. (enable)set port duplex 4/5-24 full/half9、 配置传输速率A. (config) # interface f0/24(config-if) # speed 10 (单位Mbps)B. (enable) set port speed 5/1-24 100 10、配置VTP域名与工作模式A. 配置域名:(config) # vtp domain pku (域名为pku)配置工作模式:(config) # vtp mode sever/client/transparentB. 配置域名:(enable)set vtp domain pku配置工作模式:(enable)set vtp mode sever/client/transparent11、建立/删除VLANA. 建立/修改:(vlan) # vlan 1000 name vl1000 (vlan) # exit删除:(vlan) # no vlan 1000B. 建立/修改:(enable)set vlan 1000 name vl1000删除:(enable)clear vlan 99912、为端口配置VLANA. (config) # interface f0/24(config-if) # switchport access vlan 248 (将端口f0/24划分在248号vlan中)B. (enable)set vlan 42 5/20 (将端口5/20划分在42号vlan中)13、配置VLAN TRUNK:配置TRUNK模式,封装协议,允许中继的VLANA. (config) # int f0/24(config-if) # switchport mode trunk(config-if) # switchport trunk encapsulation dot1q/isl设置允许中继VLAN:(config-if) # switchport trunk allowed vlan 10,14(config-if) # switchport trunk allowed vlan 10-24(config-if) # switchport trunk allowed vlan except 100-1000B. (enable)set trunk 5/1 on dot1q (设置5/1为trunk模式,封装dot1q协议)设置允许中继:(enable)set trunk 5/1 vlan 37-42 (在端口5/1的允许VLAN列表中添加37-42号vlan)(enable)clear trunk 5/1 3-36 (在端口5/1的中删除3-36号VLAN)14、配置STPA. 打开/关闭STP:(config) # (no) spanning-tree vlan 3配置根网桥:(config) # spanning-tree vlan 3 root primary配置备份根网桥:(config) # spanning-tree vlan 3 root secondary配置生成树优先级:(config) # spanning-tree vlan 3 priority 8192 (最后一个数字必须为4096倍数,越小优先级越高)B. 打开/关闭STP:(enable) set spantree enable/disable 3根网桥:(enable)set spantree root 1,200-204备份根网桥:(enable)set spantree root secondary 1,200-204生成树优先级:(enable)set spantree priority 8192路由器1、 路由器模式用户模式 router特权模式 (enable命令)router#全局配置模式 (configure terminal命令)(config) # 下:1.接口配置模式 (config) # int f0/12 (config-if) #2.虚拟中断配置模式 (config) # line vty 0 15 (config-line) #3.RIP路由协议配置模式 (config) # router rip (config-router) #2、配置文件与TFTP server互拷1) 配置文件到TFTPRouter # write network (后输入TFTP的IP,文件名)Router # copy running-config tftp: (文件夹时有冒号,文件时无)2) TFTP到配置文件Router # copy tftp: running-config3、路由器基本配置1) 主机名(config) # hostname 主机名2) 超级用户口令(config) # enable secret 密码3) 设置时钟# calendar set 10:24:00 22 march 20174) 退出命令Exit一级一级退End退回特权用户模式5) 保存配置# write memory (保存到路由器NVRAM)# write network tftp (到TFTP)6) 删除配置# write erase7) 基本检测命令telnet parisshow/sh flash/clock/version/configuration (flash,时钟,版本,配置)#show/sh ip route/ip protocols (路由表,IP路由协议详细信息)4、路由器接口配置(接口配置模式)1) 接口描述信息(config-if) # description 描述信息2) 接口带宽(config-if) # bandwidth 2500000 (单位为kbps)3) 接口IP地址(config-if) # ip address 49 52 (IP地址,子网掩码)4) 开启/关闭(config-if) # shutdown/no shutdown5、局域网接口配置 与路由器接口相同6、广域网接口配置1) 异步串行口A开头只能用ppp协议2) 同步串行口(DDN专线)S开头可用ppp和HDLC(config-if) # encapsulation ppp/hdlc配置带宽时,以1024倍数 bandwidth 2048 (2M宽带)7、 POS口配置(config-if) # Crc 32/16 (CRC校验位可选为16或32)(config-if) # Pos framing sdh/sonnet (帧格式)(config-if) # Pos flag s1s0 2/9 (sdh为2,sonet为0)8、 静态路由配置(全局模式)(config) # ip route 默认路由配置方法(config) # ip route 9、 RIP路由协议配置(路由模式)1) 基本配置(config) # router rip (启动)(config-router) # network .(config-router) # network . (宣告直连网络,不写掩码)(config-router) # exit2) 配置被动接口(只发不收报文,如连到计算机上)(config) # router rip(config-router) # passive-interface Ethernet 0(config-router) # exit3) 配置路由过滤(config-router) # distribute-list 12 in Ethernet4) 配置管理距离5) 定义邻居10、OSPF路由协议配置1) 基本配置(config) # router ospf 63 (启动,进程号63为随意选择)(config-router) # network area 0 (单个IP地址参与OSPF)(config-router) # network 55 area 0 (网络地址参与后写反码)(config-router) # area 0 range (区域号为0,后为子网地址,子网掩码)2) 被动接口 (config-router) # passive-interface Ethernet 03) 路由过滤(config-router) # distribute-list 12 in Ethernet4) 引入外部协议到OSPF参数(config-router) # redistribute metric 100(花费)/tag 10(缺省标记值)/connected type1 subnets (外部路由类型)11、DHCP服务器配置1) 进入DHCP POOL配置模式(config) # ip dhcp pool ymm (ymm地址池名称)2) 配置子网地址和子网掩码(dhcp-config) # network (或/24)除外地址(全局模式)(config) # ip dhcp excluded-address 0 (从.2到.10)3) 配置地址池缺省网关(dhcp-config) # default-router (最多可配置8个)4) 配置域名(dhcp-config) # domain-name (ymm为域名)配置域名服务器的IP地址(dhcp-config) # dns-sever address 7 6 (可最多配置8个)5) 配置租用时长(dhcp-config) # lease 0 5 (天数不能省)6) 取消地址冲突记录日志(全局模式)(config) # no ip dhcp conflict logging12、访问控制列表配置(控制列表配置里,只要有子网地址,就要接通配符,而单个主机没有)1) 配置标准访问控制列表允许登录路由器(config) # access-list 10 permit 55 (10为表号(标准为1到99),后面接反掩码)配置应用接口(config) # line vty 0 5(config-line) # access-class 10 in (控制远程登录时方向一定为in)禁止非法源地址的数据包进入或输出(config) # access-list 10 deny 55 log(带log时,匹配后进入日志)(config) # access-list 10 petmit any配置应用接口(config) # interface g0/1(config-if) # ip access-group 10 in (进入)(config-if) # ip access-group 10 out (输出)2) 配置扩展访问控制列表i. 端口号:(config) # access-list 130 deny udp(udp协议) any(源地址) any(目的地址) eq 1434 (端口号为143
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 高中语文任务群教学与学生自主学习能力培养研究论文
- 初中劳动教育课程实施过程中的家校合作模式研究论文
- 节假保卫日管理制度
- 苗木购销购管理制度
- 茶艺班活动管理制度
- 调压器安装技术规范书
- 融合终端证书请求文件导出流程
- 《一年级下册语文园地三》课件
- 电子商务案例分享-凡客诚品成功之道
- 行政许可案例及分析
- 期末试卷(试题)(含答案)-2024-2025学年一年级下册数学北师大版
- 2024年地理中考模拟考试地理(贵州贵阳卷)(A4考试版)
- 上海浦东新区公办学校储备教师教辅招聘笔试真题2022
- 国开(甘肃)2024年春《地域文化(专)》形考任务1-4终考答案
- 安全生产月“一把手”讲安全课件
- 企业资产损失所得税税前扣除鉴证业务操作的指南
- 高等数学(下册)资料期末复习试题与答案
- 四冲程内燃机 机械原理课程设计说明书
- BS EN 10222-5-2000用于压力目的的钢锻件—第5部分:马口铁钢奥氏体钢和奥氏体-铁素体不锈钢
- Grace评分表、TIMI评分、CRUSAD评分、wells评分等
- 洗洁精-MSDS(202334)
评论
0/150
提交评论