vRp显示当前配置文件的命令是|华为交换机配置导出问题

|

㈠ 华为路由器关闭所有端口命令

华 为 路 由 器 命 令 大 全删除设备配置reset saved-configuration重启reboot看当前配置文件display current-configuration改设备名sysname保存配置save进入特权模式sysview华为只有2层模式 不像cisco enale之后还要conf t定义aclacl nubmere XXXX(3000以上)进入以后rule permit/deny IP/TCP/UDP等 source XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX(反向)destination XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX(反向) eq注意 华为默认没有deny any any防火墙上端口加载ACL[Quidway-Ethernet0/0]firewall packet-filter 3000 inbound防火墙上新增加用户local-user XXX(用户名) password simple XXX(密码)local-user XXX service-type ppp删除某条命令undo(类似与cisco的no)静态路由ip route-static 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX对vpdn用户设置acl的接口interface Virtual-Template1查看路由表display ip routing-table设定telnet密码user-interface vty 0 4user privilege level 3set authentication password simple XXX启动/关闭启动 un shut关闭 shut动态nat设置acl number 3000rule 0 permit ip source XXX.XXX.XXX.XXXrule 1 permit ip source XXX.XXX.XXX.XXXrule 2 permit ip source XXX.XXX.XXX.XXXinterface Ethernet1/0des cription ====To-Internet(WAN)====ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXXnat outbound 3000ipsec policy policy1利用acl来做 符合acl的IP地址可以出去(注意 此处的ACL隐含了deny any any)不符合的IP地址不可以出去创建vlan[shzb-crsw-s6506-1]vlan 100华为vlan不支持name将port放入vlan创建了vlan后 进入vlan模式[shzb-crsw-s6506-1-vlan100]port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/8表示从G1/0/1 到1/0/8放入VLAN 100创建trunkinterface GigabitEthernet1/0/1plex fullspeed 1000 port link-type trunk port trunk permit vlan all port link-aggregation group 1 带*号的是创建trunk链路的语句vlan地址指定interface Vlan-interface2des cription serverip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXXvrrp vrid 2 virtual-ip XXX.XXX.XXX.XXXvrrp vrid 2 priority 120vrrp vrid 2 preempt-mode timer delay 10其中vrrp语句指定vrrp 类似与hsrp使用vrrp要注意的是华为不支持pvst只能一台完全是主,一台完全是备份在主vrrp设备上要指定stp instance 0 root primarystp TC-protection enablestp enable在从vrrp设备上要指定stp instance 0 root secondarystp TC-protection enablestp enable交换机下面绑acl首先进入接口模式,输入qos命令[shzb-crsw-s6506-1-GigabitEthernet1/0/1]qos在输入如下命令[shzb-crsw-s6506-1-qoss-GigabitEthernet1/0/1]packet-filter inbound ip-group 3000华为交换机只能指定inbound方向启用ospf[shzb-crsw-s6506-1]ospf 100[shzb-crsw-s6506-1-ospf-100]area 0[shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]network XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX配置ospf重发布[shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]quit[shzb-crsw-s6506-1-ospf-100]import-route static建立link-group(类似与cisco的channel-group)link-aggregation group 1 mode manual然后进入接口port link-aggregation group 1启用VRRP之前必须输入vrrp ping-enable使得客户能ping网关华为华为路由器交换机配置命令大全一、计算机命令PCAlogin:root;使用root用户password:linux;口令是linux#shutdown-hnow;关机#init 0;关机#logout;用户注销#login;用户登录#ifconfig;显示IP地址#ifconfig eth0 netmask;设置IP地址#ifconfig eht0 netmask down;禁用IP地址#route add 0.0.0.0 gw;设置网关#route del 0.0.0.0 gw;删除网关#route add default gw;设置网关#route del default gw;删除网关#route;显示网关#ping;发ECHO包#telnet;远程登录二、华为路由器交换机配置命令:交换机命令[Quidway]dis cur;显示当前配置[Quidway]display current-configuration;显示当前配置[Quidway]display interfaces;显示接口信息[Quidway]display vlan;显示vlan信息[Quidway]display version;显示版本信息[Quidway]super password;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interface ethernet0/1;进入接口视图[Quidway]interface vlan x;进入接口视图[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0;配置VLAN的IP地址[Quidway]Ip route-static 0.0.0.0 0.0.0.0 10.65.1.2;静态路由=网关[Quidway]rip; rip协议[Quidway]local-user ftp[Quidway]user-interface vty 0 4;进入虚拟终端[S3026-ui-vty0-4]authentication-mode password;设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple 222;设置口令[S3026-ui-vty0-4]user privilege level 3;用户级别[Quidway]interface ethernet0/1;进入端口模式[Quidway]int e0/1;进入端口模式[Quidway-Ethernet0/1]plex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]port access vlan 3;当前端口加入到VLAN[Quidway-Ethernet0/2]port trunk permit vlan{ID|All};设trunk允许的VLAN[Quidway-Ethernet0/3]port trunk pvid vlan 3;设置trunk端口的PVID[Quidway-Ethernet0/1]undo shutdown;激活端口[Quidway-Ethernet0/1]shutdown;关闭端口[Quidway-Ethernet0/1]quit;返回[Quidway]vlan3;创建VLAN[Quidway-vlan3]port ethernet0/1;在VLAN中增加端口[Quidway-vlan3]port e0/1;简写方式[Quidway-vlan3]port ethernet0/1 to ethernet0/4;在VLAN中增加端口[Quidway-vlan3]port e0/1 to e0/4;简写方式[Quidway]monitor-port;指定镜像端口[Quidway]port mirror;指定被镜像端口[Quidway]port mirror int_list observing-port int_type int_num;指定镜像和被镜像[Quidway]description string;指定VLAN描述字符[Quidway]description;删除VLAN描述字符[Quidway]display vlan[vlan_id];查看VLAN设置[Quidway]stp{enable|disable};设置生成树,默认关闭[Quidway]stp priority 4096;设置交换机的优先级[Quidway]stp root{primary|secondary};设置为根或根的备份[Quidway-Ethernet0/1]stp cost 200;设置交换机端口的花费[Quidway]link-aggregation e0/1 to e0/4 ingress|both;端口的聚合[Quidway]undo link-aggregation e0/1|all;始端口为通道号[SwitchA-vlanx]isolate-user-vlan enable;设置主vlan[SwitchA]isolate-user-vlan secondary;设置主vlan包括的子vlan[Quidway-Ethernet0/2]port hybrid pvid vlan;设置vlan的pvid[Quidway-Ethernet0/2]port hybrid pvid;删除vlan的pvid[Quidway-Ethernet0/2]port hybrid vlan vlan_id_list untagged;设置无标识的vlan如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。所以设置PVID为所属vlanid,设置可以互通的vlan为untagged.三、华为路由器交换机配置命令:路由器命令[Quidway]display version;显示版本信息[Quidway]display current-configuration;显示当前配置[Quidway]display interfaces;显示接口信息[Quidway]display ip route;显示路由信息[Quidway]sysname aabbcc;更改主机名[Quidway]super password 123456;设置口令[Quidway]interface serial0;进入接口[Quidway-serial0]ip address;配置端口IP地址[Quidway-serial0]undo shutdown;激活端口[Quidway]link-protocol hdlc;绑定hdlc协议[Quidway]user-interface vty 0 4[Quidway-ui-vty0-4]authentication-mode password[Quidway-ui-vty0-4]set authentication-mode password simple 222[Quidway-ui-vty0-4]user privilege level 3[Quidway-ui-vty0-4]quit[Quidway]debugging hdlc all serial0;显示所有信息[Quidway]debugging hdlc event serial0;调试事件信息[Quidway]debugging hdlc packet serial0;显示包的信息四、华为路由器交换机配置命令:静态路由:[Quidway]ip route-static{interfacenumber|nexthop}[value][reject|blackhole]例如:[Quidway]ip route-static 129.1.0.0 16 10.0.0.2[Quidway]ip route-static 129.1.0.0 255.255.0.0 10.0.0.2[Quidway]ip route-static 129.1.0.0 16 Serial2[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.0.0.2五、华为路由器交换机配置命令:动态路由:[Quidway]rip;设置动态路由[Quidway]rip work;设置工作允许[Quidway]ri pinput;设置入口允许[Quidway]rip output;设置出口允许[Quidway-rip]network 1.0.0.0;设置交换路由网络[Quidway-rip]network all;设置与所有网络交换[Quidway-rip]peer ip-address;[Quidway-rip]summary;路由聚合[Quidway]rip version 1;设置工作在版本1[Quidway]rip version 2 multicast;设版本2,多播方式[Quidway-Ethernet0]rip split-horizon;水平分隔[Quidway]router id A.B.C.D;配置路由器的ID[Quidway]ospf enable;启动OSPF协议[Quidway-ospf]import-routedirect;引入直联路由[Quidway-Serial0]ospf enable area;配置OSPF区域六、华为路由器交换机配置命令:标准访问列表命令格式如下:acl[match-orderconfig|auto];默认前者顺序匹配。rule[normal|special]{permit|deny}[sourcesource-addrsource-wildcard|any]例:[Quidway]acl10[Quidway-acl-10]rule normal permit source 10.0.0.0 0.0.0.255[Quidway-acl-10]rule normal deny source any七、华为路由器交换机配置命令:扩展访问控制列表配置命令配置TCP/UDP协议的扩展访问列表:rule{normal|special}{permit|deny}{tcp|udp}source{|any}destination|any}[operate]配置ICMP协议的扩展访问列表:rule{normal|special}{permit|deny}icmpsource{|any]destination{|any][icmp-code][logging]八、华为路由器交换机配置命令:扩展访问控制列表操作符的含义Equalport number;等于greater-thanport number;大于less-thanport number;小于not-equalport number;不等range port number1 port number2;区间九、华为路由器交换机配置命令:扩展访问控制列表举例[Quidway]acl101[Quidway-acl-101]rule deny souce any destination any[Quidway-acl-101]rule permit icmp source any destination any icmp-type echo[Quidway-acl-101]rule permit icmp source any destination any icmp-type echo-reply[Quidway]acl102[Quidway-acl-102]rule permit ip source 10.0.0.1 0.0.0.0 destination 202.0.0.1 0.0.0.0[Quidway-acl-102]rule deny ip source any destination any[Quidway]acl 103[Quidway-acl-103]rule permit tcp source any destination 10.0.0.1 0.0.0.0 destination-port equal ftp[Quidway-acl-103]rule permit tcp source any destination 10.0.0.2 0.0.0.0 destination-port equal www[Quidway]firewall enable[Quidway]firewall default permit|deny[Quidway]int e0[Quidway-Ethernet0]firewall packet-filter 101 inbound|outbound十、华为路由器交换机配置命令:地址转换配置举例[Quidway]firewall enable[Quidway]firewall default permit[Quidway]acl 101;内部指定主机可以进入e0[Quidway-acl-101]rule deny ip source any destination any[Quidway-acl-101]rule permit ip source 129.38.1.10 destination any[Quidway-acl-101]rule permit ip source 129.38.1.20 destination any[Quidway-acl-101]rule permit ip source 129.38.1.30 destination any[Quidway-acl-101]rule permit ip source 129.38.1.40 destination any[Quidway-acl-101]quit[Quidway]int e0[Quidway-Ethernet0]firewall packet-filter 101 inbound[Quidway]acl 102;外部特定主机和大于1024端口的数据包允许进入S0[Quidway-acl-102]rule deny ip source any destination any[Quidway-acl-102]rule permit tcp source 202.39.2.30 destination 202.38.160.10[Quidway-acl-102]rule permit tcp source any destination 202.38.160.10 destination-port great-than 1024[Quidway-acl-102]quit[Quidway]int s0[Quidway-Serial0]firewall packet-filter 102 inbound;设202.38.160.1是路由器出口IP。[Quidway-Serial0]nat outbound 101 interface;是Easyip,将acl 101允许的IP从本接口出时变换源地址。十一、华为路由器交换机配置命令:内部服务器地址转换配置命令(静态nat):natserverglobal[port]insideport[protocol];global_port不写时使用inside_port[Quidway-Serial0]nat server global 202.38.160.1 inside 129.38.1.1 ftp tcp[Quidway-Serial0]nat server global 202.38.160.1 inside 129.38.1.2 telnet tcp[Quidway-Serial0]nat server global 202.38.160.1 inside 129.38.1.3 www tcp设有公网IP:202.38.160.101~202.38.160.103可以使用。;对外访问(原例题)[Quidway]nat address-group 202.38.160.101 202.38.160.103 pool1;建立地址池[Quidway]acl 1[Quidway-acl-1]rule permit source 10.110.10.0 0.0.0.255;指定允许的内部网络[Quidway-acl-1]rule deny source any[Quidway-acl-1]int serial0[Quidway-Serial0]nat outbound 1 address-group pool1;在s0口从地址池取出IP对外访问[Quidway-Serial0]nat server global 202.38.160.101 inside 10.110.10.1 ftp tcp[Quidway-Serial0]nat server global 202.38.160.102 inside 10.110.10.2 www tcp[Quidway-Serial0]nat server global 202.38.160.102 8080 inside 10.110.10.3 www tcp[Quidway-Serial0]nat server global 202.38.160.103 inside 10.110.10.4 smtp udp华为路由器交换机配置命令:PPP设置:[Quidway-s0]link-protocolppp;默认的协议十二、华为路由器交换机配置命令:PPP验证:主验方:pap|chap[Quidway]local-userq2password{simple|cipher}hello;路由器1[Quidway]interface serial0[Quidway-serial0]ppp authentication-mode{pap|chap}[Quidway-serial0]ppp chap user q1;pap时,没有此句十三、华为路由交换机配置命令:pap被验方:[Quidway]interface serial0;路由器2[Quidway-serial0]ppp pap local-user q2 password{simple|cipher}hello十四、华为路由器交换机配置命令:chap被验方:[Quidway]interface serial0;路由器2[Quidway-serial0]ppp chap user q2;自己路由器名[Quidway-serial0]local-user q1 password{simple|cipher}hello;对方路由器名帧中继frame-relay(二分册6-61)[q1]fr switching[q1]int s1[q1-Serial1]ip address 192.168.34.51 255.255.255.0[q1-Serial1]link-protocol fr;封装帧中继协议[q1-Serial1]fr interface-type dce[q1-Serial1]fr dlci 100[q1-Serial1]fr inarp[q1-Serial1]frmapip 192.168.34.52 dlci 100[q2]int s1[q2-Serial1]ip address 192.168.34.52 255.255.255.0[q2-Serial1]link-protocol fr[q2-Serial1]fr interface-type dte[q2-Serial1]f rdlci 100[q2-Serial1]fr inarp[q2-Serial1]fr mapip 192.168.34.51 dlci 100十五、华为路由器交换机配置命令:帧中继监测[q1]displayfrlmi-info[]interfacetypenumber][q1]display frmap[q1]display fr pvc-info[serialinterface-number][dlcidlci-number][q1]display fr dlci-switch[q1]display fr interface[q1]reset fr inarp-info[q1]debugging fr all[interfacetype number][q1]debugging fr arp[interfacetype number][q1]debugging fr event[interfacetype number][q1]debugging fr lmi[interfacetype number]十六、华为路由器交换机配置命令:启动ftp服务:[Quidway]local-user ftp password{simple|cipher}aaa service-type ftp[Quidway]ftp server enable————————————————版权声明:本文为CSDN博主「福尔摩康」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/zhangkang65/article/details/101533315打开CSDN,阅读体验更佳华为路由器常用命令_Doflamingozzz的博客_华为路由器…[Liufei-rip]summary ;路由聚合 [Liufei]rip version 1 ;设置工作在版本1 [Liufei]rip version 2 multicast ;设版本2,多播方式 [Liufei-Ethernet0]rip split-horizon ;水平分隔 [Liufei]router id A.B.C.D ;配置路由器的ID…华为路由器基本配置命令_把倒立的世界腾空的博客_dis ip…配置静态路由:ip route-static 1.1.1.1 32 192.168.10.1 配置默认路由:ip route-static 0.0.0.0 0.0.0.0 192.168.10.1 查看接口详细信息:dis interface brief 带源ip ping目标ip:ping -a 2.2.2.2 3.3.3.3 …史上最全华为路由器交换机配置命令大合集(辛苦整理).doc史上最全华为路由器交换机配置命令大合集(辛苦整理),史上最全华为路由器交换机配置命令大合集(辛苦整理)华为命令手册 pdf版最全华为交换机命令大全是最全的华为设备命令手册,收集了华为所有交换机和路由器的配置命令,并附带教程,帮助您更好的了解华为设备,是学习和使用华为设备的必需品,希望对你有帮助。最新发布 华为(huawei)USG系列防火墙的相关指令本人收集的usg系列防火墙的相关cli指令继续访问华为路由器命令大全华 为 路 由 器 命 令 大 全 删除设备配置 reset saved-configuration 重启 reboot 看当前配置文件 display current-configuration 改设备名 sysname 保存配置 save 进入特权模式 sysview 华为只有2层模式 不像cisco enale之后还要conf t 定义acl acl nubmere XXXX(3…继续访问华为路由器配置命令详解及实例_路由器基本命令及配置命令一、路由器的基本命令1、直联路由命令2、静态路由命令3、默认路由命令二、路由器的配置方法1、配置R1※配置直连路由a、首先配置路由器在开发部的网关IP为192.168.1.254,并将该接口打开,配置完毕后接口变绿说明配置正常。配置命令如下:b、配置路由器在f0/1端口的IP为192.168.2.1,并将该接口打开,配置命令如下:※配置默认路由配置路由器默认路由为192.168.2.2,配置命令如…继续访问配置华为路由器的常用命令本次实验所有的命令都是基于华为模拟器eNSP,我们首先从左边拖动一个路由器到主界面,右键启动路由器: 等待路由器启动起来,就可以进行命令行的操作了: 在输入命令之前,我们需要首先了解配置时的两个模式: 1.用户模式 注意红色框标记的位置,用尖括号括起来用户名时,此时为用户模式,也是设备刚刚登录进入设备的模式,该模式权限较低。 2.系统模式 注意红色框标记的位置,用中括号括起来用户名时,此时为用户模式。在用户模式,可以通过命令“system-view”进入。 3.常用命令 由于继续访问华为交换路由配置命令大全分享自己最近搜藏的交换路由常用配置命令,学会这些配置交换机基本没撒问题 ,我都做了相关命令的注释,欢迎各位看客指正补充 相互学习继续访问华为路由器基本使用命令1)进入路由器后,是位于用户视图,该视图只能完成一些基本的命令:2)从用户视图切换到系统视图:输入system或者简写sys <S1>sys Enter system view, return user view with Ctrl+Z. [S1] 3)从系统视图切换到接口视图(假设是s0/0接口):输入interface s0/04)从一个视图返回到上级视图:quit <S1>sys Enter system view, return user view with Ctr继续访问华为路由器命令手册_华为路由器配置命令表进入用户视图 <huawei>system-view显示版本信息 [huawei]display version 显示当前配置[huawei]display current-configuration 显示接口信息[huawei]display interfaces 显示路由信息 [huawei] di…继续访问热门推荐 华为路由器配置命令——【简单实用的华为路由器配置命令】华为路由器配置命令 <Huaiwei>system-view 进入系统视图模式 [Huaiwei]display interfaces 显示接口信息 [Huaiwei]display ip route 显示路由 [Huaiwei]link-protocol hdlc 绑定HDLC [Huaiwe…继续访问华为路由器常用命令集合system-view 进入系统视图 http serveer permit interface GigabitEthernet0/0/0 切换web登录的端口为0/0/0 undo nat alg pptp en 关闭PPTP服务 nat alg pptp en 开启PPTP服务 dis int gi 0/0/1 查看路由目前流量使用情况 华为路由器常用命令 [Quidway]dis cur ;显示当前配置 [Q继续访问华为路由器配置手册(新版)典型场景部署指导 基础配置 系统管理 网络可靠性 接口与链路 局域网与城域网接入 广域网接入 IP业务 IP路由 IP组播 MPLS Segment Routing VPM QoS 安全 系统监控 用户接入 MAT与IPv6过渡技术 虚拟集群 增值业务 安全加固 安全维护 配置 典型场景部署指导 前 言 场景描述 初始配置 基础网络搭建除 业务部署 时钟 可靠性 QoS 安全 流里统计和性能检测 基础配置 首次登录系统 首次登录系统概述 通过Console口登录设备 建立物理连接 登录设备 命令行使用 命令行概述 命令行使用支持的配置注意事项 搭建命令行运行环境 配置用户登录警示信息 配置设备名称图 设置命令级别 锁定用户界面 允许在系统视图下执行用户视图命令 如何使用命令行 进入命令视图 编辑命令行查询配置信息 查询诊断信息 命令行结果显示 命令行的错误信息 命令行别名 命令行智能回退 如何获得命令帮助 以上是部分目录预览华为路由器配置命令完全详解(全)华为路由器配置流程和命令详解!!!!!!华为路由器交换机常用配置命令<br />华为路由器交换机配置命令:计算机命令<br />PCAlogin:root;使用root用户<br />password:linux;口令是linux<br />#shutdown-hnow;关机<br />#init0;关机<br />#logout;用户注销<br />#login;用户登录<br />#ifconfig;显示IP地址<br />#ifconfig eth0 netmask;设置IP地址<br />#ifconfig eht0 netmask down;禁用IP地址<br /继续访问华为路由器交换机配置命令华为路由器交换机配置命令:计算机命令 PCAlogin:root;使用root用户 password:linux;口令是linux shutdown-hnow;关机 init0;关机 logout;用户注销 login;用户登录 ifconfig;显示IP地址 ifconfigeth0netmask;设置IP地址 ifconfigeht0netmask…继续访问华为路由器基本配置命令查看接口mac地址:dis int g0/0/1 查看接口信息(进接口):dis this 查看路由表:dis ip routing-table 查看所有接口ip信息:dis ip int b 绑定静态arp:arp static 192.168.100.2 000C-2959-FC57 查看arp表:display arp 查看当前配置:dis current-configuration 配置静态路由:ip route-static 1.1.1.1 32 192.168.10.1 配置默认路由:ip ro继续访问华为路由器配置命令汇总VRP系统基本使用,与交换机基本相同 信息中心配置 Log、Trap、Debug信息的输出,对设备的维护与监管至关重要 配置Log信息输出,即配置指定模块的Log信息输出到Log缓冲区、日志文件、控制台、终端和日志主机中。 配置任务两大类:一是Log信息输出基本功能和参数配置;二是Log信息输出配置。 system-view info-center enable 使能信息中心功能。info-center channel channel-number name channel-name ..继续访问 华为交换机、路由器命令合集华为交换机、路由器配置命令继续访问华为交换机关机方法_华为路由器交换机基本操作华为设备基本操作一、实验拓扑实验拓扑​​​二、基本功能配置1.查看系统displayversion显示版本号,型号,启动时间2.配置设备console密码,主机名,时间,时区,bannersystem-viewà进入系统视图模式,相当于思科的全局配置模式Enter system view, return user view withCtrl+Z.在系统视图模式,可以用ctrl+Z,quit,re…继续访问华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华三华为交换机-路由器配置常用命令.pdf华为路由器命令服务器写评

