Example for Configuring LTE Cellular Interfaces as the Primary/Backup Interfaces to Connect to the Internet (Using Two 1LTE-L Interface Cards)
Networking Requirements
A remote branch of the enterprise needs to exchange large volumes of service traffic with external networks, but it cannot obtain the wired WAN access service. As shown in Figure 12-13, the branch uses RouterA as the egress gateway and uses LTE cellular interface Cellular1/0/0 to connect to the Internet through LTE network 1, meeting service transmission requirements.
The enterprise leases a link connected to the Internet through LTE network 2 as the backup link, so the backup link can transmit services when Cellular1/0/0 or LTE network 1 is faulty.
- For LTE network 1, the connection mode is LTE, the APN is ltenet1, and the dialer number is *99#.
- For LTE network 2, the connection mode is AUTO, the APN is ltenet2, and the dialer number is *98#.
Configuration Roadmap
- Configure Cellular1/0/0 on RouterA to connect RouterA to the Internet through LTE network 1.
- Configure Cellular2/0/0 on RouterA to connect RouterA to the Internet through LTE network 2.
- Configure Cellular2/0/0 as the backup interface of Cellular1/0/0 so that traffic can be switched to Cellular2/0/0 when Cellular1/0/0 is faulty.
- Configure C-DCC to dial up to the Internet through the primary or backup link.
- Configure a static route for communication at the network layer.
Procedure
- Configure Cellular1/0/0.
# Create an APN profile.
<Huawei> system-view [Huawei] sysname RouterA [RouterA] apn profile ltenet1 [RouterA-apn-profile-ltenet1] quit
# Obtain IP addresses dynamically.
[RouterA] interface cellular 1/0/0 [RouterA-Cellular1/0/0] ip address negotiate
# Configure a network connection mode.
[RouterA-Cellular1/0/0] mode lte lte-only
# Bind the APN profile to Cellular1/0/0.
[RouterA-Cellular1/0/0] dialer enable-circular [RouterA-Cellular1/0/0] apn-profile ltenet1 [RouterA-Cellular1/0/0] shutdown [RouterA-Cellular1/0/0] undo shutdown [RouterA-Cellular1/0/0] quit
- Configure Cellular2/0/0.
# Create an APN profile.
[RouterA] apn profile ltenet2 [RouterA-apn-profile-ltenet2] quit
# Obtain IP addresses dynamically.
[RouterA] interface cellular 2/0/0 [RouterA-Cellular2/0/0] ip address negotiate
# Configure a network connection mode.
[RouterA-Cellular2/0/0] mode lte auto
# Bind the APN profile to Cellular2/0/0.
[RouterA-Cellular2/0/0] dialer enable-circular [RouterA-Cellular2/0/0] apn-profile ltenet2 [RouterA-Cellular2/0/0] shutdown [RouterA-Cellular2/0/0] undo shutdown [RouterA-Cellular2/0/0] quit
- Configure Cellular2/0/0 as the backup interface of Cellular1/0/0.
[RouterA] interface cellular 1/0/0 [RouterA-Cellular1/0/0] standby interface cellular 2/0/0 [RouterA-Cellular1/0/0] quit
- Configure C-DCC.
# Create dialer access group 1 and configure a dialer rule in the group.
[RouterA] dialer-rule [RouterA-dialer-rule] dialer-rule 1 ip permit [RouterA-dialer-rule] quit
# Enable C-DCC on Cellular1/0/0.
[RouterA] interface cellular 1/0/0 [RouterA-Cellular1/0/0] dialer-group 1 [RouterA-Cellular1/0/0] dialer timer autodial 60 [RouterA-Cellular1/0/0] dialer number *99# autodial [RouterA-Cellular1/0/0] quit
# Enable C-DCC on Cellular2/0/0.
[RouterA] interface cellular 2/0/0 [RouterA-Cellular2/0/0] dialer-group 1 [RouterA-Cellular2/0/0] dialer timer autodial 60 [RouterA-Cellular2/0/0] dialer number *98# autodial [RouterA-Cellular2/0/0] quit
- Configure a static route.
[RouterA] ip route-static 0.0.0.0 0.0.0.0 cellular 1/0/0 preference 40 [RouterA] ip route-static 0.0.0.0 0.0.0.0 cellular 2/0/0 preference 80
- Verify the configuration.
# After the configuration is complete, run the display standby state command on RouterA to check the status of the primary and backup interfaces. The command output shows that Cellular1/0/0 is in Up state and Cellular2/0/0 is in Standby state.
[RouterA] display standby state Interface Interfacestate Backupstate Backupflag Pri Loadstate Cellular1/0/0 UP MUP MU Cellular2/0/0 STANDBY STANDBY BU 0 Backup-flag meaning: M---MAIN B---BACKUP V---MOVED U---USED D---LOAD P---PULLED ---------------------------------------------------------------------------- Below is track BFD information: Bfd-Name Bfd-State BackupInterface State ---------------------------------------------------------------------------- Below is track IP route information: Destination/Mask Route-State BackupInterface State ---------------------------------------------------------------------------- Below is track NQA Information: Instance Name BackupInterface State
# Run the shutdown command on Cellular1/0/0 to simulate a link fault. Run the display standby state command on RouterA to check the status of the primary and backup interfaces. The command output shows that Cellular1/0/0 is in Down state and Cellular2/0/0 is in Up state, indicating that the backup interface has started.
[RouterA-Cellular1/0/0] shutdown [RouterA-Cellular1/0/0] quit [RouterA] display standby state Interface Interfacestate Backupstate Backupflag Pri Loadstate Cellular1/0/0 DOWN MDOWN MU Cellular2/0/0 UP UP BU 0 Backup-flag meaning: M---MAIN B---BACKUP V---MOVED U---USED D---LOAD P---PULLED ---------------------------------------------------------------------------- Below is track BFD information: Bfd-Name Bfd-State BackupInterface State ---------------------------------------------------------------------------- Below is track IP route information: Destination/Mask Route-State BackupInterface State ---------------------------------------------------------------------------- Below is track NQA Information: Instance Name BackupInterface State
Configuration Files
Configuration file of RouterA
# sysname RouterA # apn profile ltenet1 apn profile ltenet2 # interface Cellular1/0/0 dialer enable-circular dialer-group 1 apn-profile ltenet1 dialer timer autodial 60 dialer number *99# autodial stanby interface Cellular2/0/0 modem auto-recovery dial action modem-rebootfail-times 128 modem auto-recovery services-unavailable action modem-reboot test-times 0 interval 3600 ip address negotiate # interface Cellular2/0/0 dialer enable-circular dialer-group 1 apn-profile ltenet2 dialer timer autodial 60 dialer number *98# autodial modem auto-recovery dial action modem-rebootfail-times 128 modem auto-recovery services-unavailable action modem-reboot test-times 0 interval 3600 ip address negotiate # dialer-rule dialer-rule 1 ip permit # ip route-static 0.0.0.0 0.0.0.0 Cellular1/0/0 preference 40 ip route-static 0.0.0.0 0.0.0.0 Cellular2/0/0 preference 80 # return