Router backup configuration

Source: Internet
Author: User

Network Transmission of some key business data of some enterprises or organizations requires high reliability of network equipment and convenient maintenance.

There are multiple backup technologies for Cisco routers. Here we will introduce the router's own backup technology and line backup technology.

Generally, a router is a bridge between a LAN and a wan.

The so-called router's own backup technology is designed to solve a router's own hardware (such as memory, CPU) or software IOS fault or local port fault, network breakdown caused by the failure of the port or line of the connected local area device.

The router backup requires at least one router with the same functions as the active primary router. When the active router is paralyzed, it replaces the primary router in some way to provide routing services for LAN users.

For LAN computers, how to find a backup router when the master router is paralyzed is as follows: proxy ARP, IRDP, dynamic routing, HSRP

1. Proxy ARP

Computers that support proxy ARP send ARP broadcasts to find the MAC address corresponding to the destination address, whether they communicate with computers in different network segments or in this network segment, the router that knows the destination address will respond to the ARP request and broadcast its MAC address to the source computer. Then, the source computer will send the IP packet to the router, the router finally sends the data packet to the destination.

When the master router crashes and the computer communicates again, it will continue to send the proxy ARP broadcast, back up the router to respond to the request and transmit data.

Disadvantages:

If the main router is paralyzed when data is being transmitted, the computer that is communicating before sending another Proxy ARP request. it is impossible to know that the master router is paralyzed and will continue to send packets to the router, resulting in transmission interruption, the computer that is in communication can find the backup router for transmission only after another Proxy ARP request is sent or restarted.
Cisco router support proxy ARP

2. IRDP

Computers that support IRDP in the LAN will listen to the "hello" multicast packet sent by the primary router. If the computer no longer receives the "hello" message, it uses the backup router for data transmission.

3. Dynamic Routing

Some computers support dynamic rip routing to find routers. The disadvantage of this method is that the conversion between the primary router and the backup router is slow.

The above three methods are mainly used on the computer side. The Cisco router provides the HSRP technology, which does not require any computer settings, the switching between the primary router and the backup router is transparent, and the switching speed between them is fast.

A group of routers that use HSRP for backup share a virtual MAC address and virtual IP address. Each local port that participates in HSRP has a local IP address and MAC address, each vro has a weight value, and the highest weight is used as the master router. Others do not work. When the master router is paralyzed, The vro with the highest weight will act as the master router, and so on. Vrouters regularly exchange weights to determine the working status of the vro. If the primary Router does not send this information packet for a period of time, other backup routers will think that the router is broken, and the backup router with a high weight will take over the virtual MAC address and IP address, responsible for data transmission. Once the primary router returns to normal, it will automatically switch back and take over data transmission again. Then, the backup router stops transmission and is in the backup state. In addition, HSRP allows the router to monitor the working status of some ports. Once the port fails, it also performs automatic failover.

In short, for LAN computers, there is only one gateway, that is, a virtual IP address. All the backup work is automatically completed by the router.

HSRP is applicable to the situations where the routes of the primary router and the backup router are exactly the same.

Using the HSRP function, we recommend that you use dynamic routing protocols with fast convergence speed, such as OSPF and VPN.

Basic HSRP configuration steps:

Under port configuration, set the port IP address,
IP address port IP address Subnet Mask

Enable the HSRP function under port configuration and set the virtual IP Address
Standby group number IP virtual IP Address

Only routers with the same group number belong to the same HSRP group, and the virtual addresses of all routers belonging to the same HSRP group must be consistent.

Set HSRP preemption in port setting status
Standby group number preempt

This setting allows other routers in the HSRP group to be the primary router. This option should be set for all routers so that each router can become a backup router for other routers. If this option is not set, the weight of the vro。 is higher than that of the primary router.

Set the HSRP weight of the vro
Standby group number priority weight

If this item is not set, the default weight is 100, and the weight number is large, the priority of preemptible master router is higher.

Set the HSRP group router authentication string
Standby group number authentication string

This option is optional. If this option is set, all vrouters In the HSRP group must perform this option, and only vrouters in the group with the same string can perform HSRP.

Set the HSRP switching time
Standby group number time parameter 1 time parameter 2

