1、显示网关#ping;发ECHO包#telnet;远程登录交换机命令Quidwaydiscur;显示当前配置Quidwaydisplaycurrent-configuration;Quidwaydisplayinterfaces;显示接口信息Quidwaydisplayvlanall;显示路由信息Quidwaydisplayversion;显示版本信息Quidwaysuperpassword;修改特权用户密码Quidwaysysname;交换机命名Quidwayinterfaceethernet0/1;进入接口视图Quidwayinterfacevlanx;Quidway-Vlan-interf
2、acex;配置VLAN的IP地址Quidway;静态路由网关Quidwayrip;三层交换支持Quidwaylocal-userftpQuidwayuser-interfacevty04;进入虚拟终端S3026-ui-vty0-4authentication-modepassword;设置口令模式S3026-ui-vty0-4setauthentication-modepasswordsimple222;设置口令S3026-ui-vty0-4userprivilegelevel3;用户级别进入端口模式Quidwayinte0/1;Quidway-Ethernet0/1duplexhalf|fu
3、ll|auto;配置端口工作状态Quidway-Ethernet0/1speed10|100|auto;配置端口工作速率Quidway-Ethernet0/1flow-control;配置端口流控Quidway-Ethernet0/1mdiacross|auto|normal;配置端口平接扭接Quidway-Ethernet0/1portlink-typetrunk|access|hybrid;设置端口工作模式Quidway-Ethernet0/1portaccessvlan3;当前端口加入到VLANQuidway-Ethernet0/2porttrunkpermitvlanID|All;设t
4、runk允许的VLANQuidway-Ethernet0/3porttrunkpvidvlan3;设置trunk端口的PVIDQuidway-Ethernet0/1undoshutdown;激活端口Quidway-Ethernet0/1shutdown;关闭端口Quidway-Ethernet0/1quit;返回Quidwayvlan3;创建VLANQuidway-vlan3portethernet0/1;在VLAN中增加端口Quidway-vlan3porte0/1;简写方式Quidway-vlan3portethernet0/1toethernet0/4;Quidway-vlan3port
5、e0/1toe0/4;Quidwaymonitor-port;指定镜像端口Quidwayportmirror;指定被镜像端口Quidwayportmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像Quidwaydescriptionstring;指定VLAN描述字符Quidwaydescription;删除VLAN描述字符Quidwaydisplayvlanvlan_id;查看VLAN设置Quidwaystpenable|disable;设置生成树,默认关闭Quidwaystppriority4096;设置交换机的优先级Quidwaystp
6、rootprimary|secondary;设置为根或根的备份Quidway-Ethernet0/1stpcost200;设置交换机端口的花费Quidwaylink-aggregatione0/1toe0/4ingress|both;端口的聚合Quidwayundolink-aggregatione0/1|all;始端口为通道号SwitchA-vlanxisolate-user-vlanenable;设置主vlanSwitchAisolate-user-vlansecondary;设置主vlan包括的子vlanQuidway-Ethernet0/2porthybridpvidvlan;设置vl
7、an的pvidQuidway-Ethernet0/2porthybridpvid;删除vlan的pvidQuidway-Ethernet0/2porthybridvlanvlan_id_listuntagged;设置无标识的vlan如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。所以设置PVID为所属vlanid,设置可以互通的vlan为untagged.路由器命令Quidwaydisplayiproute;Quidwaysysnameaabbcc;更改主机名Quidwaysuperpasswrod123456;Quidwayinterfaceserial0;进入接口
8、Quidway-serial0ipaddress;配置端口IP地址Quidway-serial0undoshutdown;Quidwaylink-protocolhdlc;绑定hdlc协议Quidwayuser-interfacevty04Quidway-ui-vty0-4authentication-modepasswordQuidway-ui-vty0-4setauthentication-modepasswordsimple222Quidway-ui-vty0-4userprivilegelevel3Quidway-ui-vty0-4quitQuidwaydebugginghdlcall
9、serial0;显示所有信息Quidwaydebugginghdlceventserial0;调试事件信息Quidwaydebugginghdlcpacketserial0;显示包的信息静态路由:Quidwayiproute-staticinterfacenumber|nexthopvaluereject|blackhole例如:QuidwayiprouteQuidway动态路由:设置动态路由Quidwayripwork;设置工作允许Quidwayripinput;设置入口允许Quidwayripoutput;设置出口允许设置交换路由网络Quidway-ripnetworkall;设置与所有网
10、络交换Quidway-rippeerip-address;Quidway-ripsummary;路由聚合Quidwayripversion1;设置工作在版本1Quidwayripversion2multicast;设版本2,多播方式Quidway-Ethernet0ripsplit-horizon;水平分隔Quidway;配置路由器的IDQuidwayospfenable;启动OSPF协议Quidway-ospfimport-routedirect;引入直联路由Quidway-Serial0ospfenablearea;配置OSPF区域标准访问列表命令格式如下:aclmatch-orderco
11、nfig|auto;默认前者顺序匹配。rulenormal|specialpermit|denysourcesource-addrsource-wildcard|any例:Quidwayacl10Quidway-acl-10rulenormaldenysourceany扩展访问控制列表配置命令配置TCP/UDP协议的扩展访问列表:rulenormal|specialpermit|denytcp|udpsource|anydestination|anyoperate配置ICMP协议的扩展访问列表:rulenormal|specialpermit|denyicmpsource|anydestina
12、tion|anyicmp-codelogging扩展访问控制列表操作符的含义equalportnumber;等于greater-thanportnumber;大于less-thanportnumber;小于not-equalportnumber;不等rangeportnumber1portnumber2;区间扩展访问控制列表举例Quidwayacl101Quidway-acl-101ruledenysouceanydestinationanyQuidway-acl-101rulepermiticmpsourceanydestinationanyicmp-typeechoQuidway-acl-
13、101rulepermiticmpsourceanydestinationanyicmp-typeecho-replyQuidwayacl102Quidway-acl-102ruledenyipsourceanydestinationanyQuidwayacl103QuidwayfirewallenableQuidwayfirewalldefaultpermit|denyQuidwayinte0Quidway-Ethernet0firewallpacket-filter101inbound|outbound地址转换配置举例QuidwayfirewalldefaultpermitQuidwaya
14、cl101;内部指定主机可以进入e0Quidway-acl-101ruledenyipsourceanydestinationanyQuidway-acl-101quitQuidway-Ethernet0firewallpacket-filter101inboundQuidwayacl102;外部特定主机和大于1024端口的数据包允许进入S01024Quidway-acl-102quitQuidwayints0Quidway-Serial0firewallpacket-filter102inbound;设是路由器出口IP。Quidway-Serial0natoutbound101interfa
15、ce;是Easyip,将acl101允许的IP从本接口出时变换源地址。内部服务器地址转换配置命令(静态nat):natserverglobalportinsideportprotocol;global_port不写时使用inside_port设有公网IP:可以使用。;对外访问(原例题)Quidwaynataddress-group202.38.160.101202.38.160.103pool1;建立地址池Quidwayacl1Quidway-acl-1rulepermitsource10.110.10.00.0.0.255;指定允许的内部网络Quidway-acl-1ruledenysour
16、ceanyQuidway-acl-1intserial0Quidway-Serial0natoutbound1address-grouppool1;在s0口从地址池取出IP对外访问PPP设置:Quidway-s0link-protocolppp;默认的协议PPP验证:主验方:pap|chapQuidwaylocal-userq2passwordsimple|cipherhello;路由器1Quidwayinterfaceserial0Quidway-serial0pppauthentication-modepap|chapQuidway-serial0pppchapuserq1;pap时,没有
17、此句华为路由交换机配置命令:pap被验方:Quidwayinterfaceserial0;路由器2Quidway-serial0ppppaplocal-userq2passwordsimple|cipherhellochap被验方:Quidway-serial0pppchapuserq2;自己路由器名Quidway-serial0local-userq1passwordsimple|cipherhello;对方路由器名帧中继frame-relay(二分册6-61)q1frswitchingq1ints1q1-Serial1link-protocolfr;封装帧中继协议q1-Serial1fri
18、nterface-typedceq1-Serial1frdlci100q1-Serial1frinarpq2ints1q2-Serial1link-protocolfrq2-Serial1frinterface-typedteq2-Serial1frdlci100q2-Serial1frinarp帧中继监测q1displayfrlmi-infointerfacetypenumberq1displayfrmapq1displayfrpvc-infoserialinterface-numberdlcidlci-numberq1displayfrdlci-switchq1displayfrinterfaceq1resetfrinarp-infoq1debuggingfrallinterfacetypenumberq1debuggingfrarpinterfacetypenumberq1debuggingfreventinterfacetypenumberq1debuggingfrlmiinterfacetypenumber启动ftp服务:Quidwaylocal-userftppasswordsimple|cipheraaaservice-typeftpQuidwayftpserverenable
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1