㈡ 华为交换机配置导出问题

display current-configuration 出来的文本不能直接拿来做命令用但是你可以在全局模式下dir看看 应该有vrpcfg.zip文件 这个是当前配置文件步骤 1 首先打开ftp服务 设置设备为 FTP 服务器 在 S-switch 上启动 FTP 服务,并配置 FTP 用户名 ftpuser,口令 ftppwd。<Quidway> system-view [Quidway] ftp server enable [Quidway] aaa [Quidway-aaa] local-user ftpuser password simple ftppwd [Quidway-aaa] local-user ftpuser service-type ftp [Quidway-aaa] local-user ftpuser ftp-directory flash:/ [Quidway-aaa] return 步骤 2 配置设备 IP <Quidway> system-view [Quidway] vlan 1 [Quidway] interface vlanif 1 [Quidway-Vlanif1] ip address 1.1.1.1 24 [Quidway-Vlanif1] quit 步骤 3 在 PC 上执行 ftp ip-address 命令,与设备建立 FTP 连接,并进入 FTP 客户端视图。 C:\>ftp 1.1.1.1 Connected to 1.1.1.1. 220 FTP service ready. User (1.1.1.2:(none)): ftpuser 331 Password required for Password: 230 User logged in. ftp> 步骤 4 下载配置文件ftp> dir 查看文件ftp>loc D:/ 转换本地目录到D:ftp>get vrpcfg.zip 下载配置文件连接另一台交换机,将配置文件上传至交换机flash:前三步骤相同第四步:用 ftp> put "D:\vrpcfg.zip" 命令上传配置文件。要使用telnet 需注意 要打开telnet服务[Quidway] ftp server enable 同时建立用户名密码和制定用户类型[Quidway-aaa] local-user telnetuser password simple telnetpwd [Quidway-aaa] local-user telnetuser service-type telnet[Quidway-aaa] return

