已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
网络设备配置交换机的配置常见接口 Console口 控制台端口 不能用控制线以外的线缆 RG45 Ethernet接口 (以太口)连接网络或者主机的接口 RG45 AUI接口 (老式以太网接口) Serial接口(串口) 连接广域网 背对背电缆进行路由器之间的连接 电缆不能带电进行操作,避免烧坏接口 BRI接口 ISDN广域网接入 AUX接口 (异步串行口)1.远程拨号调试(连接调制解调器) 2.拨号备份功能3.网络设备之间的线路连接(电话拨号的方式)交换机的基本配置enable(进入特权模式)在特权模式下show version命令show running-config命令show interface 查看交换机接口状态Swithch(config)#hostname h1 /命名h1(config-if)#ip address 192.168.0.1 255.255.255.0h1(config-if)#ip default-gateway 192.168.0.1h1(config)#interface fastethernet0/1h1(config-if)#speed 100 /配置接口速度h1(config-if)#duplex full /全双工交换机的VLAN配置 (802.1Q /ISL )干道的配置命令h1(config-if)#switchport mode trunkh1(config-if)#switchport trunk encapsulation dot1q|isl配置静态的VLAN(交换机一个端口只能属于一个VLAN,干道端口除外)出厂时,所有端口都属于vlan1(保留作为管理vlan)在VTP服务器模式下,添加vlan信息h1#vlan database /进入vlan模式h1(vlan)#vlan vlan-numberh1(vlan)#exith1(config)#interface type mode-number/port-numberh1(config-if)#switchport mode accessh1(config-if)#switchport access vlan vlan-numberh1#show vlan /检查配置h1(config-if)#no switchport access vlan vlan-number /关闭交换机模式VTP(VLAN Trunking Protocol) 服务器 可以添加删除修改 客户端 不能添加 ,只能学习服务器模式 透明模式 可以添加删除修改,但是不响其他发送交换机的VTP配置(版本1,版本2)VTP域的配置方法h1#vlan databaseh1(vlan)#vtp v2-mode /使用版本1(默认),还是版本2(整个VTP域不能混用)h1(vlan)#vtp domain name /建立域(1-32字符)h1(vlan)#vtp pruning /启动修剪功能h1(vlan)#VTP client|server|transparnet /修改交换机模式h1#show vtp status /检查配置EgSwitchA#vlan databaseSwitchA(vlan)#vtp serverSwitchA(vlan)#vtp domain vtpserverSwitchA(vlan)#vtp pruningSwitchA(vlan)#exitSwitchA#config terminalSwitchA(config)#interface f0/24 (快速以太口)SwitchA(config-if)#switchport mode trunk /配置这个以太口为trunk 模式SwitchA(config-if)#switchport trunk encapsulation dot1q /封装协议802.1QSwitchA(config-if)#switchport trunk allowed vlan all /允许所有的vlan信息通过SwitchA(config-if)#ZSwitchA#vlan databaseSwitch(vlan)#vlan 2 /定义vlan 2SwitchA(config-vlan)#endSwitchA(vlan)#vlan 3SwitchA(vlan)#name vlan3SwitchA(config-vlan)#endSwitchA#config terminalSwitchA(config)#interface f0/8SwitchA(config-if)#switchport mode accessSwitchA(config-if)#switchport access vlan2 /配置这个端口属于vlan2SwitchA(config)#exitSwitchA(config)#interface f0/9SwitchA(config-if)#switchport mode accessSwitchA(config-if)#switchport access vlan3SwitchA(config-if)#Z交换机B配置SwitchB#vlan databaseSwitchB(vlan)#vtp clientSwitchB(vlan)#exitSwitchB#config terminalSwitchB(config)#interface f0/24SwitchB(config-if)#switchport mode trunkSwitchB(config-if)#switchport trunk encapsulation dot1qSwitchB(config-if)#switchport trunk allowed vlan allSwitchB(config-if)#ZSwitchB#config terminalSwitchB(config)#interface f0/8SwitchB(config-if)#switchport mode accessSwitchB(config-if)#switchport access vlan2 /配置这个端口属于vlan2SwitchB(config)#exitSwitchB(config)#interface f0/9SwitchB(config-if)#switchport mode accessSwitchB(config-if)#switchport access vlan3SwitchB(config-if)#Z交换机的vlan配置-单臂路由vlan之间的路由概述 两台交换级之间,相同vlan的主机可以互相通信(干道连接) 两台交换机之间,不同vlan的主机不可通信(路由器可以通信,为vlan做路由) 在主机A中设置默认网关为路由器的E0/1 vlan间的路由相当于子网间的路由(建议一个vlan对应一个子网) 把路由器的物理接口逻辑的划分多个子接口(每个子接口对应一个vlan的子网)vlan之间的路由配置命令router(config)#interface f0/0router(config-if)#full douplex /全双工模式,可以router(config-if)#no shutrouter(config-if)#interface fastethernet interface-number.subinterface-number /进入子接口模式router(config-subif)#encaqpsulation dot1|isl vlan-number /为子接口封装协议router(config-subif)#ip address ip-address subnet-mask三层交换机上打开路由功能需要使用命令 IP routingEg 单臂路由将E0端口分为三个逻辑子接口R(config)#interface e0/0.1R(config-subif)#encapsulation dot1q 10R(config-subif)#ip address 192.168.0.1 255.255.255.0R(config-subif)#no shutdownR(config-subif)#exitR(config)#interface e0/0.2R(config-subif)#encapsulation dot1q 20R(config-subif)#ip address 10.10.10.1 255.255.255.0R(config-subif)#no shutdownR(config-subif)#exitR(config)#interface e0/0.3R(config-subif)#encapsulation dot1q 100R(config-subif)#ip address 172.16.0.1 255.255.255.0R(config-subif)#no shutdownR(config-subif)#exitR(config)#interface e0/0.2R(config-subif)#encapsulation dot1q 20R(config-subif)#ip address 10.10.10.1 255.255.255.0R(config-subif)#no shutdownR(config-subif)#exitR(config)#interface e0/0R(config-subif)#no shutdownSwitch(config)#interface e0/3Switch(config-if)#switchport mode trunk(对此端口进行trunk封装是的多个vlan信息通过该端口)Switch(config-if)#switchport trunk encapsulation dot1qSwitch(config-if)#switchport trunk allowed allSwitch(config-if)#exit交换机的(生成书协议)配置 实现交换机之间冗余连接的同时避免出现网络环路,实现网络的高可靠性 多个trunk接口,避免出现环路关闭STPSwitch#config terminalSwitch(config)#no spanning-tree vlan vlan-id /特定的vlan中关闭STPSwitch(config)#end /返回特权模式配置根交换机Switch#configure terminalSwitch(config)#spanning-tree vlan vlan-id root primarydiameter net-diameterhello-time seconds /配置该交换机成为指定vlan的跟交换机 (其中diameter net-diameter 为网络直径,两台终端网络路径之间存在的交换机数量,2-7,hellow-time seconds 为定义跟乔产生BPDU通知间隔)配置端口优先级Switch#configure terminalSwitch(config-if)#spanning-tree port-priority priority /为接口配置优先级Switch(config-if)#spanning-tree vlan vlan-id port-priority priority /为lan接口配置vlan端口优先值,参数priority 范围是1-252Switch(config)#end /返回特权模式 配置开销Switch#configure terminalSwitch(config-if)#spanneing-tree cost port-cost /配置接口费用,cost范围为1-200,000,000Switch(config-if)#spanning-tree vlan vlan-id cost cost /配置vlan费用,cost范围为1-200,000,000Switch(config)#endEgEg 交换机的配置 Trunk1接受vlan1-3的数据 trunk2 接受vlan4-5的数据 (STP避免多个trunk出现环路根据优先级决定接受的数据)首先配置SwitchA#vlan databaseSwitchA(vlan)#vtp serverSwitchA(vlan)#vtp domain vtpserverSwitchA(vlan)#vtp pruningSwitchA(vlan)#exitSwitchA#config terminalSwitchA(config)#interface f0/0SwitchA(config-if)#switchport mode trunkSwitchA(config-if)#switchport trunk encapsulation dot1qSwitchA(config-if)#exitSwitchA(config)#interface f0/1SwitchA(config-if)#switchport mode trunkSwitchA(config-if)#switchport trunk encapsulation dot1qSwitchA(config-if)#exitSwitchA(config)#interface f0/0SwitchA(config-if)#spanning-tree vlan 3 cost 18SwitchA(config-if)#spanning-tree vlan 2 cost 18SwitchA(config-if)#spanning-tree vlan 1 cost 18SwitchA(config-if)#spanning-tree vlan 5 cost 30SwitchA(config-if)#spanning-tree vlan 4 cost 30SwitchA(config-if)#exitSwitchA(config)#interface f0/1SwitchA(config-if)#spanning-tree vlan 3 cost 30SwitchA(config-if)#spanning-tree vlan 2 cost 30SwitchA(config-if)#spanning-tree vlan 1 cost 30SwitchA(config-if)#spanning-tree vlan 5 cost 18SwitchA(config-if)#spanning-tree vlan 4 cost 18路由器技术基础 要知道目的地址 有学习到路由的资源 有可以到达目的网络的路径 在众多路径中有最佳的选择 管理和维护路由信息路由器的基本知识 启动之前,检查联系是否正确(0不可热拔插线路,新关闭在操作 检查完后,电源线插入,打开开关 完成开机自检之后,在控制台出现路由器的IOS信息 完成自检后,进入用户模式1. 路由器的启动2. Show version命令 /型号,接口,内存,配置注册号3. Show running-config 命令 /查看当前在内存当中运行的配置命令(排除故障)4. Show interface 命令 /(查看接口装坛)(up 线路没有问题,down 线路有问题 关闭接口 shutdown)5. 路由器的结构简介(RAM,ROM,flash,NVRAM启动配置,interface接口控制芯片)6. 配置注册码的重要性(保存在NVRAM中)7. 保存和备份配置
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 供应链管理优化与成本控制策略
- 游览车赠送合同范本
- 油田安全施工协议书
- 广告推广方案协议书
- 平台分销申请协议书
- 工程结算协议书样本
- 幼儿篮球培训协议书
- 工程包工劳务协议书
- 工程造价咨询协议书
- 工作调整变更协议书
- 全国大学生职业规划大赛《智慧健康养老服务与管理》专业生涯发展展示【高职(专科)】
- 纪检工作管理制度汇编
- 打击反诈宣传课件
- 2025年中国嘧霉胺行业市场分析及投资价值评估前景预测报告
- 库房消防应急预案方案
- 2025年科研伦理与学术规范考核试卷答案及解析
- 倒闸操作安全培训课件
- GB/T 46122.8-2025烟花爆竹特定化学物质检测方法第8部分:砷含量的测定氢化物发生-原子荧光光谱法
- 梁晓声母亲课件
- 肺癌化疗护理
- 婴儿饼干烘焙培训
评论
0/150
提交评论