The most comprehensive collection of router switch configuration commands in history, proficient in the following router switch configuration knowledge points, you only need to spend a few minutes to understand the router switch configuration. Vswitch configuration commands.
vro Switch configuration command: computer command
PCAlogin: root; Use root User
Password: linux; password: linux
# Shutdown-hnow; shutdown
# Init0; Shutdown
# Logout; user logout
# Login; User Logon
# Ifconfig; display IP addresses
# Ifconfigeth0netmask; set the IP address
# Ifconfigeht0netmaskdown; Disable IP addresses
# Routeadd0.0.0.0gw; set the Gateway
# Routedel0.0.0.0gw; delete a gateway
# Routeadddefaultgw; set the Gateway
# Routedeldefaultgw; delete a gateway
# Route; display Gateway
# Ping; send an ECHO packet
# Telnet; remote Logon
router switch configuration command: Switch command
[Quidway] discur; displays the current configuration
[Quidway] displaycurrent-configuration; displays the current configuration
[Quidway] displayinterfaces; display interface information
[Quidway] displayvlanall; displays route information
[Quidway] displayversion; displays version information
[Quidway] superpassword; change the privileged user password
[Quidway] sysname; Switch name
[Quidway] interfaceethernet0/1; go to the interface View
[Quidway] interfacevlanx; go to the interface view.
[Quidway-Vlan-interfacex] ipaddress10.65.1.1255.255.0.0; configure the vlan ip Address
[Quidway] iproute-static0.0.0.00.0.0.010.65.1.2; Static Routing = Gateway
[Quidway] rip; layer-3 Switch support
[Quidway] local-userftp
[Quidway] user-interfacevty04; enter virtual terminal
[S3026-ui-vty0-4] authentication-modepassword; Set Password Mode
[S3026-ui-vty0-4] setauthentication-modepasswordsimple222; Set Password
[S3026-ui-vty0-4] userprivilegelevel3; user level
[Quidway] interfaceethernet0/1; enter port Mode
[Quidway] inte0/1; enter port Mode
[Quidway-Ethernet0/1] duplex {half | full | auto}; Configure port working status
[Quidway-Ethernet0/1] speed {10 | 100 | auto}; Configure port speed
[Quidway-Ethernet0/1] flow-control; Configure port flow control
[Quidway-Ethernet0/1] mdi {physical SS | auto | normal}; Configure port flat connections
[Quidway-Ethernet0/1] portlink-type {trunk | access | hybrid}; set port working mode
[Quidway-Ethernet0/1] portaccessvlan3; add current port to VLAN
[Quidway-Ethernet0/2] porttrunkpermitvlan {ID | All}; VLAN allowed by trunk
[Quidway-Ethernet0/3] porttrunkpvidvlan3; set the PVID of the trunk Port
[Quidway-Ethernet0/1] undoshutdown; activation Port
[Quidway-Ethernet0/1] shutdown; close Port
[Quidway-Ethernet0/1] quit; Return
[Quidway] vlan3; Create VLAN
[Quidway-vlan3] portethernet0/1; add Port in VLAN
[Quidway-vlan3] porte0/1; abbreviations
[Quidway-vlan3] portethernet0/1toethernet0/4; add Port in VLAN
[Quidway-vlan3] porte0/1toe0/4; abbreviations
[Quidway] monitor-port; specifies the Image port
[Quidway] portmirror; specifies the port to be mirrored
[Quidway] portmirrorint_listobserving-portint_typeint_num; specifies the image and the image
[Quidway] descriptionstring; specifies the VLAN description character.
[Quidway] description; Delete VLAN description characters
[Quidway] displayvlan [vlan_id]; view VLAN settings
[Quidway] stp {enable | disable}; sets the spanning tree, which is disabled by default.
[Quidway] stppriority4096; sets the switch priority.
[Quidway] stproot {primary | secondary}; backup set to root or root
[Quidway-Ethernet0/1] stpcost200; set the cost of the switch port
[Quidway] link-aggregatione0/1toe0/4ingress | both; port Aggregation
[Quidway] undolink-aggregatione0/1 | all; Start port is channel number
[SwitchA-vlanx] isolate-user-vlanenable;
[SwitchA] isolate-user-vlansecondary;
[Quidway-Ethernet0/2] porthybridpvidvlan; Set pvid for vlan
[Quidway-Ethernet0/2] porthybridpvid; remove the pvid of a vlan
[Quidway-Ethernet0/2] porthybridvlanvlan_id_listuntagged;
If the vlanid of the package is the same as the PVId, the vlan information is removed. The default value is PVID = 1.
Therefore, set the pvid to the vlanid and the vlan that can be interconnected as untagged.
vro Switch configuration command: vro command
[Quidway] displayversion; displays version information
[Quidway] displaycurrent-configuration; displays the current configuration
[Quidway] displayinterfaces; display interface information
[Quidway] displayiproute; displays route information
[Quidway] sysnameaabbcc; change the Host Name
[Quidway] superpasswrod123456; set the password
[Quidway] interfaceserial0;
[Quidway-serial0] ipaddress; Configure port IP Address
[Quidway-serial0] undoshutdown; activation Port
[Quidway] link-protocolhdlc; Bind hdlc Protocol
[Quidway] user-interfacevty04
[Quidway-ui-vty0-4] authentication-modepassword
[Quidway-ui-vty0-4] setauthentication-modepasswordsimple222
[Quidway-ui-vty0-4] userprivilegelevel3
[Quidway-ui-vty0-4] quit
[Quidway] debugginghdlcallserial0; display all information
[Quidway] debugginghdlceventserial0; debug event information
[Quidway] debugginghdlcpacketserial0; displays package information
vro Switch configuration command: static route:
[Quidway] iproute-static {interfacenumber | nexthop} [value] [reject | blackhole]
Example: [Quidway] iproute-static129.1.0.01610.0.0.2
[Quidway] iproute-static129.1.0.0255.255.0.010.0.0.2
[Quidway] iproute-static129.1.0.016Serial2
[Quidway] iproute-static0.0.0.00.0.0.010.0.0.2
vro Switch configuration command: Dynamic Routing:
[Quidway] rip; Set Dynamic Routing
[Quidway] ripwork; set work permits
[Quidway] ripinput; set the entry to allow
[Quidway] ripoutput; Set Exit Permit
[Quidway-rip] network1.0.0.0; set the switching Route Network
[Quidway-rip] networkall; set to switch with all networks
[Quidway-rip] peerip-address;
[Quidway-rip] summary; route Aggregation
[Quidway] ripversion1; The setting works on version 1.
[Quidway] ripversion2multicast; set version 2, multicast Mode
[Quidway-Ethernet0] ripsplit-horizon; horizontal separation
[Quidway] routeridA. B .C. D; configure the router ID
[Quidway] ospfenable; Start OSPF protocol
[Quidway-ospf] import-routedirect; introduce direct link Routing
[Quidway-Serial0] ospfenablearea; configure OSPF Region
router switch configuration command: The standard access LIST command format is as follows:
Acl [match-orderconfig | auto]; by default, the former matches sequentially.
Rule [normal | special] {permit | deny} [sourcesource-addrsource-wildcard | any]
Example: [Quidway] acl10
[Quidway-acl-10] rulenormalpermitsource10.0.0.00.0.0.255
[Quidway-acl-10] rulenormaldenysourceany
vro Switch configuration command: extended access control list configuration command
Configure the extended access list of TCP/UDP protocol:
Rule {normal | special} {permit | deny} {tcp | udp} source {| any} destination | any}
[Operate]
Configure the extended access list of the ICMP protocol:
Rule {normal | special} {permit | deny} icmpsource {| any] destination {| any]
[Icmp-code] [logging]
vro Switch configuration command: extended access control list operator meaning
Equalportnumber; equal
Greater-thanportnumber; greater
Less-thanportnumber; less
Not-supported portnumber; not supported
Rangeportnumber1portnumber2; Interval
router switch configuration command: Extended Access Control List Example
[Quidway] acl101
[Quidway-acl-101] ruledenysouceanydestinationany
[Quidway-acl-101] rulepermiticmpsourceanydestinationanyicmp-typeecho
[Quidway-acl-101] rulepermiticmpsourceanydestinationanyicmp-typeecho-reply
[Quidway] acl102
[Quidway-acl-102] rulepermitipsource10.0.0.10.0.0.0destination202.0.0.10.0.0.0
[Quidway-acl-102] ruledenyipsourceanydestinationany
[Quidway] acl103
[Quidway-acl-103] rulepermittcpsourceanydestination10.0.0.10.0.0destination-portequalftp
[Quidway-acl-103] rulepermittcpsourceanydestination10.0.0.20.0.0.0destination-portequalwww
[Quidway] firewallenable
[Quidway] firewalldefaultpermit | deny
[Quidway] inte0
[Quidway-Ethernet0] firewallpacket-filter101inbound | outbound
vro Switch configuration command: address translation configuration example
[Quidway] firewallenable
[Quidway] firewalldefaultpermit
[Quidway] acl101; the specified internal host can enter e0
[Quidway-acl-101] ruledenyipsourceanydestinationany
[Quidway-acl-101] rulepermitipsource129.38.1.10destinationany
[Quidway-acl-101] rulepermitipsource129.38.1.20destinationany
[Quidway-acl-101] rulepermitipsource129.38.1.30destinationany
[Quidway-acl-101] rulepermitipsource129.38.1.40destinationany
[Quidway-acl-101] quit
[Quidway] inte0
[Quidway-Ethernet0] firewallpacket-filter101inbound
[Quidway] acl102; data packets from specific external hosts and over port 1024 are allowed to enter S0
[Quidway-acl-102] ruledenyipsourceanydestinationany
[Quidway-acl-102] rulepermittcpsource202.39.2.30destination202.38.160.10
[Quidway-acl-102] rulepermittcpsourceanydestination202.38.160.10destination-portgreat-
1024
[Quidway-acl-102] quit
[Quidway] ints0