NetEngine AR600, AR6100, AR6200, and AR6300 V300R019 CLI-based Configuration Guide - WAN
Example for Configuring Link Backup in Interface Backup Mode on a 3G Network (C-DCC)
Networking Requirements
As shown in Figure 1-16, RouterA is an egress gateway of an enterprise. RouterA connects to an IP network using an ADSL interface in normal situations. However, if the ADSL interface is faulty, enterprise users cannot connect to the IP network. To prevent this fault, the enterprise uses the backup interface (a 3G interface in Figure 1-16) to connect to the IP network. Backing up the enterprise's outbound interface improves line reliability.
Figure 1-16 shows only the access-side networking. Deploy devices on the aggregation and core networks according to site requirements.
Configuration Roadmap
- Configure an enterprise intranet, specify RouterA as an egress gateway of the enterprise, and configure RouterA to assign IP addresses to users in the enterprise.
- Configure the uplink primary interface of RouterA.
- Configure the uplink backup interface of RouterA.
- Configure a static route so that RouterA can connect to the WAN.
Procedure
- Configure an enterprise intranet and specify RouterA as the egress gateway of the enterprise.
# Assume that the enterprise intranet uses only one network segment 192.168.100.1/24 and intranet users connect to RouterA through Layer 2 Ethernet interface Ethernet2/0/0.
<Huawei> system-view [Huawei] sysname RouterA [RouterA] vlan 123 [RouterA-vlan123] quit [RouterA] dhcp enable [RouterA] interface vlanif 123 [RouterA-Vlanif123] ip address 192.168.100.1 255.255.255.0 [RouterA-Vlanif123] dhcp select global [RouterA-Vlanif123] quit [RouterA] ip pool lan [RouterA-ip-pool-lan] gateway-list 192.168.100.1 [RouterA-ip-pool-lan] network 192.168.100.0 mask 24 [RouterA-ip-pool-lan] quit [RouterA] interface ethernet 2/0/0 [RouterA-Ethernet2/0/0] port link-type hybrid [RouterA-Ethernet2/0/0] port hybrid pvid vlan 123 [RouterA-Ethernet2/0/0] port hybrid untagged vlan 123 [RouterA-Ethernet2/0/0] quit
- Configure the uplink primary interface of RouterA.
This example only describes the configuration of the uplink primary interface. For details about other uplink devices, see the related manuals.
[RouterA] acl number 3002 [RouterA-acl-adv-3002] rule 5 permit ip source 192.168.100.0 0.0.0.255 [RouterA-acl-adv-3002] quit [RouterA] interface virtual-template 10 [RouterA-Virtual-Template10] ip address ppp-negotiate [RouterA-Virtual-Template10] nat outbound 3002 [RouterA-Virtual-Template10] quit [RouterA] interface atm 1/0/0 [RouterA-Atm1/0/0] pvc voip 1/35 [RouterA-atm-pvc-Atm1/0/0-1/35-voip] map ppp virtual-template 10 [RouterA-atm-pvc-Atm1/0/0-1/35-voip] quit [RouterA-Atm1/0/0] standby interface cellular 0/0/0 [RouterA-Atm1/0/0] standby timer delay 10 10 [RouterA-Atm1/0/0] quit
- Configure the uplink backup interface of RouterA.
# 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#.
# The APN name must be the same as that of the carrier. In this example, the name of the connected APN is wcdma.
Before configuring interface backup, ensure that a 3G modem and the SIM/UIM card are properly installed.
This example describes only the configuration of the uplink backup interface. For details about other uplink devices, see the related manuals.
[RouterA] dialer-rule [RouterA-dialer-rule] dialer-rule 1 ip permit [RouterA-dialer-rule] quit [RouterA] interface cellular 0/0/0 [RouterA-Cellular0/0/0] profile create 1 static wcdma [RouterA-Cellular0/0/0] link-protocol ppp [RouterA-Cellular0/0/0] ip address ppp-negotiate [RouterA-Cellular0/0/0] dialer enable-circular [RouterA-Cellular0/0/0] dialer-group 1 [RouterA-Cellular0/0/0] dialer timer idle 0 [RouterA-Cellular0/0/0] dialer number *99# [RouterA-Cellular0/0/0] nat outbound 3002 [RouterA-Cellular0/0/0] quit
- Configure a static route.
[RouterA] ip route-static 0.0.0.0 0.0.0.0 virtual-template 10 [RouterA] ip route-static 0.0.0.0 0.0.0.0 cellular 0/0/0
Configuration Files
Configuration file of RouterA
# sysname RouterA # vlan batch 123 # dhcp enable # acl number 3002 rule 5 permit ip source 192.168.100.0 0.0.0.255 # ip pool lan gateway-list 192.168.100.1 network 192.168.100.0 mask 255.255.255.0 # interface Vlanif123 ip address 192.168.100.1 255.255.255.0 dhcp select global # interface Ethernet2/0/0 port hybrid pvid vlan 123 port hybrid untagged vlan 123 # interface Cellular0/0/0 link-protocol ppp ip address ppp-negotiate dialer enable-circular dialer-group 1 dialer timer idle 0 dialer number *99# nat outbound 3002 # interface Atm1/0/0 pvc voip 1/35 map ppp Virtual-Template10 standby interface Cellular0/0/0 standby timer delay 10 10 # interface Virtual-Template10 ip address ppp-negotiate nat outbound 3002 # dialer-rule dialer-rule 1 ip permit # ip route-static 0.0.0.0 0.0.0.0 Virtual-Template 10 ip route-static 0.0.0.0 0.0.0.0 cellular 0/0/0 # return