㈢ 华为交换机从特权到全局的命令是什么 华为交换机几种模式的切换命令是什么

华为交换机切换命令如下:

(3)vRp显示当前配置文件的命令是扩展阅读:

VRP结构:

VRP平台以TCP/IP协议栈为核心,实现了数据链路层、网络层和应用层的多种协议,在操作系统中集成了路由技术、QoS技术、VPN技术、安全技术和IP语音技术等数据通信要件,并以IP转发引擎(TurboEngine)技术作为基础,为网络设备提供了出色的数据转发能力。

IP转发引擎:包括传统IP报文转发、IP快速转发、QoS服务质量、策略路由、安全能力及防火墙等。

广域网互联:支持PPP/MP、SLIP、HDLC/SDLC、X.25、Frame Relay、LAPB、ISDN和Ethernet等。

路由协议:支持RIP、OSPF、BGP、IGRP、EIGRP、PIM、DVMRP、BGMP等。

IP业务:支持ARP/Proxy ARP、NAT、DNS、DHCP中继、VLAN、SNA、VoIP和VPN等。

配置管理能力:支持命令行配置、日志告警、调试信息、SNMP管理等。

系统配置文件:

VRP系统配置文件是VRP命令行的集合,用户可将当前配置保存到配置文件中,以便在交换机重启后这些配置能够继续生效。另外,通过配置文件用户可以非常方便地查阅配置信息,也可以将配置文件上传到其它的交换机上,实现交换机的批量配置。

