Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Routin

Shulou Source: shulou.com Published: 2022-06-01 08:51:28 10月07日 Update

Task configuration of 1.staticrouter01

Networking requirements

The IP addresses and masks of the interfaces and hosts of the switch are shown in figure 1-2. Static routing is required so that between any two hosts in the figure

Can communicate with each other.

Configuration step

(1) configure the IP address of each interface (abbreviated)

(2) configure static rout

# configure the default route on Switch A.

System-view

[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2

# configure two static routes on Switch B.

System-view

[SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1

[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6

# configure the default route on Switch C.

System-view

[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5

(3) configure the host

The default gateway for configuring Host An is 1.1.2.3. The default gateway for host B is 1.1.6.1. The default gateway for host C is 1.1.3.1.

The specific configuration process is brief.

Check the ip address of hostA and test it

Task configuration of 2.staticrouter02

Networking requirements

Configure a static route on Switch A to reach the 120.1.1.0 Universe 24 network segment, and configure a static route on Switch B to reach

Up to 121.1.1.0 amp 24 network segments, and all enable BFD detection function.

Configure a static route on Switch C to reach the 120.1.1.0 Universe 24 network segment and the 121.1.1.0 Universe 24 network segment.

When the link that Switch An and Switch B communicate through L2 Switch fails, BFD can quickly sense and cut

Switch to Switch C for communication.

Device interface IP address device interface IP address

Switch A Vlan-int10 12.1.1.1/24 Vlan-int11 10.1.1.102/24

Switch B Vlan-int10 12.1.1.2/24 Vlan-int13 13.1.1.1/24

Switch C Vlan-int11 10.1.1.100/24 Vlan-int13 13.1.1.2/24

Configuration step

(1) configure the IP address of each interface (abbreviated)

(2) configure static routing and BFD

# configure static routes on Switch An and enable BFD detection, using two-way detection.

System-view

[SwitchA] interface vlan-interface 10

[SwitchA-vlan-interface10] bfd min-transmit-interval 500

[SwitchA-vlan-interface10] bfd min-receive-interval 500

[SwitchA-vlan-interface10] bfd detect-multiplier 9

[SwitchA-vlan-interface10] quit

[SwitchA] ip route-static 120.1.1.0 24 vlan-interface 10 12.1.1.2 bfd control-packet

[SwitchA] ip route-static 120.1.1.0 24 vlan-interface 11 10.1.1.100 preference 65

[SwitchA] quit

# configure static routes on Switch B and enable BFD detection, using two-way detection.

System-view

[SwitchB] interface vlan-interface 10

[SwitchB-vlan-interface10] bfd min-transmit-interval 500

[SwitchB-vlan-interface10] bfd min-receive-interval 500

[SwitchB-vlan-interface10] bfd detect-multiplier 9

[SwitchB-vlan-interface10] quit

[SwitchB] ip route-static 121.1.1.0 24 vlan-interface 10 12.1.1.1 bfd control-packet

[SwitchB] ip route-static 121.1.1.0 24 vlan-interface 13 13.1.1.2 preference 65

[SwitchB] quit

# configure static routes on Switch C.

System-view

[SwitchC] ip route-static 120.1.1.0 24 13.1.1.1

[SwitchC] ip route-static 121.1.1.0 24 10.1.1.102

Do a test first to see if you can communicate with ping

Before disconnecting the main switch, test the use of switch C to see if you can ping

Tags: Configuration routing static address interface detection network segment host switch function gateway test task bidirectional mode step device requirement communication between Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia Xiaomi Microsoft Docker