Huawei Router Basic Configuration Command

download Huawei Router Basic Configuration Command

of 6

description

Leading Huawei networking products distributor-huanetwork.comHuawei Router Basic Configuration Command

Transcript of Huawei Router Basic Configuration Command

  • 5/27/2018 Huawei Router Basic Configuration Command

    Huawei Router Basic Configuration Command

    Huawei RouterBasic Configuration Command

    [Liufei]display version; display version information

    [Liufei]display current-configuration; display current configuration

    [Liufei]display interfaces; display interface information;

    [Liufei]display IP route; sow tat te routing information;

    [Liufei]sysname lf!"#; cange te ost name

    [Liufei]super passwrod !"#$%&; setup password;

    [Liufei]interface serial'; into te interface;

    [Liufei-serial']ip address (ip) (mas*+mas*,len) IP address configured ports;

    [Liufei-serial']undo sutdown; activation port;

    [Liufei]lin*-protocol HLC; .inds HLC protocol;

    [Liufei]user-interface vty '$

    [Liufei-ui-vty'-$]autentication-mode password

    [Liufei-ui-vty'-$]set autentication-mode password simple """

    [Liufei-ui-vty'-$]user privilege level #

    [Liufei-ui-vty'-$]/uit

    [Liufei]de.ugging HLC all serial'; to display all of te information;

    [Liufei]de.ugging HLC event serial'; de.ug event information

    [Liufei]de.ugging HLC pac*et serial'; sow te pac*age information

    1

    http://www.huanetwork.com/huawei-routers-price_c1http://www.huanetwork.com/huawei-routers-price_c1
  • 5/27/2018 Huawei Router Basic Configuration Command

    Static routing:

    [Liufei]ip route-static (ip)(mas*)0interface num.er+ne1top2[value][re3ect+.lac*ole]

    4or e1ample5

    [Liufei]ip route-static !"67!7'7' !& !'7'7'7"

    [Liufei]ip route-static !"67!7'7' "%%7"%%7'7' !'7'7'7"

    [Liufei]ip route-static !"67!7'7' !& 8erial "

    [Liufei]ip route-static '7'7'7' '7'7'7' !'7'7'7"

    Dynamic routing:

    [Liufei]rip; set dynamic routing

    [Liufei]rip wor* is allowed to wor*;

    [Liufei]rip input set te entrance permit;

    [Liufei]rip output; set te e1port permit

    [Liufei-rip]networ* !7'7'7'; set te e1cange routing networ*

    [Liufei-rip]networ* all; set te e1cange wit all networ*

    [Liufei-rip]peer ip-address;

    [Liufei-rip]summary routing aggregation;

    [Liufei]rip version !; installed in version !

    [Liufei]rip version " multicast; wit version "9 multicast

    [Liufei-:ternet']rip split-orion; oriontal partitioning

    [Liufei]router I

  • 5/27/2018 Huawei Router Basic Configuration Command

    [Liufei-ospf]import-route direct; introducing te direct route

    [Liufei-8erial']ospf ena.le area (area,id) =8P4 region;

    Standard access list command format is as follows:

    CP?@P protocol access list5

    Rule 0normal+special20permit+deny20tcp+udp2source 0(ip wild)+any2destination (ip wild)+

    any2

    [operate]

    :1tended configuration of ICAP protocol access list5

    Rule 0normal+special20permit+deny2icmp source 0(ip wild)+any]destination 0(ip wild)+any]

    [icmp-code] [logging]

    Extended access control list the meaning of the operators

    :/ual Portum.er; e/ual

    3

  • 5/27/2018 Huawei Router Basic Configuration Command

    reater-tan Portum.er; greater tan

    Less-tan is Portum.er; less tan

    ot-e/ual Portum.er; une/ual

    Range portnum.er! portnum.er"; interval

    :1tended access control list e1ample

    [Liufei]acl !'!

    [Liufei-acl-!'!]rule deny souce any destination any

    [Liufei-acl-!'!]rule permit ICAP source any destination any icmp-type eco

    [Liufei-acl-!'!]rule permit ICAP source any destination any icmp-type eco-reply

    [Liufei]acl !'"

    [Liufei-acl-!'"]rule permit IP source !'7'7'7! '7'7'7' destination "'"7'7'7! '7'7'7'

    [Liufei-acl-!'"]rule deny IP source any destination any

    [Liufei]acl !'#

    [Liufei-acl-!'#]rule permit >CP source any destination !'7'7'7! '7'7'7' destination-port

    e/ual4>P

    [Liufei-acl-!'#]rule permit >CP source any destination !'7'7'7" '7'7'7' destination-port

    e/ualwww

    [Liufei]firewall ena.le

    [Liufei]firewall default permit+deny

    [Liufei]int :'

    [Liufei-:ternet']firewall pac*et-filter !'! in.ound+out.ound

  • 5/27/2018 Huawei Router Basic Configuration Command

    [Liufei]firewall default permit

    [Liufei]acl !'!; te internal ost can enter te :'

    [Liufei-acl-!'!]rule deny IP source any destination any

    [Liufei-acl-!'!]rule permit IP source !"67#D7!7! ' destination any

    [Liufei-acl-!'!]rule permit IP source !"67#D7!7" ' destination any

    [Liufei-acl-!'!]rule permit IP source !"67#D7!7# ' destination any

    [Liufei-acl-!'!]rule permit IP source !"67#D7!7$ ' destination any

    [Liufei-acl-!'!]/uit

    [Liufei]int :'

    [Liufei-:ternet']firewall pac*et-filter !'! in.ound

    [Liufei]acl !'"; te e1ternal ost specific and more tan !'"$ port pac*et is allowed to

    enter te 8'

    [Liufei-acl-!'"]rule deny IP source any destination any

    [Liufei-acl-!'"]rule permit >CP source "'"7#67"7# ' destination "'"7#D7!&'7! '

    [Liufei-acl-!'"]rule permit >CP source any destination "'"7#D7!&'7! ' destination-port

    great-tan

    !'"$

    [Liufei-acl-!'"]/uit

    [Liufei]int 8'

    [Liufei-8erial']firewall pac*et-filter !'" in.ound; "'"7#D7!&'7! is te egress router IP7

    [Liufei-8erial']nat out.ound !'! interface; :asy IP9

  • 5/27/2018 Huawei Router Basic Configuration Command

    More related:

    H=E >= C=:C> H@:R @8: FP

    H=E >= C=4I@R: H@