配置文件为文本文件,其规则如下:

1、以命令格式保存。

2、为了节省空间,只保存非缺省的参数。

3、以命令视图为基本框架,同一命令视图的命令组织在一起,形成一节,节与节之间通常用空行或注释行隔开(以“#”开始的为注释行)。空行或注释行可以是一行或多行。

4、文件中各节的顺序安排通常为:全局配置、接口配置、各种协议配置和用户界面配置。

5、配置文件必须以“.cfg”或“.zip”作为扩展名,而且必须存放在存储交换机的根目录下。

㈣ 华为S3650交换机配置大全

华为交换机配置命令大全6.2 配置文件管理6.2.1 配置文件内容及格式配置文件为一文本文件,其格式如下:l 以命令格式保存。l 为了节省空间,只保存非缺省的常数。l 命令的组织以命令模式为基本框架,同一命令模式的命令组织在一起,形成一节,节与节之间通常用空行或注释行隔开(以#开始的为注释行)。l 以end为结束。6.2.2 显示当前配置和起始配置S2000B系列以太网交换机上电时,从Flash Memory(闪速存储器)中读取配置文件进行以太网交换机的初始化工作,因此将Flash Memory中的配置文件称为起始配置。如果Flash Memory中没有配置文件,以太网交换机则使用缺省参数进行初始化。与起始配置相对应,S2000B系列运行过程中正在生效的配置称为当前配置。在所有视图下执行display命令可以显示当前配置和起始配置的相关信息。 表6-5 显示S2000B系列配置操作命令显示起始配置display saved-configuration显示当前配置display current-configuration需要注意的是,如果以太网交换机上电之后工作不正常,可以执行display saved-configuration命令查看交换机的启动配置,以定位问题所在。当用户完成一组配置后,需要验证配置是否正确时,可以执行display current-configuration命令来查看当前生效的参数。对于某些参数,虽然用户已经配置,但如果这些参数所在的功能没有生效,则不予显示。对于某些正在生效的配置参数,如果与缺省工作参数相同,也不显示。& 说明:配置文件的显示格式与保存格式相同。例:显示Flash Memory中以太网交换机的配置文件。display saved-configuration#sysname Quidway#hgmp enable#qos 10#user-interface auxspeed 9600#vlan 1#vlan 2047#interface Ethernet0/1plex fullspeed 10undo priority#interface Ethernet0/2undo priority#interface Ethernet0/3undo priority#—- More —-例:显示以太网交换机当前生效的配置参数。display current-configuration#sysname Quidway#hgmp enable#qos 10#user-interface auxspeed 9600#vlan 1#vlan 2047#interface Ethernet0/1plex fullspeed 10undo priority#interface Ethernet0/2undo priority#interface Ethernet0/3undo priority#—- More —-6.2.3 修改和保存当前配置为了使当前配置能够做为S2000B系列以太网交换机下次上电启动时的起始配置,需要使用以下命令保存当前配置到Flash Memory中。请在用户视图下进行下列配置。 表6-6 保存当前配置操作命令保存当前配置save当完成一组配置并且已经达到预定功能时,建议用户将当前配置文件保存到Flash Memory中。例:保存当前配置文件到Flash Memory中。saveThis will save the configuration in the flash memory.The switch configurations will be written to flash.Are you sure?[Y/N]yNow saving current configuration to flash memory.Please wait for a while…Save current configuration to flash memory successfully.6.2.4 擦除Flash Memory中配置文件使用以下命令可以擦除S2000B系列以太网交换机Flash Memory中的配置文件。通常情况下S2000B系列以太网交换机的配置信息是由HGMP Server端进行设置。如果配置文件被擦除后没有取得HGMP Server端的配置信息,则S2000B系列下次上电启动时,将采用缺省的配置参数进行初始化。请在用户视图下进行下列配置。 表6-7 擦除Flash Memory中配置文件操作命令擦除Flash Memory中配置文件reset saved-configuration请慎重执行该命令,最好在技术支持人员指导下使用。一般在以下几种情况使用:l 以太网交换机软件升级之后,Flash Memory中配置文件可能与新版本软件不匹配,这时可以用reset saved-configuration命令擦除旧的配置文件。l 将一台已经使用过的以太网交换机用于新的应用环境,原有的配置文件不能适应新环境的需求,需要对以太网交换机重新配置,这时可以擦除原配置文件后,恢复出厂配置重新配置。l 当Flash Memory中的配置文件遭到破坏,如加载了错误的配置文件。例:擦除Flash Memory中以太网交换机配置文件。reset saved-configurationThis will erase the configuration in the flash memory.The switch configurations will be erased to reconfigure.Are you sure?[Y/N] y(进行确认)Now erasing the configuration in flash memory.Please wait for a while…Erase the configuration in flash memory successfully6.3 设备管理S2000B系列以太网交换机提供设备管理功能,包括:显示系统信息、显示当前版本及重新启动以太网交换机。6.3.1 显示系统信息当以太网交换机出现故障时,可以使用以下命令一次性地、尽可能全地收集当前设备的运行信息,以便迅速定位问题、解决问题。所收集的信息包括:版本信息、以太网端口信息、VLAN相关信息、当前配置信息、起始配置信息和MAC地址表信息等。此外,系统内存的使用情况也会清晰的显示出来(包括已经分配的内存和空闲的内存空间大小)。请在所有视图下进行下列操作。 表6-8 显示系统信息操作命令显示系统信息display diagnostic-information例:显示系统信息(因显示的内容很多,本例只截取了部分内容)。display diagnostic-information—————display version—————Huawei Versatile Routing Platform SoftwareVRP (R) Software, Version 0.88, RELEASE 0006Copyright (c) 2002-2003 HUAWEI TECH CO., LTD.Quidway S2016B with ARM7 Processor16M bytes SDRAM1024K bytes Flash MemoryConfig Register points to FLASHHardware Version is REV.0Bootrom Version is 101[Subslot 0] 17 100BASET Hardware Version is REV.0—————display Hgmp—————Hgmp task is activeSwitch not be registered—————display interface—————Ethernet0/1 is downHardware is Fast Ethernet, Hardware address is 00e0-fc00-0010Full-plex 10M 100_BASE_TXFlow control is disableThe port belongs to these vlans: Vlan 1It is a monitor observe portIt doesn't belong to a port-aggregation0 packets output 0 bytes, 0 multicasts, 0 broadcasts, 0 pauses0 packets input 0 bytes, 0 multicasts, 0 broadcasts, 0 pauses0 CRC errors0 oversize frames6.3.2 显示系统版本不同版本的软件提供不同的功能,可以使用以下命令查看S2000B系列以太网交换机的系统版本信息,从而知道当前软件支持的功能特性。请在所有视图下进行下列操作。 表6-9 显示系统版本操作命令显示系统版本display version例:显示系统版本信息。display versionHuawei Versatile Routing Platform SoftwareVRP (R) Software, Version 0.88, RELEASE 0006Copyright (c) 2002-2003 HUAWEI TECH CO., LTD.Quidway S2016B with ARM7 Processor16M bytes SDRAM1024K bytes Flash MemoryConfig Register points to FLASHHardware Version is REV.0Bootrom Version is 101[Subslot 0] 17 100BASET Hardware Version is REV.06.3.3 复位交换机当S2000B系列以太网交换机出现故障需要重新启动时,可以通过以下命令进行复位。请在用户视图下进行下列配置。 表6-10 复位交换机操作命令复位交换机reboot例:复位交换机。rebootThis will reboot Switch. Continue? [Y/N]yThe system will reset, please waiting…6.4 设置以太网交换机域名可以使用以下命令修改S2000B系列以太网交换机的域名,以便更清楚的标识各设备。请在系统视图下进行下列配置。 表6-11 以太网交换机域名设置操作命令设置以太网交换机域名sysname sysname恢复以太网交换机域名为缺省名undo sysname命令中的参数含义如下:sysname:欲设置的域名,取值范围为1~30个字符。需要注意的是,修改以太网交换机的域名将影响命令行提示符,如以太网交换机的域名为Quidway,则用户视图下的命令行提示符为。缺省情况下,以太网交换机的域名为Quidway。例:设置以太网交换机的域名为QuidwayS2008B。[Quidway] sysname QuidwayS2008B[QuidwayS2008B]

㈤ VRP基础配置

华为路由器的接口默认都是开启的

思科路由器的接口默认都是关闭的

在交换机模拟器及真机上,每次修改配置文件都会有相应配置改变提示,影响配置阅读:

注:

真机AR2220不支持修改语言模式

模拟器上所有的路由器上不支持

模拟器上所有的交换机都支持(要使用默认的putty,CRT显示为乱码)

修改设备主机名:

修改系统时间:

最后一条命令为巡检时使用

删除文件时不能自定义本地路径:

当前配置保存在RAM中,启动配置保存在flash中

重启:reboot

真机上的VRP****软件名:

AR2200的VRP软件名为:sd1:/ar2220-v200r001c01spc500.cc

模拟器上的启动配置文件名:

某些设备默认为none,某些设备默认为password,可以查看dis cu确定

user-interface con 0

authentication-mode none //如果为默认配置,可能并不显示在当前配置文件中

user-interface con 0

authentication-mode password //使用密码登陆

set authentication password simple/cipher huawei //在当前配置文件中存储的明文/密文密码

模拟器上console口下的用户权限默认为15

权限级别:

0、1:只能进入用户试图,没有进入系统试图的权限,需要用super进入

2:可以进入系统试图,但不能执行dis cu或aaa命令

》3:可以进入系统试图,可以执行dis cu或aaa命令

VTY:(Virtual Teletype Terminal)虚拟终端

模拟器上:

对于telnet****用户一般要提供两层密码保护,否则默认客户是有权限限制的:

方法二:

模拟器上:

思科和华为AD****值的区别:


赞 (0)