Você está na página 1de 39

Contents

Before You Start

Dual Homing to the


Internet

Data Plan

Quickly Configure the


Router

Connecting STAs to
the Internet

Data Plan

10

Quickly Configure the


Router

11

Connecting the Branch to the


Internet and Connecting the
Branch to the Headquarters
Through IPSec

17

Data Plan
Quickly Configure
the Router

18

19

Contents

Implementing Voice
Communication of
Enterprise Users

24

Data Plan

25

Quickly Configure
the Router

26

FAQ

33

Reference

36

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.

Before configuring data, complete the following tasks:

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

2 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

3 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.

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.

Dual Homing to the Internet


The AR1200VW V2R5C20 is used as an example.

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.

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.

Action

Configure
the
downlink
interface

Configure
DHCP

Configure
the 3G
interface

Item

Data

Description

IP address of
the VLANIF
interface

192.168.100.1/24

IP address of the interface used to connect


to intranet devices.

VLAN ID

VLAN 123

VLAN 1 is the default VLAN on the router.


VLAN 123 is assigned to intranet interfaces.

Private IP
addresses
allocated to
enterprise
users

Address pool:
192.168.100.0/24

APN

wcdma

Network
connection
mode

wcdma-only

Dialing mode

On-demand dialing

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.

The maximum idle time is 100s.

2.2

Quickly Configure the Router

Step1 Configure an
enterprise intranet.

Step2 Configure the ADSL


interface as the uplink
primary interface.

Step5 Save the


configuration.

Step3 Configure the 3G


cellular interface as the
uplink backup interface.

Step4 Configure a default


route.

Return to
Network
Diagram

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.

1 Configure a VLANIF interface.


<Huawei> 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

2 Configure the DHCP server.


