Configuration of floating routes in eNSP

The idea is to configure the direct route first, then configure the static route, and finally configure the floating route
. 1. Configure the direct route
1) Create a new topology diagram, add the required devices, connect the network cable, and start the device.
Configuration of floating routes in eNSP

2) Configure the PC:
PC1 ip 192.168.1.1 Subnet mask: 255.255.255.0 Gateway: 192.168.1.254
PC2 ip 192.168.4.1 Subnet mask: 255.255.255.0 Gateway: 192.168.4.254
and identify the PC IP address
Configuration of floating routes in eNSP

3) Configure the direct route, configure the ip address of the router AR1 interface, the command is as follows:
system-view //Enter system view
interface GigabitEthernet 0/0/1 //Enter port GE 0/0/1
ip address 192.168.1.254 24 / /Set the interface ip address to 192.168.1.254 and the default subnet mask
undo shutdown //Open the current port
interface GigabitEthernet 0/0/0 //Enter the port GE 0/0/0
ip address 192.168.2.1 24 //Set the port ip The address is 192.168.2.1 and the default subnet mask
undo shutdown //
After the current port is configured, identify the ip address of the port
Configuration of floating routes in eNSP

4) According to the above commands, configure the ip addresses of AR2 and AR3 interfaces in turn, and identify the ip corresponding to the interface.
Among them, the GE 0/0/0 ip of AR2 is 192.168.2.2
GE 0/0/2 ip is 192.168.3.1
, and the AR3 ip GE 0/0/2 ip is 192.168.3.2
GE 0/0/1 ip is 192.168.4.254
Configuration of floating routes in eNSP
2. Configure a static route
to router AR1, and configure a static default route for AR3. The AR1 command is as follows:
system-view //Enter the system View
ip route-static 0.0.0.0 0.0.0.0 192.168.2.2 //Configure the default route and select 192.168.2.2 as the next hop address. The
AR2 command is as follows:
system-view //Enter the system view
ip route-static 0.0.0.0 0.0. 0.0 192.168.3.1 //Configure the default route and select 192.168.3.1 as the next hop address.
AR2 cannot be configured with a static default route, but only with a static route. The command is as follows:
system-view //Enter the system view
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1 //Configure the routing table to the 192.168.1.0 network segment
ip route-static 192.168.4.0 255.255.255.0 192.168.3.2 //Configure the routing table to the 192.168.4.0 network segment
After executing the above command, verify whether PC1 and PC2 can communicate with each other
Configuration of floating routes in eNSP
Configuration of floating routes in eNSP
. The result shows that the two PCs can communicate with each other.
3. Let's start to configure the floating static route
1) First, connect a network cable between AR1 and AR2. Then change the default route of AR1 to a common static route
system-view //Enter the system view
undo ip route-static 0.0.0.0 0.0.0.0 192.168.2.2 //Delete the default route
ip route-static 192.168.4.0 255.255. 255.0 192.168.2.2 //Create a static route
Configuration of floating routes in eNSP
2) Set IP for the two newly opened interfaces
AR1 ip 192.168.5.1
AR2 ip 192.168.5.2
identifies the IP corresponding to the outgoing interface
Configuration of floating routes in eNSP
3) Add a static route for AR1, the command is as follows:
system- view //Enter system view
ip route-static 192.168.4.0 255.255.255.0 192.168.5.2 //Set static route
When interface GE 0/0/0 fails, the
router communicates through GE 0/0/1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325352430&siteId=291194637