The Time Parameter 1 indicates how long the router exchanges the Hello message at each interval to indicate whether the router is faulty or working properly. The Time Parameter 2 indicates the time in which other routers in the same group did not receive the information of the primary router, and the primary router is declared paralyzed. The default values are 3 seconds and 10 seconds respectively. If you want to change the default value, all the vrouters In the HSRP group must have the same settings.

Port tracking settings

Standby group number track port number

This option is optional.

This setting indicates that if the monitored port fails, the router is also switched. Multiple external ports can be tracked.

NOTE: If multiple lines are tracked on the primary router, when one line fails, it will switch to the backup router, even if everything else works normally, the route can only be resold after the primary router works normally. This setting can be fully implemented by the line backup function in practical applications. In most cases, this setting does not make much sense.

In addition, HSRP has many other settings and applications. For more information, see the Cisco site or Cisco Document or contact the Technical Support Center.
Instance:
Vro backup between 2511-1 and 2511-2

2511-1 Configuration

2511-1 # sho run

Building configuration...

Current role atoin:

!

Version 11.3:

No service password-Encryption

!

Hostname 251l-l

!

Enable Password Cisco

!

User name 2505 password 0 Cisco

No IP domain-Lookup

!

Interface ethernet0

IP address 192.4.1.99 255.255.255.0

No ip redirects

Standby 1 timers 5 15

Standby 1 Priority 110

Standby 1 preempt

Standby 1 authentication Cisco

Standby 1 IP 192.4.1.1

Standby 1 track serial0

Standby 1 track seriall

!

Interface serial0

IP address l92.3.1.1 255.255.255.0

Encapsulation frame-relay IETF

Ip ospf message-digest-key 1 MD5 Kim

No IP mroute-Cache

Bandwidx 2000

Frame-relay map IP 192.3.1.2 100 Broadcast

Frame-relay lm-type Cisco

!

Interface serial1

IP address 192.7.l.l 255.255.2550

Encapesulation PPP

Ip ospf message-digest-key 1 MD5 Kim

Ip ospf network non-broadcast

Bandwidth 64

PPP authentication chap

!

Router OSPF 1

Passive-interface ethernet0

Network 192.3.1.0 0.0.0.255 area 0

Network 192.4.l.0 0.0.0.255 area 0 network 192.7.l.0 0.0.0.255 area 0 neighbor 192.7.1.2 Priority 1 neighbor 192.3.1.2 Priority 1 area 0 authentication message-digest! No IP classless! Line con 0 line 1 8 line aux 0 line vty 0 4 password Cisco

Login

!

End

2511-2 Configuration

2511-2 # sho run

Building configuration...

Current Configuration:

!

Version 11.3:

No servicc password-Encryption

!

Host Name 2511-2

Enable secret 5 $1 $ 7o5f $ msyfwzvf6jbgnjljghhsb.

!

!

Interface ethernet0

IP address 192.4.1.loo 255.255.255.0

No ip redirects

Standby 1 timers 5 15

Standby 1 Priority 100

Staidby 1 preempt

Standby 1 authentication Cisco

Sandby 1 ip address 192.4.1.1

! Interface serial0ip address 192.8.1.2 255.255.255.0encapsulation x25ip OSPF missage-digest-key 2 MD5 Cisco

No IP mroute-Cache

X25 IP address 5678

X25 HTC 16

X25 NVC 4

X25 map IP 192.8.l.1 1234 Broadcast

!

Interface serial

[1] [2] [3] [4] Next page

ArticleInput: CSH responsible editor: CSH

No IP Address

No IP mroute-cachc

Bandwidx 2000

Clockrate 2000000

!

Router ospt 1

Passive-interface ethernet0

Network 192.8.1.0 0.0.0.255 area 0

Network 192.4.1.0 0.0.0.255 area 0

Neighbor 192.8.1.1 Priority 1

Area 0 authentication message-Digest

!

IP classless

!

Line con 0

Line 1 8

Line aux 0

Line vty 0 4

Login

!

End

2514 Configuration

2514 # sho run

Building configuration...

! Current configuration :! Version 11.2no service UDP-small-serversno service TCP-small-servers! Hostname 2514! Enable secret 5 $1 $ uohu $ vks/1ycri33z4txs4qeki0!

Frame-relay Switching

! Interface ethernet0

No IP Address

!

Interface ethernet1

No IP Address

Shutdown

!

