




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
计算机命令 PCA login: root ;使用root用户 password: linux ;口令是linux# shutdown -h now ;关机# init 0 ;关机# logout# login# ifconfig ;显示IP地址# ifconfig eth0 netmask ;设置IP地址# ifconfig eht0 netmask down ; 删除IP地址# route add gw # route del gw # route add default gw ;设置网关# route del default gw ;删除网关# route ;显示网关# ping # telnet ;建议telnet之前先ping一下交换机命令Quidwaysuper password 修改特权用户密码Quidwaysysname 交换机命名 Quidwayinterface ethernet 0/1 进入接口视图Quidwayinterface vlan x 进入接口视图Quidway-Vlan-interfacexip address Quidwayip route-static 静态路由网关Quidwayuser-interface vty 0 4S3026-ui-vty0-4authentication-mode passwordS3026-ui-vty0-4set authentication-mode password simple 222S3026-ui-vty0-4user privilege level 3Quidway-Ethernet0/1duplex half|full|auto 配置端口双工工作状态Quidway-Ethernet0/1speed 10|100|auto 配置端口工作速率Quidway-Ethernet0/1flow-control 配置端口流控Quidway-Ethernet0/1mdi across|auto|normal 配置端口MDI/MDIX状态平接或扭接Quidway-Ethernet0/1port link-type trunk|access|hybrid 设置接口工作模式Quidway-Ethernet0/1shutdown 关闭/重起接口Quidway-Ethernet0/2quit 退出系统视图Quidwayvlan 3 创建/删除一个VLAN/进入VLAN模式Quidway-vlan3port ethernet 0/1 to ethernet 0/4 在当前VLAN增加/删除以太网接口Quidway-Ethernet0/2port access vlan 3 将当前接口加入到指定VLANQuidway-Ethernet0/2port trunk permit vlan ID|All 设trunk允许的VLANQuidway-Ethernet0/2port trunk pvid vlan 3 设置trunk端口的PVIDQuidwaymonitor-port 指定和清除镜像端口Quidwayport mirror 指定和清除被镜像端口Quidwayport mirror int_list observing-port int_type int_num 指定镜像和被镜像Quidwaydescription string 指定VLAN描述字符Quidwaydescription 删除VLAN描述字符Quidwaydisplay vlan vlan_id 查看VLAN设置Quidwaystp enable|disable 开启/关闭生成树,默认关闭Quidwaystp priority 4096 设置交换机的优先级Quidwaystp root primary|secondary 设置交换机为根或根的备份Quidway-Ethernet0/1stp cost 200 设置交换机端口的花费SwitchA-vlanxisolate-user-vlan enable 设置主vlanSwitchAIsolate-user-vlan secondary 设置主vlan包括的子vlanQuidway-Ethernet0/2port hybrid pvid vlan 设置vlan的pvidQuidway-Ethernet0/2port hybrid pvid 删除vlan的pvidQuidway-Ethernet0/2port hybrid vlan vlan_id_list untagged 设置无标识的vlan 如果包的vlan id与PVId一致,则去掉vlan信息. 默认PVID=1。所以设置PVID为所属vlan id, 设置可以互通的vlan为untagged.路由器命令Quidwaydisplay version 显示版本信息Quidwaydisplay current-configuration 显示当前配置Quidwaydisplay interfaces 显示接口信息Quidwaydisplay ip route 显示路由信息Quidwaysysname aabbcc 更改主机名Quidwaysuper passwrod 123456 设置口令 Quidwayinterface serial0 进入接口Quidway-serial0ip address Quidway-serial0undo shutdown 激活端口Quidwaylink-protocol hdlc 绑定hdlc协议Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication-mode passwordQuidway-ui-vty0-4set authentication-mode password simple 222Quidway-ui-vty0-4user privilege level 3Quidway-ui-vty0-4quit Quidwaydebugging hdlc all serial0 显示所有信息Quidwaydebugging hdlc event serial0 调试事件信息Quidwaydebugging hdlc packet serial0 显示包的信息静态路由:Quidwayip route-static interface number|nexthopvaluereject|blackhole 例如:Quidwayip route-static 16 Quidwayip route-static Quidwayip route-static 16 Serial 2Quidwayip route-static 动态路由:QuidwayripQuidwayrip workQuidwayrip inputQuidwayrip outputQuidway-ripnetwork ;可以allQuidway-ripnetwork Quidway-rippeer ip-address Quidway-ripsummary Quidwayrip version 1Quidwayrip version 2 multicastQuidway-Ethernet0rip split-horizon ;水平分隔Quidwayrouter id A.B.C.D 配置路由器的IDQuidwayospf enable 启动OSPF协议Quidway-ospfimport-route direct 引入直联路由Quidway-Serial0ospf enable area 配置OSPF区域标准访问列表命令格式如下:acl match-order config|auto 默认前者顺序匹配。rule normal|specialpermit|deny source source-addr source-wildcard|any例:Quidwayacl 10Quidway-acl-10rule normal permit source 55Quidway-acl-10rule normal deny source any扩展访问控制列表配置命令配置TCP/UDP协议的扩展访问列表:rule normal|specialpermit|denytcp|udpsource |anydestination |anyoperate配置ICMP协议的扩展访问列表:rule normal|specialpermit|denyicmp source |anydestination |anyicmp-code logging扩展访问控制列表操作符的含义equal portnumber 等于greater-than portnumber 大于less-than portnumber 小于not-equal portnumber 不等range portnumber1 portnumber2 区间扩展访问控制列表举例Quidwayacl 101Quidway-acl-101rule deny souce any destination anyQuidway-acl-101rule permit icmp source any destination any icmp-type echoQuidway-acl-101rule permit icmp source any destination any icmp-type echo-replyQuidwayacl 102Quidway-acl-102rule permit ip source destination Quidway-acl-102rule deny ip source any destination anyQuidwayacl 103Quidway-acl-103rule permit tcp source any destination destination-port equal ftpQuidway-acl-103rule permit tcp source any destination destination-port equal wwwQuidwayfirewall enableQuidwayfirewall default permit|denyQuidwayint e0Quidway-Ethernet0firewall packet-filter 101 inbound|outbound地址转换配置举例Quidwayfirewall enableQuidwayfirewall default permit Quidwayacl 101Quidway-acl-101rule deny ip source any destination any Quidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidwayacl 102Quidway-acl-102rule permit tcp source 0 destination 0Quidway-acl-102rule permit tcp source any destination 0 destination-port great-than 1024Quidway-Ethernet0firewall packet-filter 101 inbound Quidway-Serial0firewall packet-filter 102 inbound Quidwaynat address-group 01 03 pool1Quidwayacl 1 Quidway-acl-1rule permit source 55Quidway-acl-1rule deny source any Quidway-acl-1int serial 0Quidway-Serial0nat outbound 1 address-group pool1 Quidway-Serial0nat server global 01 inside ftp tc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 老年眼病流行病学-洞察及研究
- 资源调度优化-洞察及研究
- 肝脏再灌注损伤免疫机制-洞察及研究
- 生物医疗电子-洞察及研究
- 声音景观的数字化保护-洞察及研究
- 【正版授权】 ISO/IEC GUIDE 98-3-SP2:2011 EN Supplement 2 - Uncertainty of measurement - Part 3: Guide to the expression of uncertainty in measurement (GUM:1995) - Extension to any numbe
- 【正版授权】 IEC 62868-2-2:2020+AMD1:2025 CSV EN Organic light emitting diode (OLED) light sources for general lighting - Safety - Part 2-2: Particular requirements - Integrated OLED mod
- 销售渠道分销及市场拓展合作协议
- 农业养殖设备租赁合作协议
- 新能源汽车研发股份分红及产业链合作协议
- 2025年河南高考真题化学试题含答案
- 陕西省榆林市2023-2024学年高二下学期期末质量检测政治试卷(含答案)
- 2025年高考全国二卷数学高考真题解析 含参考答案
- 2025年普通高等学校招生全国统一考试数学试题(全国一卷)(有解析)
- 护士文职面试题及答案
- 解剖期末试题题库及答案
- 【高分复习笔记】胡裕树《现代汉语》(重订本)笔记和课后习题(含考研真题)详解
- 中国未来几年直流电源屏行业市场前景预测及投资价值评估分析报告
- 山西省万家寨水务控股集团及所属企业招聘笔试题库2025
- 冷库制作安装合同协议书
- 花店学徒合同协议书模板
评论
0/150
提交评论