H3C configuration commands

Source: Internet
Author: User
Tags ssh port number ssh server
1.dis current-configuration view configuration dis current-configuration | Begin VLAN View configuration starting with VLAN
2.dis int Brief View all port information
3.dis IP routing-table View routing table dis IP routing-table | Include 0.0.0 filtering routing information
4.dis Interface Gigabitethernet Brief View interface information dis brief int g stack after view command
5.sys Entering system mode
6.sysname d-b1-test Change Name
7.vlan 500 Create vlan500----> Port gigabitethernet 1/0/49 to gigabitethernet 1/0/52 add port to vlan500---> int g1/0/48 enter port module Type-----> Port link-type Trunk change port mode to trunk (view port configuration information Interface GIGABITETHERNET1/0/48 Port Link-type trunk Port Trunk Permit VLAN 1)----> Port trunk Permit VLAN 2 to 4094 (trunk allows 2 to 4094vlan through)----->undo Port Trunk Permit VLAN 1 does not allow V Lan1 through
8.int vlan-interface 500 Enter vlan500-----> IP Address 10.102.55.254 255.255.255.0 configure vlan500 IP addresses
9.sys----> IP route-static 8.8.8.8 255.255.255.255 10.102.55.253 Configuring static Routes
SYS---> DHCP enable DHCP----> DHCP server ip-pool a-10f (create DHCP address pool)----> Network 10.102.49.0 Mask 255.25 5.255.0 (address pool address)----> Gateway-list 10.102.49.254 (gateway address)-----> Dns-list 10.102.254.60 10.102.254.61 (DNS address)---- > Expired Day 0 Hour 12 (term of lease)
11.dis Interface bridge-aggregation Brief (view link aggregation) {Dis interface brief description View all ports}---->
12.interface Bridge-aggregation 30 Creating aggregation ports----->
13.sys---> local-user xxx---> Password cipher admin@03 configure password---> Authorization-attribute level 3----> Serv Ice-type SSH
14.sys----> User-interface vty 0 4---> Authentication-mode scheme--->
15.sys---> SSH server enable---> Public-key Local create RSA
16. Policy Routing
SYS----> ACL number 2002 create ACL----> Rule Permit source 1.1.1.1 0.255.255.255 (ACL content)-----> Quit exit ACL mode---- ; Traffic classifier CHEC operator or (definition Chec Class)-----> If-match ACL 2002 (if matching acl2002)----> Quit Quit class-----> Traffi C Behavior Chec (define CHEC behavior)----> Redirect Interface gigabitethernet 1/0/25 (behavior content)-----> Quit exit behavior----> QoS polic Y Chec (define policy)-----> Classifier chec behavior chec (policy content)
Or: Policy-based-route AAA permit node 5-----> If-match ACL 3101----> Apply ip-address next-hop 10.120.1.2

17. Stack IRF (1) After stacking the port information is displayed as: Member device number plus device port number. For example: Gigabitethernet 3/0/1 to Gigabitethernet 1/3/0/1 or gigabitethernet 2/3/0/1 (2) uplink and xia Lian switch configuration aggregation port connection, can be backed up
18. Add Description to Vlan: int vlan-interface----> Description xxxxx




















Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.