Interfacc serial0ip address 192.3.1.2 limit 255.0encapsulation frame-relay IETF

Ip ospf message-digest-key 1 MD5 kimbandwidth 2000 clockrate 2000000

Frame-relay map IP 192.3.1.1 100 Broadcast

Frame-relay INTF-type DCE

! Interface serial1

IP address 192.8.1.1 255.255.255.0

No IP mroute-Cache

Enthpsulation x25 DCE

Ip ospf message-digest-key 2 MD5 Cisco

Bandwidth 64

X25 IP address 1234

X25 HTC 16

X25 NVC 4

X25 map IP 192.8.1.2 5678 Broadcast

Clockrate 64000

!

Router OSPF implements ethernet0network 192.3.1.0 0.0.0.255 area 0 network 192.8.1.o 0.0.255 area 0 neighbor 192.8.l.2 Priority 1 neighbor 192.3.1.1 Priority 1 area 0 authentication message-Digest

!

No IP classless

!

Line con 0 line aux 0 line vty 0 4 login! End

2505 configure building pipeline aiion... current configuration :! Version 11.2no service UDP-small-serversno service TCP-small-servers! Hostname 2505! Enable secret 5 $1 $ b43o $ cpeystc2epwnrlqgdvim //

!

User name 2511-1 Password 7 1511021f0725

!

Hub ether 0 1link-testauto-polarity

! Hub ether o 2link-testauto-polarity! Hub ether 0 3link-testauto-polarity! Hub ether 0 4link-testauto-polarity! Hub ether 0 5

Link-test

Auto-polarity

!

Hub ether 0 6

Link-test

Auto-polarity

!

Hub ether 0 7

Link-test

Auto-polarity

!

Hub ether 0 8

Link-test

Auto-polarity

!

Interface ethernet0

IP address 192.1.4.1 255.255.255.0

!

Interfacc serial0

IP address 192. l.2.1 255.255.255.0

Ip ospf message-digest-key 1 MD5 Cisco

Ip ospf network non-broadcast

Bandwidx 2000

Clockrate 2000000

! Interface serial1ip address 192.7.1.2 255.255.255.0encapsulation pppip OSPF message-digdest-key 1 MD5 kimip OSPF network non-broadcast

Bandwidth 64

Clockrate 64000

PPP authentication chap

!

Router OSPF 1

Passive-interface ethernet0

Network 192. l.2.0 0.0.0.255 area 2

Network 192. l.4.o 0.0.0.255 area 2

Network 192.7.1.0 0.0.0.255 area 0

Neighbor 192.7.l.1 Priority 1

Neighbor 192.1.2.2 Priority 1

Area 0 authentication message-Digest

Area 2 authentication message-Digest

Area 2 range 192.1.0.0 255.255.0.0

!

No IP classless

Ip ospf name-Lookup

!

Line con 0

Line aux 0

Iine vty 0 4

Login

!

End
Method 1. Line backup

In fact, most of the unreliable factors in WAN connections are the lines, ports, and external devices. Line backup is more important. There are several main methods for line backup:

Automatic Backup Using Dynamic Routing

Use the show backup (Backup) method to enter the backup

Back up data using floating Static Routing

Method 1 is to include multiple redundant lines in the network. The router learns the operation of all lines through dynamic routing.AlgorithmSelect the optimal route as the main route. Once a main route fails, the router will automatically delete the path through the line after a period of time and re-calculate the optimal path, reselect an optimal path through a redundant line. All these processes are automatically completed by the dynamic routing protocol without any additional settings.

Method 2 display backup methods

This method indicates which trunk line and which one is a backup line. If the main line fails, the backup line will work in place of the main line within the specified time. If the primary route returns to normal, after the specified time, the system automatically switches back to the primary route to back up the line again.

After the backup is set to display, the vro monitors the CD signal. Once the CD signal disappears, the vro considers the line to be faulty. If the CD signal always exists, the router considers the main route to work normally.

This backup method is applicable when the ddnleased line is used as the main line. Because for the ddnleased line, if the line is broken, the CD signal of the routers on both sides will disappear, and this method does not apply to the X.25 line, because when the X.25 line fails, in most cases, virtual circuits cannot be built, while CD signals often exist. In addition, if one end of the X.25 line fails, and the other end of the X.25 line is often normal, so if the normal end of the router has data transmitted to the abnormal end, the router considers the X.25 line to work normally. Therefore, there is no backup line at all.

