39

Huawei AR Series Quick Configuration

Embed Size (px)

DESCRIPTION

Huawei AR Series Quick Configuration

Citation preview

  • Contents

    Before You Start 1

    Dual Homing to the

    Internet 2

    Connecting the Branch to the

    Internet and Connecting the Branch to the Headquarters

    Through IPSec

    17

    18

    Data Plan 3

    Quickly Configure the

    Router 4

    Connecting STAs to

    the Internet 9

    Data Plan 10

    Quickly Configure the

    Router 11

    Data Plan

    Quickly Configure

    the Router 19

  • Contents

    Implementing Voice

    Communication of Enterprise Users 24

    FAQ 33

    Reference 36

    Data Plan 25

    Quickly Configure

    the Router 26

  • 1

    1 Before You Start

    This document helps you first log in to and quickly configure Huawei AR series routers.

    For more service configurations, see the AR Documentation.

    1 Install and power on the router. For details, see the AR Hardware Installation and

    Maintenance Guide.

    3

    Paste the following contact methods around your workplace:

    Huawei enterprise service technical support hotline: 400-822-9999

    Telephone number of the agent who is responsible for your network

    construction and service

    Visit Huawei enterprise service technical support website

    (http://support.huawei.com/enterprise) to register an account. With an account, you

    can browse or download more product documents, cases, and bulletins. In addition,

    you will enjoy the subscription and message push service if you want.

    2

    Before configuring data, complete the following tasks:

    This document uses the command outputs of V200R005C20 as an example. If your AR router is not running V200R005C20, the actual

    command outputs may be different.

  • 2 Dual Homing to the Internet

    2

    Configure an enterprise intranet, specify the router as an egress gateway of the

    enterprise, and configure the router to assign IP addresses to users in the

    enterprise.

    Configure the ADSL interface as the uplink primary interface.

    Configure the 3G cellular interface as the uplink backup interface.

    Configure a default route so that intranet traffic can be transmitted to the Internet

    through the ADSL and 3G cellular interfaces.

    The AR1200VW V2R5C20 is used as an example.

  • 2.1 Data Plan Prepare the following data before configuring the router. The data listed in the table will be

    used in the following sections.

    Item Data

    IP address of

    the VLANIF

    interface

    192.168.100.1/24

    Action

    Configure

    the

    downlink

    interface

    Description

    IP address of the interface used to connect

    to intranet devices.

    VLAN ID VLAN 123

    3

    VLAN 1 is the default VLAN on the router.

    VLAN 123 is assigned to intranet interfaces.

    Configure

    DHCP

    Private IP

    addresses

    allocated to

    enterprise

    users

    Configure

    the 3G

    interface

    wcdma APN

    Network

    connection

    mode

    wcdma-only

    Dialing mode

    In this example, the connected 3G network is

    a WCDMA network. The APN name must be

    the same as that of the carrier. In this

    example, the name of the connected APN is

    wcdma.

    Address pool:

    192.168.100.0/24

    The maximum idle time is 100s. On-demand dialing

    -

  • 2.2 Quickly Configure the Router

    4

    Step1 Configure an enterprise intranet.

    Step2 Configure the ADSL interface as the uplink

    primary interface.

    Step5 Save the configuration.

    Step4 Configure a default route.

    Step3 Configure the 3G cellular interface as the uplink backup interface.

  • Configure an Enterprise Intranet

    Configure an enterprise intranet, specify the router as an egress gateway of the enterprise, and configure the router as the DHCP server to assign IP addresses to users in the enterprise.

    Configure a VLANIF interface. 1

    system-view

    [Huawei] vlan 123 //Create a VLAN. [Huawei-vlan123] quit

    [Huawei] interface vlanif 123

    [Huawei-Vlanif123] ip address 192.168.100.1 255.255.255.0 //Assign an IP

    address to the VLANIF interface.

    [Huawei-Vlanif123] quit

    [Huawei] interface ethernet 2/0/0 //Here, Eth2/0/0 is used as the

    intranet downlink interface.

    [Huawei-Ethernet2/0/0] port link-type hybrid //Set the link type of the

    interface to hybrid.

    [Huawei-Ethernet2/0/0] port hybrid pvid vlan 123 //Add the interface to

    VLAN 123.

    [Huawei-Ethernet2/0/0] quit

    Configure the DHCP server. 2

    [Huawei] interface vlanif 123

    [Huawei-Vlanif123] dhcp select global //Configure the interface to use the

    global IP address pool.

    [Huawei-Vlanif123] quit

    [Huawei] ip pool lan //Configure an address pool.

    [Huawei-ip-pool-lan] gateway-list 192.168.100.1 //Configure the egress gateway

    address for the DHCP client.

    [Huawei-ip-pool-lan] network 192.168.100.0 mask 24

    [Huawei-ip-pool-lan] quit

    5

    Return to

    Network

    Diagram

  • Configure the ADSL Interface as the Uplink

    Primary Interface.

    Configure NAT. 1

    [Huawei] acl number 3002 //Configure an ACL.

    [Huawei-acl-adv-3002] rule 5 permit ip source 192.168.100.0 0.0.0.255

    [Huawei-acl-adv-3002] quit

    [Huawei] interface virtual-template 10 //Create a virtual template

    interface.

    [Huawei-Virtual-Template10] ip address ppp-negotiate // Configure the

    interface to dynamically obtain an IP address.

    [Huawei-Virtual-Template10] nat outbound 3002 //Associate an ACL with

    a NAT address pool.

    [Huawei-Virtual-Template10] quit

    Configure an ATM interface. 2

    [Huawei] interface atm 1/0/0 //Configure an ATM interface.

    [Huawei-Atm1/0/0] pvc voip 1/35 //Create a PVC.

    [Huawei-atm-pvc-Atm1/0/0-1/35-voip] map ppp virtual-template 10

    //Configure PPPoA mapping for the PVC.

    [Huawei-atm-pvc-Atm1/0/0-1/35-voip] quit

    [Huawei-Atm1/0/0] standby interface Cellular 0/0/0 //Configure the 3G

    interface as the backup interface and set the priority to 0.

    [Huawei-Atm1/0/0] quit

    Return to

    Network

    Diagram

    6

  • Configure the 3G Cellular Interface as the Uplink Backup

    Interface

    Configure an APN and a connection mode. 1

    [Huawei] dialer-rule //Enter the dialer rule view.

    [Huawei-dialer-rule] dialer-rule 1 ip permit //Configure a dialer ACL for

    dialer access group 1 to allow IPv4 data packets. The ACL determines the

    DCC call initiating conditions.

    [Huawei-dialer-rule] quit

    [Huawei] interface cellular 0/0/0 //Enter the 3G cellular interface view.

    [Huawei-Cellular0/0/0] link-protocol ppp //Set the link layer protocol

    to PPP.

    [Huawei -Cellular0/0/0] ip address ppp-negotiate //Configure the 3G

    channel interface to dynamically obtain an IP address.

    [Huawei-Cellular0/0/0] dialer-group 1 //Configure a dialer group of the

    dialer interface.

    [Huawei -Cellular0/0/0] dialer timer idle 100 //Set the maximum link idle

    time to 100s.

    [Huawei -Cellular0/0/0] dialer number *99# //Set the dialer number to

    *99#.

    [Huawei -Cellular0/0/0] nat outbound 3002 //Associate the ACL with the

    NAT address pool.

    [Huawei -Cellular0/0/0] quit

    Return to

    Network

    Diagram

    2 Configure C-DCC for the dial-up connection.

    In this example, the connected 3G network is a WCDMA network. To connect to the PS region of the WCDMA network, set the dial string to *99#. For details about the CDMA2000 configuration, see the AR Product Documentation.

    The APN name must be the same as that of the carrier. In this example, the name of the connected APN is wcdma.

    system-view

    [Huawei] apn profile 3gprofile //Create an APN profile 3gprofile and

    enter the APN profile view.

    [Huawei-apn-profile-3gprofile] apn wcdma //Set the APN to wcdma.

    [Huawei-apn-profile-3gprofile] quit

    [Huawei] interface cellular 0/0/0

    [Huawei-Cellular0/0/0] mode wcdma wcdma-only//Configure the 3G data card

    to select only the WCDMA network.

    [Huawei-Cellular0/0/0] dialer enable-circular //Enable C-DCC.

    [Huawei-Cellular0/0/0] apn-profile 3gprofile //Bind the APN profile to

    the 3G cellular interface.

    [Huawei-Cellular0/0/0] shutdown

    [Huawei-Cellular0/0/0] undo shutdown

    [Huawei-Cellular0/0/0] quit

    After an APN profile is bound to a cellular interface or cellular channel interface, run

    the shutdown and undo shutdown commands or run the restart command to restart

    the interface to make the configuration take effect.

    In normal cases, the 3G cellular interface supports PPP dial-up. The 3G channel

    interface with number 2 on the K4305 data card supports WWAN (use the ip address negotiate command to dynamically obtain an IP address).

    7

  • Configure a Default Route

    [Huawei] ip route-static 0.0.0.0 0.0.0.0 virtual-template 10 preference 40

    //Set the route priority of the ADSL interface to 40.

    [Huawei] ip route-static 0.0.0.0 0.0.0.0 cellular 0/0/0 preference 80

    //Set the route priority of the 3G interface to 80.

    [Huawei] quit

    Configure a default route and configure the 3G interface as the backup of the ADSL

    interface.

    Return to

    Network

    Diagram

    1

    Save the Configuration

    If not saved, the data configured through command line will be lost after the router restarts. Therefore, you need to save the data to configuration file before restarting the router.

    Save the data to the configuration file Huawei.cfg. 1

    save Huawei.cfg

    Are you sure to save the configuration to Huawei.cfg? (y/n)[n]:y

    It will take several minutes to save configuration file, please

    wait...............

    Configuration file had been saved successfully

    Note: The configuration file will take effect after being activated

    Specify the configuration file for next startup. 2

    startup saved-configuration Huawei.cfg

    When the router restarts, it automatically loads the specified configuration file; therefore,

    no configuration will be lost after restart.

    8

  • 3 Connecting STAs to the Internet

    9

    An enterprise provides the WLAN service for users. The router functions as a

    Fat AP.

    Conf igure a default route on the Fat AP so that the Fat AP can connect to the

    Internet.

    Conf igure the router as the DHCP server to assign IP addresses to the STAs

    connected to the Fat AP.

    Conf igure basic function parameters and service VAPs for the Fat AP so that

    the STAs can connect to the Internet through the service VAPs.

    The AR1200VW V2R5C20 is used as an example.

  • 3.1 Data Plan Prepare the following data before configuring the router. The data listed in the table will be

    used in the following sections.

    Item Data

    Traffic profile

    Action Description

    The WMM, radio, security, and traffic

    profiles in this example are created by

    users.

    Configure

    profiles

    WMM profile ID: 1 Name: wmm-1

    Default WMM, radio, security, and

    traffic profiles exist on the device.

    You can use the default profiles

    directly but do not need to create

    new profiles.

    Radio profile The default radio profile is bound to

    the default WMM profile.

    Security

    profile

    After a service set is created, the

    default traffic and security profiles

    are bound to the service set by

    default.

    CN

    ID: 1 Name: radio-1

    ID: 1 Name: security-1

    ID: 1 Name: traffic-1

    Configure

    a service

    set

    -

    Configure

    a country

    code

    Configure

    IP

    addresses

    -

    AP uplink

    interface

    AP downlink

    interface

    1.1.1.1/24

    VLANIF 100:

    10.10.10.1/24

    -

    -

    -

    -

    10

    ID: 1 Name: Huawei-1

  • 3.2 Quickly Configure the Router

    11

    Step5 Save the configuration

    Step1 Configure a default route on the Fat AP.

    Step2 Configure a VLANIF interface.

    Step 4 Configure basic function parameters and service VAPs for the Fat

    AP.

    Step3 Configure the DHCP server.

  • Configure the FAT AP to Allocate IP Addresses to STAs

    12

    system-view

    [Huawei] ip route-static 0.0.0.0 0 1.1.1.1

    Create a VLANIF interface and enable the DHCP server so that the FAT AP assigns

    IP addresses to STAs.

    2

    [Huawei] dhcp enable //Enable DHCP.

    [Huawei] vlan 100 //Create VLAN 100.

    [Huawei-vlan100] quit

    [Huawei] interface vlanif 100

    [Huawei-Vlanif100] ip address 10.10.10.1 24 //Configure an IP address for

    VLANIF 100.

    [Huawei-Vlanif100] dhcp select interface //Enable the DHCP server

    function on VLANIF 100 and configure the device to assign IP addresses from

    an interface address pool.

    [Huawei-Vlanif100] quit

    Configure a default route on the Fat AP. 1

    Assume that the IP address of the device peer end is 1.1.1.1.

    Return to

    Network

    Diagram

  • Configure Basic Function Parameters and Service VAPs

    for the FAT AP

    Configure the country code for the FAT AP for convenient configuration and management.

    1

    [Huawei] wlan global country-code cn //Set the country code of the FAT AP

    to cn.

    Create a WMM profile wmm-1 and retain the default parameter settings. 2

    [Huawei] wlan

    [Huawei-wlan-view] wmm-profile name wmm-1 id 1

    [Huawei-wlan-wmm-prof-wmm-1] quit

    Create a radio profile named radio-1 and bind the WMM profile wmm-1 to it. 3

    [Huawei-wlan-view] radio-profile name radio-1 id 1

    [Huawei-wlan-radio-prof-radio-1] wmm-profile name wmm-1

    [Huawei-wlan-radio-prof-radio-1] quit

    [Huawei-wlan-view] quit

    13

    Return to

    Network

    Diagram

    Default WMM, radio, security, and traffic profiles exist on the device. You can use the

    default profiles directly but do not need to create new profiles. The default profiles are

    as follows:

    WMM profile wmmf with ID 0 Radio profile radiof with ID 0 Security profile secf with ID 0 Traffic profile traf with ID 0 After a service set is created, the default traffic and security profiles are bound to the

    service set by default.

    The WMM, radio, security, and traffic profiles in this example are created by users.

  • Bind the radio profile named radio-1 to the radio interface. 4

    [Huawei] interface wlan-radio 0/0/0

    [Huawei-Wlan-Radio0/0/0] radio-profile name radio-1

    Warning: Modify the Radio type may cause some parameters of Radio resume

    default value, are you sure to continue?[Y/N]: y

    [Huawei-Wlan-Radio0/0/0] quit

    Configure a WLAN-BSS interface so that radio packets sent from users can be sent to

    the WLAN service processing module after reaching the AP.

    5

    14

    [Huawei] interface wlan-bss 1

    [Huawei-Wlan-Bss1] port hybrid tagged vlan 100

    [Huawei-Wlan-Bss1] quit

    Create a security profile named security-1. 6

    [Huawei] dot1x enable

    [Huawei] wlan

    [Huawei -wlan-view] security-profile name security-1 id 1

    [Huawei -wlan-sec-prof-security-1] security-policy wpa2

    [Huawei -wlan-sec-prof-security-1] wpa2 authentication-method psk pass-

    phrase cipher Huawei@123 encryption-method ccmp

    [Huawei -wlan-sec-prof-security-1] quit

    Configure Basic Function Parameters and Service VAPs

    for the FAT AP

    Return to

    Network

    Diagram

  • 15

    Create a service set, set the SSID to huawei-1, bind the traffic profile, security profile,

    and WLAN-BSS interface to the service set.

    [Huawei-wlan-view] service-set name Huawei-1 id 1

    [Huawei-wlan-service-set-Huawei-1] ssid Huawei-1

    [Huawei-wlan-service-set-Huawei-1] traffic-profile name traffic-1

    [Huawei-wlan-service-set-Huawei-1] security-profile name security-1

    [Huawei-wlan-service-set-Huawei-1] wlan-bss 1

    [Huawei-wlan-service-set-Huawei-1] quit

    [Huawei-wlan-view] quit

    8

    Bind the service set huawei-1 to a radio interface. 9

    [Huawei] interface wlan-radio 0/0/0

    [Huawei-Wlan-Radio0/0/0] service-set name Huawei-1

    [Huawei-Wlan-Radio0/0/0] return

    Configure Basic Function Parameters and Service VAPs

    for the FAT AP

    Return to

    Network

    Diagram

    Create a traffic profile named traffic-1 and retain the default parameter settings. 7

    [Huawei-wlan-view] traffic-profile name traffic-1 id 1

    [Huawei-wlan-traffic-prof-traffic-1] quit

  • 16

    Save the Configuration

    If not saved, the data configured through command line will be lost after the router restarts. Therefore, you need to save the data to configuration file before restarting the router.

    Save the data to the configuration file Huawei.cfg. 1

    save Huawei.cfg

    Are you sure to save the configuration to Huawei.cfg? (y/n)[n]:y

    It will take several minutes to save configuration file, please

    wait...............

    Configuration file had been saved successfully

    Note: The configuration file will take effect after being activated

    Specify the configuration file for next startup. 2

    startup saved-configuration Huawei.cfg

    When the router restarts, it automatically loads the specified configuration file; therefore,

    no configuration will be lost after restart.

  • 4 Connecting the Branch to the Internet and

    Connecting the Branch to the Headquarters

    Through IPSec

    17

    The enterprise headquarters and branch want to establish a secure IPSec

    connection.

    The headquarters gateway RouterB uses a static public address. The branch size

    is small and its gateway RouterA uses a 3G interface to dynamically obtain an IP

    address from a carrier.

    When deploying an IPSec policy, the headquarters must know the branch IP

    address. The branch IP address often changes and is difficult to maintain.

    You can use an IPSec policy template on RouterB so that the headquarters and

    branch can perform IPSec negotiation without knowing the branch IP address.

    The AR1200VW V2R5C20 is used as an example.

  • 4.1 Data Plan Prepare the following data before configuring the router. The data listed in the table will be

    used in the following sections.

    Item Data

    13.1.1.1/24 Headquarters

    public IP address

    192.168.1.1/24 IP address of the

    branch egress

    router

    Action

    Configure

    IP

    addresses

    IP address of the

    headquarters

    egress router

    Description

    192.168.2.1/24

    18

    Configure

    the

    branch

    3G

    interface

    3gprofile APN profile

    Network

    connection mode wcdma

    Auto-dial

    interval: 60s Dialing mode

    The IP address is requested from the

    carrier.

    In this example, the connected 3G

    network is a WCDMA network. The APN

    name must be the same as that of the

    carrier. In this example, the name of the

    APN profile is 3gprofile.

    -

    -

    -

  • 4.2 Quickly Configure the Router

    19

    Step1 Configure IPSec on the branch egress

    gateway.

    Step2 Configure the 3G uplink interface on the

    branch egress gateway.

    Step5 Save the configuration

    Step4 Configure the uplink GE interface on the

    headquarters egress

    gateway.

    Step3 Configure IPSec on the headquarters egress

    gateway.

  • 20

    Configure IPSec on the Branch Egress Gateway

    Configure an ACL to protect data flows. 1

    system-view

    [Huawei] acl number 3000

    [Huawei-acl-adv-3000] rule permit ip source 192.168.1.0 0.0.0.255

    destination 192.168.2.0 0.0.0.255

    [Huawei-acl-adv-3000] quit

    Configure an IPSec proposal. 2

    [Huawei] ipsec proposal rta

    [Huawei-ipsec-proposal-rta] esp authentication-algorithm sha2-256

    [Huawei-ipsec-proposal-rta] esp encryption-algorithm aes-192

    [Huawei-ipsec-proposal-rta] quit

    Configure an IPSec policy. 4

    [Huawei] ipsec policy rta 1 isakmp

    [Huawei-ipsec-policy-isakmp-rta-1] security acl 3000

    [Huawei-ipsec-policy-isakmp-rta-1] ike-peer rta

    [Huawei-ipsec-policy-isakmp-rta-1] proposal rta

    [Huawei-ipsec-policy-isakmp-rta-1] return

    Configure an IKE peer. 3

    [Huawei] ike peer rta v1 //Configure an IKE peer for establishing an

    IPSec connection with RouterB.

    [Huawei-ike-peer-rta] pre-shared-key cipher Huawei //Configure the

    authentication password in the pre-shared key to Huawei, in cipher text.

    [Huawei-ike-peer-rta] remote-address 13.1.1.1 //Configure the remote

    address used for initiating IKE negotiation.

    [Huawei-ike-peer-rta] quit

    Return to

    Network

    Diagram

  • 21

    Configure 3G Uplink Interface on the Branch Egress

    Gateway

    Create a dialer ACL. 1

    system-view

    [Huawei] dialer-rule //Configure a dialer ACL for determining the DCC

    call initiating conditions.

    [Huawei-dialer-rule] dialer-rule 1 ip permit

    [Huawei-dialer-rule] quit

    Create an APN profile. 2

    [Huawei] apn profile 3gprofile //Create an APN profile 3gprofile and

    enter the APN profile view.

    [Huawei-apn-profile-3gprofile] apn 3GNET //Set the APN to 3GNET.

    [Huawei-apn-profile-3gprofile] quit

    Set dialing parameters for the 3G interface. 3

    [Huawei] interface Cellular0/0/1

    [Huawei-Cellular0/0/1] link-protocol ppp //Set the link layer protocol to

    PPP.

    [Huawei-Cellular0/0/1] ip address ppp-negotiate //Enable the interface to

    obtain an IP address through PPP negotiation.

    [Huawei-Cellular0/0/1] dialer enable-circular //Enable C-DCC.

    [Huawei-Cellular0/0/1] dialer-group 1 //Add the interface to a dialer

    group. The number must be the same as that in the dialer group.

    [Huawei-Cellular0/0/1] apn-profile 3gprofile //Bind the APN profile to the

    3G cellular interface.

    [Huawei-Cellular0/0/1] dialer timer autodial 60 //Set the auto-dial

    interval to 60s.

    [Huawei-Cellular0/0/1] dialer number *99# autodial //Enable the auto-dial

    function.

    [Huawei-Cellular0/0/1] mode wcdma wcdma-precedence //Configure a WCDMA

    network connection mode for a 3G modem.

    [Huawei-Cellular0/0/1] ipsec policy rta //Bind the IPSec policy to the

    interface.

    [Huawei-Cellular0/0/1] quit

    [Huawei] ip route-static 0.0.0.0 0.0.0.0 Cellular0/0/1

    Configure a static route pointing to the 3G interface. 4

    Return to

    Network

    Diagram

    The APN is provided by the carrier.

  • 22

    Configure IPSec on the Headquarters Egress Gateway

    Configure an IPSec proposal. 1

    [Huawei] ipsec proposal rta

    [Huawei-ipsec-proposal-rta] esp authentication-algorithm sha2-256

    [Huawei-ipsec-proposal-rta] esp encryption-algorithm aes-192

    [Huawei-ipsec-proposal-rta] quit

    Configure an IPSec policy template. 3

    [Huawei] ipsec policy-template temp 1

    [Huawei-ipsec-policy-templet-temp-1] ike-peer rta

    [Huawei-ipsec-policy-templet-temp-1] proposal rta

    [Huawei-ipsec-policy-templet-temp-1] quit

    Configure an IKE peer. 2

    [Huawei] ike peer rta v1 //Configure an IKE peer. You do not need to

    configure the remote address.

    [Huawei-ike-peer-rta] pre-shared-key cipher Huawei //Set the authentication password in the pre-shared key to Huawei.

    [Huawei-ike-peer-rta] quit

    Return to

    Network

    Diagram

    [Huawei] ipsec policy rta 1 isakmp template temp

    Configure an IPSec policy and reference the IPSec policy template. 4

  • 23

    Configure Uplink GE Interface on the Headquarters

    Egress Gateway

    Configure an interface connected to the Internet. 1

    system-view

    [Huawei] interface GigabitEthernet0/0/1 //Configure a dialer ACL for

    determining the DCC call initiating conditions.

    [Huawei-GigabitEthernet0/0/1] ip address 13.1.1.1 255.255.255.0

    [Huawei-GigabitEthernet0/0/1] ipsec policy rta //Bind the IPSec policy to the

    interface.

    [Huawei-GigabitEthernet0/0/1] quit

    [Huawei] ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/0/1

    [Huawei] quit

    Configure a static route pointing to the GE interface. 2

    Return to

    Network

    Diagram

    Save the Configuration

    If not saved, the data configured through command line will be lost after the router restarts.

    Therefore, you need to save the data to configuration file before restarting the router.

    Save the data to the configuration file Huawei.cfg. 1

    save Huawei.cfg

    Are you sure to save the configuration to Huawei.cfg? (y/n)[n]:y

    It will take several minutes to save configuration file, please

    wait...............

    Configuration file had been saved successfully

    Note: The configuration file will take effect after being activated

    Specify the configuration file for next startup. 2

    startup saved-configuration Huawei.cfg

    When the router restarts, it automatically loads the specified configuration file; therefore,

    no configuration will be lost after restart.

  • 5 Implementing Voice Communication of Enterprise

    Users

    24

    The enterprise uses the PBX to implement voice services for intra-office users

    and uses AT0 trunks to implement voice services between intra-office and outer-

    office users.

    The PBX uses the external number allocated to an enterprise by the carrier as the

    automatic switchboard number. An outer-office user dials the automatic

    switchboard number and then dials an extension number as prompted to call an

    intra-office user. Intra-office users make calls to each other by dialing short

    numbers.

    The AR1200VW V2R5C20 is used as an example.

  • 5.1 Data Plan Prepare the following data before configuring the router. The data listed in the table will be used in the following sections.

    25

    SIP User

    71007160

    POTS User

    70007004

    Description

    PBX users

    User number plan:

    Default Access Number

    28980808

    Slot ID/Subcard ID/Port

    Number

    3/0/4

    Route ID

    0

    AT0 trunk plan:

    Prefix plan:

    Type

    Intra-office

    Prefix

    7

    Route

    -

    9 Inter-office 9

    Inter-office Trunk

    28980808

    Prefix

    9

    Called Number Change

    0

    Post-routing number change plan:

    90

    900 Inter-office

    Inter-office 9

    9

  • 5.2 Quickly Configure the Router

    26

    Step9 Save the configuration.

    Step1 Configure initial information.

    Step2 Configure the SIP server.

    Step3 Configure the prefix.

    Step6 Configure a trunk group.

    Step4 Configure users.

    Step7 Configure a call route.

  • 27

    Configure Initial Information

    Set the service mode to PBX. 1

    system-view

    [Huawei] voice

    [Huawei-voice] service-mode pbx

    [Huawei-voice] return

    save

    The current configuration will be written to the device.

    Are you sure to continue? (y/n)[n]:y

    It will take several minutes to save configuration file, please

    wait.......... Configuration file had been saved

    successfully

    Note: The configuration file will take effect after being activated

    reboot

    Info: The system is comparing the configuration, please wait.

    System will reboot! Continue ? [y/n]:y

    Info: system is rebooting, please wait...

    Set the IP address of interface GE0/0/0 to 192.168.1.2 and add 192.168.1.2 to the

    media IP address pool and signaling IP address pool of the interface.

    2

    system-view

    [Huawei] interface gigabitethernet 0/0/0

    [Huawei-GigabitEthernet0/0/0] ip address 192.168.1.2 24

    [Huawei-GigabitEthernet0/0/0] quit

    [Huawei] voice

    [Huawei-voice] voip-address media interface gigabitethernet 0/0/0

    192.168.1.2

    [Huawei-voice] voip-address signalling interface gigabitethernet

    0/0/0 192.168.1.2

    Return to

    Network

    Diagram

    Prerequisites: The IVR configuration has been completed. The value of vu-service-name of the automatic IVR group must be the same as the service name of the IVR.

  • Configure the SIP Server

    Configure the SIP server. 1

    [Huawei-voice] sipserver

    [Huawei-voice-sipserver] signalling-address ip 192.168.1.2 port 5060

    [Huawei-voice-sipserver] media-ip 192.168.1.2

    [Huawei-voice-sipserver] register-uri abcd.com

    [Huawei-voice-sipserver] home-domain abcd.com

    [Huawei-voice-sipserver] reset

    [Huawei-voice-sipserver] quit

    Set the default country code to 86 and default area code to 571, and enable country

    code change and area code change. 3

    [Huawei-voice] pbx default-country-code 86 default-area-code 571

    [Huawei-voice] enterprise hw

    [Huawei-voice-enterprise-hw] dn-set local

    [Huawei-voice-enterprise-hw] quit

    Configure the enterprise and DN set for numbers. 4

    Configure Initial Information Return to

    Network

    Diagram

    28

  • Configure the Prefix

    Set the enterprise and DN set of prefixes to hw and local, and configure intra-office

    call prefix 7 whose call attribute is 0 and local call prefix 9 whose call attribute is 1.

    1

    [Huawei-voice] callprefix 7

    [Huawei-voice-callprefix-7] enterprise hw dn-set local

    [Huawei-voice-callprefix-7] prefix 7

    [Huawei-voice-callprefix-7] call-type category basic-service attribute 0

    [Huawei-voice-callprefix-7] digit-length 3 32

    [Huawei-voice-callprefix-7] quit

    [Huawei-voice] callprefix 9

    [Huawei-voice-callprefix-9] enterprise hw dn-set local

    [Huawei-voice-callprefix-9] prefix 9

    [Huawei-voice-callprefix-9] call-type category basic-service attribute 1

    [Huawei-voice-callprefix-9] digit-length 1 32

    [Huawei-voice-callprefix-9] quit

    Return to

    Network

    Diagram

    29

    Set the automatic switchboard name to ivr and automatic switchboard number to

    28980808.

    2

    [Huawei-voice] callprefix ivr

    [Huawei-voice-callprefix-ivr] prefix 28980808

    [Huawei-voice-callprefix-ivr] enterprise hw dn-set local

    [Huawei-voice-callprefix-ivr] call-type category vu-service vu-service-name

    vudefault

    [Huawei-voice-callprefix-ivr] digit-length 8 32

    [Huawei-voice-callprefix-ivr] save

    [Huawei-voice-callprefix-ivr] quit

  • Configure Users

    Configure a SIP user whose user number is 7100, authentication password is

    a123456, and incoming and outgoing call rights are all.

    1

    [Huawei-voice] pbxuser 7100 sipue enterprise hw

    [Huawei-voice-pbxuser-7100] dn-set local

    [Huawei-voice-pbxuser-7100] sipue 7100

    [Huawei-voice-pbxuser-7100] telno 7100

    [Huawei-voice-pbxuser-7100] call-right in all

    [Huawei-voice-pbxuser-7100] call-right out all

    [Huawei-voice-pbxuser-7100] eid-para password cipher

    Please input user password(6-64 chars): *******

    [Huawei-voice-pbxuser-7100] quit

    Configure POTS users whose user numbers are 7000 and 7001 and incoming and

    outgoing call rights are all. 2

    [Huawei-voice] pbxuser 7000 pots enterprise hw

    [Huawei-voice-pbxuser-7000] dn-set local

    [Huawei-voice-pbxuser-7000] port 3/0/0

    [Huawei-voice-pbxuser-7000] telno 7000

    [Huawei-voice-pbxuser-7000] call-right in all

    [Huawei-voice-pbxuser-7000] call-right out all

    [Huawei-voice-pbxuser-7000] quit

    [Huawei-voice] pbxuser 7001 pots enterprise hw

    [Huawei-voice-pbxuser-7001] dn-set local

    [Huawei-voice-pbxuser-7001] port 3/0/1

    [Huawei-voice-pbxuser-7001] telno 7001

    [Huawei-voice-pbxuser-7001] call-right in all

    [Huawei-voice-pbxuser-7001] call-right out all

    [Huawei-voice-pbxuser-7001] quit

    Return to

    Network

    Diagram

    30

  • Configure a Trunk Group and a Call Route

    Configure an AT0 trunk group. 1

    [Huawei-voice] trunk-group at0 fxo

    [Huawei-voice-trunkgroup-at0] enterprise hw dn-set local

    [Huawei-voice-trunkgroup-at0] trunk-at0 3/0/4 default-called-telno 28980808

    [Huawei-voice-trunkgroup-at0] callroute 9

    [Huawei-voice-trunkgroup-at0] quit

    Configure a call route and post-routing number change. 2

    [Huawei-voice] callprefix 9

    [Huawei-voice-callprefix-9] callroute 9

    [Huawei-voice-callprefix-9] quit

    [Huawei-voice] trunk-group at0

    [Huawei-voice-trunkgroup-at0] callroute 9

    [Huawei-voice-trunkgroup-at0] quit

    [Huawei-voice] afterroute-change 9

    [Huawei-voice-afterroute-change-9] callprefix 9

    [Huawei-voice-afterroute-change-9] trunk-group at0

    [Huawei-voice-afterroute-change-9] caller no-change

    [Huawei-voice-afterroute-change-9] called del 1 1

    [Huawei-voice-afterroute-change-9] return

    Return to

    Network

    Diagram

    31

  • 32

    Save the Configuration

    If not saved, the data configured through command line will be lost after the router restarts. Therefore, you need to save the data to configuration file before restarting the router.

    Save the data to the configuration file Huawei.cfg. 1

    save Huawei.cfg

    Are you sure to save the configuration to Huawei.cfg? (y/n)[n]:y

    It will take several minutes to save configuration file, please

    wait...............

    Configuration file had been saved successfully

    Note: The configuration file will take effect after being activated

    Specify the configuration file for next startup. 2

    startup saved-configuration Huawei.cfg

    When the router restarts, it automatically loads the specified configuration file; therefore,

    no configuration will be lost after restart.

  • 6 FAQ 1 What Are Function Differences Among AR1200 Models?

    33

    2 How Can I Reset the Console Port Password?

    Log in to the router through Telnet to change the console port password. (The password is not displayed in interactive mode.)

    system-view

    [Huawei] user-interface console 0

    [Huawei-ui-console0] authentication-mode password

    [Huawei-ui-console0] set authentication password cipher

    Warning: The "password" authentication mode is not secure, and it is

    strongly recommended to use "aaa" authentication mode.

    Enter Password():

    Confirm password:

    [Huawei-ui-console0] quit

    If the level of your Telnet account is identical or higher, you can log in to the router through

    Telnet and change the console port password. The user level for the console user

    interface is 15 by default.

    Device Model Voice Wi-Fi PoE BGP MPLS

    AR1220 N N N Y Y

    AR1220L N N N Y Y

    AR1220F N N N Y Y

    AR1220W N Y Y Y Y

    AR1220V Y N Y Y Y

    AR1220VW Y Y Y Y Y

    Y: supported N: not supported

  • 34

    3 How Can I Reset the Telnet Password?

    Log in to the router through the console port to change the Telnet password. Here, AA authentication is used as an example and the password is Huawei@123.

    system-view

    [Huawei] aaa

    [Huawei-aaa] local-user user11 password irreversible-cipher Huawei@123

    If you have forgotten your user name or password, see How Can I Log In to the Device Through the BootROM When I Forget the Password for Console Port Login in AR FAQ.

    4 How Can I Specify the Unallocatable IP Addresses in Address

    Pool?

    Configuration method: Run the command in the interface or interface address pool view: dhcp server excluded-ip-address start-ip-address [ end-ip-address ]

    Run the command in the global address pool view: excluded-ip-address start-ip-address [ end-ip-address ]

    If some IP addresses in an address pool need to be reserved for certain services, such as DNS, these IP addresses must be excluded from the allocatable IP addresses. If these IP addresses are allocated by the DHCP server, IP address conflicts may occur.

    5 How Can I Configure the Lease?

    Configuration method: Run the command in the interface or interface address pool view: dhcp server lease { day day [ hour hour [ minute minute ] ] | unlimited }

    Run the command in the global address pool view: lease { day day [ hour hour [ minute minute ] ] | unlimited }

    By default, the lease is one day. In the scenarios where users frequently move, such as cafes, airports, and hotels, short leases are recommended. In the scenarios where user locations are relatively fixed, such

    as offices, long leases are recommended.

  • 35

    6 How Can I Specify the IP Addresses Fixedly Allocated to Clients?

    Some important hosts require fixed IP addresses to ensure stability, so you can specify the IP addresses fixed allocated to them. The IP addresses to be specified must be in the IP address pool that can be dynamically

    allocated. Configuration method:

    Run the command in the interface or interface address pool view: dhcp server static-bind ip-address ip-address mac-address mac-address Run the command in the global address pool view: static-bind ip-address ip-address

    mac-address mac-address [ option-template template-name ]

  • 7 Reference For more information about switch configuration, use the following methods.

    Method Link

    Browse or download

    the router

    configuration guide. http://support.huawei.com/ehedex/hdx.do?docid=DOC1000043782&lang=en

    http://support.huawei.com/enterprise/docinforeader.action?contentId=DOC0100585934&i

    dPath=7919710|9856750|7923148|9858988|6078839

    http://support.huawei.com/ecommunity/bbs/list_4361.html

    http://support.huawei.com/ecommunity/ask/list_1471,5271.html?status=1

    Browse or download

    the router typical

    cases.

    Post your questions

    in the technical

    forum.

    Ask questions in the

    enterprise support

    community.

    36