[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

Configure the ADSL Interface as the Uplink


Primary Interface.

Return to
Network
Diagram

1 Configure NAT.
[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

2 Configure an ATM interface.


[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

Configure the 3G Cellular Interface as the Uplink Backup


Interface

Return to
Network
Diagram

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.

1 Configure an APN and a connection mode.


<Huawei> 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).

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


[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

Configure a Default Route

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

[Huawei] ip route-static
//Set the route priority
[Huawei] ip route-static
//Set the route priority
[Huawei] quit

0.0.0.0 0.0.0.0 virtual-template 10 preference 40


of the ADSL interface to 40.
0.0.0.0 0.0.0.0 cellular 0/0/0 preference 80
of the 3G interface to 80.

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.

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


<Huawei> 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

2 Specify the configuration file for next startup.


<Huawei> startup saved-configuration Huawei.cfg

When the router restarts, it automatically loads the specified configuration file; therefore,
no configuration will be lost after restart.

Connecting STAs to the Internet


The AR1200VW V2R5C20 is used as an example.

An enterprise provides the WLAN service f or users. The router f unctions as a


Fat AP.

Conf igure a def ault 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 f unction parameters and service VAPs f or the Fat AP so that
the STAs can connect to the Internet through the service VAPs.

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.
Action

Item

Description

Data

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

ID: 1

Name: radio-1

The default radio profile is bound to


the default WMM profile.

Configure
profiles
Security
profile

Traffic profile

ID: 1

Name: security-1

ID: 1

Name: traffic-1

The WMM, radio, security, and traffic


profiles in this example are created by
users.

After a service set is created, the


default traffic and security profiles
are bound to the service set by
default.

Configure
a service
set

ID: 1

Configure
a country
code

CN

1.1.1.1/24

VLANIF 100:
10.10.10.1/24

AP uplink
interface

Name: Huawei-1

Configure
IP
addresses
AP downlink
interface

10

3.2

Quickly Configure the Router

Step1 Configure a default


route on the Fat AP.

Step2 Configure a
VLANIF interface.

Step5 Save the


configuration

Step3 Configure the


DHCP server.

Step 4 Configure basic


function parameters and
service VAPs for the Fat
AP.

11

Configure the FAT AP to Allocate IP Addresses to STAs


1

Return to
Network
Diagram

Configure a default route on the Fat AP.

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

<Huawei> 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.

[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

12

Configure Basic Function Parameters and Service VAPs


for the FAT AP

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.

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

[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.

[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.

[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

Configure Basic Function Parameters and Service VAPs


for the FAT AP
4

Return to
Network
Diagram

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

[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.
[Huawei] interface wlan-bss 1
[Huawei-Wlan-Bss1] port hybrid tagged vlan 100
[Huawei-Wlan-Bss1] quit

Create a security profile named security-1.

[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 passphrase cipher Huawei@123 encryption-method ccmp
[Huawei -wlan-sec-prof-security-1] quit

14

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.

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


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

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

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

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


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

15

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.


<Huawei> 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.


<Huawei> startup saved-configuration Huawei.cfg

When the router restarts, it automatically loads the specified configuration file; therefore,
no configuration will be lost after restart.

16

Connecting the Branch to the Internet and


Connecting the Branch to the Headquarters
Through IPSec
The AR1200VW V2R5C20 is used as an example.

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.

17

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.
Action

Configure
IP
addresses

Configure
the
branch
3G
interface

Description

Item

Data

Headquarters
public IP address

13.1.1.1/24

IP address of the
headquarters
egress router

192.168.2.1/24

IP address of the
branch egress
router

192.168.1.1/24

APN profile

3gprofile

Network
connection mode

wcdma

Dialing mode

Auto-dial
interval: 60s

18

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

Step1 Configure IPSec on


the branch egress
gateway.

Step2 Configure the 3G


uplink interface on the
branch egress gateway.

Step5 Save the


configuration

Step3 Configure IPSec on


the headquarters egress
gateway.

Step4 Configure the uplink


GE interface on the
headquarters egress
gateway.

19

Configure IPSec on the Branch Egress Gateway


1

Return to
Network
Diagram

Configure an ACL to protect data flows.

<Huawei> 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.

[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 IKE peer.

[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

Configure an IPSec policy.

[Huawei] ipsec policy rta 1 isakmp


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

security acl 3000


ike-peer rta
proposal rta
return

20

Configure 3G Uplink Interface on the Branch Egress


Gateway

Return to
Network
Diagram

1 Create a dialer ACL.


<Huawei> 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

2 Create an APN profile.


[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

The APN is provided by the carrier.

3 Set dialing parameters for the 3G interface.


[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

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


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

21

Configure IPSec on the Headquarters Egress Gateway


1

Return to
Network
Diagram

Configure an IPSec proposal.

[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 IKE peer.

[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

Configure an IPSec policy template.

[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 IPSec policy and reference the IPSec policy template.

[Huawei] ipsec policy rta 1 isakmp template temp

22

Configure Uplink GE Interface on the Headquarters


Egress Gateway
1

Return to
Network
Diagram

Configure an interface connected to the Internet.

<Huawei> 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

Configure a static route pointing to the GE interface.

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


[Huawei] quit

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.

<Huawei> 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.


<Huawei> startup saved-configuration Huawei.cfg

When the router restarts, it automatically loads the specified configuration file; therefore,
no configuration will be lost after restart.

23

Implementing Voice Communication of Enterprise


Users
The AR1200VW V2R5C20 is used as an example.

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 outeroffice 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.

24

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.

User number plan:


POTS User

70007004

SIP User

Description

71007160

PBX users

Slot ID/Subcard ID/Port


Number

Default Access Number

Route ID

3/0/4

28980808

Prefix

Type

Route

Intra-office

Inter-office

90

Inter-office

900

Inter-office

AT0 trunk plan:

Prefix plan:

Post-routing number change plan:


Prefix

Inter-office Trunk

Called Number Change

28980808

25

5.2

Quickly Configure the Router

Step1 Configure initial


information.

Step2 Configure the


SIP server.

Step9 Save the


configuration.

Step3 Configure the


prefix.

Step7 Configure a call


route.

Step4 Configure users.

Step6 Configure a
trunk group.

26

Return to
Network
Diagram

Configure Initial Information

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.

Set the service mode to PBX.

<Huawei> system-view
[Huawei] voice
[Huawei-voice] service-mode pbx
[Huawei-voice] return
<Huawei> 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
<Huawei>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.
<Huawei> 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

27

Return to
Network
Diagram

Configure Initial Information

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

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

Configure the enterprise and DN set for numbers.

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

Configure the SIP Server

Configure the SIP server.


[Huawei-voice] sipserver
[Huawei-voice-sipserver]
[Huawei-voice-sipserver]
[Huawei-voice-sipserver]
[Huawei-voice-sipserver]
[Huawei-voice-sipserver]
[Huawei-voice-sipserver]

signalling-address ip 192.168.1.2 port 5060


media-ip 192.168.1.2
register-uri abcd.com
home-domain abcd.com
reset
quit

28

Return to
Network
Diagram

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.
[Huawei-voice] callprefix 7
[Huawei-voice-callprefix-7]
[Huawei-voice-callprefix-7]
[Huawei-voice-callprefix-7]
[Huawei-voice-callprefix-7]
[Huawei-voice-callprefix-7]
[Huawei-voice] callprefix 9
[Huawei-voice-callprefix-9]
[Huawei-voice-callprefix-9]
[Huawei-voice-callprefix-9]
[Huawei-voice-callprefix-9]
[Huawei-voice-callprefix-9]

enterprise hw dn-set local


prefix 7
call-type category basic-service attribute 0
digit-length 3 32
quit
enterprise hw dn-set local
prefix 9
call-type category basic-service attribute 1
digit-length 1 32
quit

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

28980808.
[Huawei-voice] callprefix ivr
[Huawei-voice-callprefix-ivr]
[Huawei-voice-callprefix-ivr]
[Huawei-voice-callprefix-ivr]
vudefault
[Huawei-voice-callprefix-ivr]
[Huawei-voice-callprefix-ivr]
[Huawei-voice-callprefix-ivr]

prefix 28980808
enterprise hw dn-set local
call-type category vu-service vu-service-name
digit-length 8 32
save
quit

29

Return to
Network
Diagram

Configure Users

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

a123456, and incoming and outgoing call rights are all.


[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.

[Huawei-voice] pbxuser 7000


[Huawei-voice-pbxuser-7000]
[Huawei-voice-pbxuser-7000]
[Huawei-voice-pbxuser-7000]
[Huawei-voice-pbxuser-7000]
[Huawei-voice-pbxuser-7000]
[Huawei-voice-pbxuser-7000]
[Huawei-voice] pbxuser 7001
[Huawei-voice-pbxuser-7001]
[Huawei-voice-pbxuser-7001]
[Huawei-voice-pbxuser-7001]
[Huawei-voice-pbxuser-7001]
[Huawei-voice-pbxuser-7001]
[Huawei-voice-pbxuser-7001]

pots enterprise hw
dn-set local
port 3/0/0
telno 7000
call-right in all
call-right out all
quit
pots enterprise hw
dn-set local
port 3/0/1
telno 7001
call-right in all
call-right out all
quit

30

Configure a Trunk Group and a Call Route

Return to
Network
Diagram

Configure an AT0 trunk group.

[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.

[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

31

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.

<Huawei> 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.

<Huawei> startup saved-configuration Huawei.cfg

When the router restarts, it automatically loads the specified configuration file; therefore,
no configuration will be lost after restart.

32

FAQ

1 What Are Function Differences Among AR1200 Models?

Device Model Voice

Wi-Fi

PoE

BGP

MPLS

AR1220

AR1220L

AR1220F

AR1220W

AR1220V

AR1220VW

Y: supported
N: not supported

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.)
<Huawei> 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(<8-128>):
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.

33

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.
<Huawei> 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?
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.

Configuration method:
Run the command in the interface or interface address pool view: dhcp server excludedip-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 ]

5 How Can I Configure the Lease?


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.

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 }

34

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 staticbind 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 ]

35

Reference

For more information about switch configuration, use the following methods.
Method
Browse or download
the router
configuration guide.

Browse or download
the router typical
cases.

Link

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 |9858 988|607883 9

Post your questions


in the technical
forum.

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

Ask questions in the


enterprise support
community.

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

36

Você também pode gostar