Steps for displaying backup Method Configuration

1. Correctly configure trunk lines for normal communication

2. Correctly configure the backup line for normal communication

3. In the port connected by the main trunk line, it is shown which line is the backup line.

Backup interface backup line port number

4. Specify how long the backup line will be enabled after the main line fails and how long it will take to switch back to the main line after the main line recovers to normal. Backup line recovery to backup status

Backup Delay Time Parameter 1 (seconds) Time Parameter 2 (seconds)

Time Parameter 1 specifies the time after which the backup line is enabled when the main line fails. Time Parameter 2 specifies the time after the main line recovers to the normal state, switch back to the main line, and restore the backup line to the backup state.

You can configure a route for a backup line in any way, but the bandwidth of the backup line is generally lower than that of the primary route, and there will be additional costs for dynamic routing. Therefore, Static Routing is generally used on the backup line.

In Global Setting Mode

IP Route subnet address subnet mask adjacent router port address

In principle, the backup line can be any line. However, generally, a line with relatively low bandwidth and low costs is used as a backup line.

Generally, X.25 or PSTN can be used for DDN line backup.

The following example uses the cisco2501 Aux port to simulate the dial-up backup of the ddnleased line.

Instance:

Configuration of Cisco 2501-above

Current Configuration:

!

Version 11.2:

No service UDP-small-servers

No service TCP-small-Server

Previous Page [1] [2] [3] [4] Next page

Article entry: CSH responsible editor: CSH

!

Hostname above

!

Enable secret 5 $1 $ o1aq $ kxgp1a0eulqug8sbcm6rdl

Enable Password Cisco

!

Username down password 7 095c5e19

Chat-script lab abort error abort busy abort "No answer" At H "OK" atdt \ t"

Timeout 60 connect \ c

!

Interface ethernet0

IP address 192.192.193.1 255.255.255.0

!

Interface serial0

IP address 192.192.192.1 255.255.255.0

Bandwidth 64

Clockrate 64000

!

Interface serial1no IP Address

Shutdown

!

Interface async1

IP address 166.71.70.1 255.255.255.0

Encapsulation PPP

Async Dynamic Address

Async Dynamic Routing

Async mode dedicated

Dialer in-band

Dialer map IP 167.71.70.2 name down moden-script lab broadcast 3631

Dialer-Group 1

No CDP enable

PPP authentication chap

!

Router rip

Network l92.192.192.0

Nctwork 192.192.193.0

!

No IP classless

IP Route 0.0.0.0 0.0.0.0 166.71.70.2

IP routc 192.192.191.0 255.255.255.0 166.71.70.2

Dialer-List 1 Protocol IP Permit

!

Line con 0

Line aux 0

Modem inout

Modem autoconfigure discovery

Stopbits 1

Rxspeed 38400

Txspeed 38400

Flowcontrol hardware

Line vty 0 4

No Login

!

End

! Current configuration of Cisco 2501 named down configurationcisco 2501-down:

!

Version 11.2:

No service UDP-small-servers

No servicc TCP-small-servers

!

Hostname down

!

Enable secret 5 $1 $ m8s4 $ lnrkhnjdtcvtsvtpxo8v/0

Enable Password Cisco

!

Username above password 7 095c5e19

Chat-script lab abort error abort busy abort "No answer" At H "OK" atdt \ t "timeout 60 connect \ c

!

Interface Ethernet 0

IP address 192.192.191.1 255.255.255.0

!

Interface serial0

Backup delay 10 10

Backup interface async1

IP address 192.192.192.3 255.255.255.0

!

Interface seriall

No IP Address

Shutdown

!

Interface async1

IP address 166.71.70.2 255.255.255.0

Encapsulation PPP

Async Dynamic Address

Async Dynamic Routing

Async mode dedicated

Dialer in-band

Dialer map IP 166.71.70.1 name above modem-script lab broadcast 3621

Dialer-Group 1

No CDP enable

PPP authentication chap

!

Router rip

Net work 192.192.192.0

Net work 192.192.191.0

!

No IP classless

IP Route 0.0.0.0 0.0.0.0 166.71.70.1

IP Route 192.192.193.0 255.255.255.0 166.71.70.1

