Backup configuration of dual uplinks

The AR router has two uplinks. If the two uplinks use PPPoE dialup, routing is used to implement backup of the two uplinks. For example, there are two dialup interfaces: Dialer1 and Dialer2. You can configure priorities of static routes to distinguish the primary and backup uplinks.

When PPPoE dialup fails, authentication fails, or an IP address fails to be obtained, the AR router needs to switch services to the backup route. The backup route takes effect only when Dialer1 becomes Down. The dialer interface is a virtual logical interface and is Snoofing Up. Even if PPPoE dialup fails, the dialer interface cannot become Down. The following configuration can be performed to solve this problem:

[Huawei] acl 3000 //Create an ACL.
[Huawei-acl-adv-3000] rule permit ip //Generally, all users are allowed. You can also limit user access according to actual networking.
[Huawei-acl-adv-3000] quit
[Huawei] interface dialer 1 //Create a dialer interface.
[Huawei-Dialer1] link-protocol ppp
[Huawei-Dialer1] ppp chap user 123456 //Configure the CHAP authentication user name.
[Huawei-Dialer1] ppp chap password cipher huawei@123 //Configure the CHAP authentication password.
[Huawei-Dialer1] ppp pap local-user 123456 password cipher huawei@123 //Configure the PAP authentication user name and password.
[Huawei-Dialer1] ip address ppp-negotiate //Configure PPP negotiation for obtaining an IP address.
[Huawei-Dialer1] dialer user user1
[Huawei-Dialer1] dialer bundle 1 //Specify dialer bundle 1.
[Huawei-Dialer1] dialer number 1 autodial //The dialer interface becomes Down when PPPoE dialup fails.
[Huawei-Dialer1] dialer-group 1
[Huawei-Dialer1] nat outbound 3000 //Configure outbound NAT.
[Huawei-Dialer1] quit
[Huawei] dialer-rule
[Huawei-dialer-rule] dialer-rule 1 ip permit
[Huawei-dialer-rule] quit
[Huawei] interface gigabitethernet 0/0/0 //Enter the view of the interface connected to the ISP network.
[Huawei-GigabitEthernet0/0/0] pppoe-client dial-bundle-number 1 //Enable the PPPoE client function and bind the PPPoE client to the dialer interface.
[Huawei-GigabitEthernet0/0/0] quit
[Huawei] ip route-static 0.0.0.0 0.0.0.0 dialer 1 preference 60 //Create the default route pointing to the dialer interface. When the primary uplink is normal, services are transmitted to the external network through dialer1 preferentially.
[Huawei] ip route-static 0.0.0.0 0.0.0.0 dialer 2 preference 100 //When the primary uplink is abnormal, services

Scroll to top