Dialer-List 1 Protocol IP Permit

!

Line con 0

Line aux 0

Modem inout

Modem autoconfigure discovery

Stopbits 1

Rxspeed 38400

Txspeed 38400

Flowcontrol hardware

Line vty 0 4

No Login

!

Method 3: A floating static route is used for backup.

By default, Cisco routers select static routes, dynamic routes, and default routes, which are determined by the weights of various routes.

You can manually change the weight of a static route so that it can become a floating static route after a dynamic route. If no route exists in the dynamic routing table, the floating static route can be selected to transmit data.

Generally, the X.25 line uses floating static routes for dial-up backup, which is particularly suitable. However, floating Static Routing can be used to back up any other line.

Note: If a floating static route is used as the backup line of the X.25 line, the X.25 line must start a dynamic route; otherwise, bidirectional backup cannot be implemented.

Steps for configuring floating static routes:

1. Correctly configure the main route to ensure normal communication

2. configure a dynamic route for the main route

3. Correctly configure the backup line to ensure normal communication

4. configure a floating static route through the backup line

IP Route subnet address subnet mask adjacent router adjacent port address weight

The higher the weight value, the lower the route priority. The weight range is between 1 and.

Instance:

COSCO 2501-abve Configuration

Current confignration :! Version 11.2no service UDP-small-servers

No service TCP-small-servers

!

Hostname above

!

Enable secret 5 $1 $ o1aq $ kxgpia0eulqug8sbcm6rd1

Enable Password Cisco

!

Username down password 7 095c5e19

Chat-scrip lab abort error abort busy abort "No answer" At H "OK" atdt \ t "timeout 60 connect \ c

!

Interface ethernet0

IP address 192.192.193.1 255.255.255.0

! Interface serial0

IU address 192.192.192.1 255.255.255.0

Bandwidth 64

Clockrate 64000

!

Interface scrial1

No IP Address

Shutdown

Interface asyncl

IP address 166.71.70.1 255.255.255.0

Encapsulation pppasync Dynamic Address

Async Dynamic Routing

Async mode dedicated

Dialer in-banddialer IP 166.71.70.2 name down modem-script lab broadcast 3631

Dialer-Group 1

No CDP enableppp authentication chap! Router ripnetwork 192.192.192.0network 192.192.193.0

!

No IP classless

IP Route 0.0.0.0 0.0.0.0 166.71.70.2 150

IP Route 192.192.191.0 255.255.255.0 166.71.70.2 150dialer-list 1 Protocol IP permit! Line con 0 line aux 0

Modem inoutmodem autoconfigure discoverystopbits 1 rxspeed 38400 txspeed 38400 flowcontrol hardwareline vty 0 4

No Login

Previous Page [1] [2] [3] [4] Next page

Article entry: CSH responsible editor: CSH

End

Current configuration of Cisco 2501-down:

!

Version 11.2no service UDP-small-serversno service TEP-small-servers! Hostname down! Enable secret 5 $1 $ m8s4 $ inrkhnjdtcvtsvtpxo8v/0 enable password Cisco

!

Username above password 7 095c5e19

Chat-script lab abort error abort busy abort "No answer" At H "OK" atdt \ t "timeout 60 connect \ c

!

Interface ethernet0

IP address 192.192.191.1 255.255.255.0

!

Interface serial0

IP address 192.192.192.3 255.255.255.0

!

Interface serial1

No IP Address

Shutdown

!

Interface asyncl

IP address 166.71.70.2 255.255.255.0encapsulation pppasync dynamic addressasync dynamic routingasync mode dedicateddialer in-banddialer map IP 166.71.70.1 name above modem-script lab broadcast 3621

Dialer-Group 1

No CDP enable

PPP authentication chap

!

Router rip network 192.192.192.0

Network 192.192.191.0

!

No IP classless

IP Route 0.0.0.0 0.0.0.0 166.71.70.1 150

IP Route 192.192.193.0 255.255.255.0 166.71.70.1 150

Dialer-List 1 Protocol IP Permit

!

Line con 0

Line aux 0

Modem inoutmodem autoconfigure discovery

Stopbits 1

Rxspeed 38400

Txspeed 38400

Flowcontrol hardware

Line vty 0 4

No Login

Previous Page [1] [2] [3] [4]

Article entry: CSH responsible editor: CSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.