System integration router OSPF dynamic and comprehensive routing configuration

Experimental tasks:

  • Contents and characteristics of dynamic routing protocols RIP and OSPF

  • For dynamic routing RIP and OSPF experiments, establish a topology pc1>>R1>>R2>>R3>>pc2, so that pc1 and pc2 can communicate with each other, and configure the silent interface on the PC side.

  • Familiar with configuring inter-vlan routing technology: multilayer switch virtual interface SVI and single-arm routing

  • Multi-layer switch SVI configuration experiment, establish VLAN10>>Switch SW>>VLAN20, so that the two VLANs can communicate with each other,

  • Set up inter-vlan routing for each department in the company network of the previous experiment, so that each department can communicate

The main technologies used in this experiment are: the configuration of dynamic routing protocols rip and ospf and the mutual introduction between the two, the single-arm routing and the svi port of the three-layer switch to realize the communication between VLANs. The following is my experimental configuration idea , for your reference only, if you think it is good, you may wish to like + follow, thank you

A dynamic routing RIP, OSPF experiment, establish a topology pc1>>R1>>R2>>R3>>pc2, so that pc1 and pc2 can communicate with each other, and configure the PC terminal silent interface.

1.1 Experimental Analysis

This experiment mainly investigates the routing protocol configuration and bidirectional import of rip and ospf. As shown in the figure below, rip is configured on the left and ospf is configured on the right. On the handover router R2 between rip and ospf, bidirectional import is performed, that is, rip is introduced in ospf, and Introduce ospf in rip, so as to realize the intercommunication of the whole network.

1.2 Experimental topology

1.3 Experimental Configuration

PC1;

PC2;

R1:

[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.10.254 24
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[Huawei]rip 1
[Huawei-rip-1] undo summary
[Huawei-rip-1]version 2
[Huawei-rip-1] network 192.168.10.0
[Huawei-rip-1] network 12.0.0.0
[Huawei-rip-1]silent-interface g0/0/0//configure silent interface

R2:

[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 23.1.1.2 24
[Huawei]rip 1
[Huawei-rip-1] undo summary
[Huawei-rip-1]version 2
[Huawei-rip-1]import-route ospf 1//import ospf in rip
[Huawei-rip-1] network 12.0.0.0
[Huawei] ospf 1
[Huawei-ospf-1]import-route rip 1//import rip in ospf
[Huawei-ospf-1] area 0
[Huawei-ospf-1-area-0.0.0.0]network 23.1.1.2 0.0.0.0

R3:

[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.20.254 24
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 23.1.1.3 24
[Huawei] ospf 1
[Huawei-ospf-1] area 0
[Huawei-ospf-1] network 23.1.1.3 0.0.0.0
[Huawei-ospf-1] network 192.168.20.254 0.0.0.0
[Huawei-ospf-1] silent-interface g0/0/1

Check the routing table with dis ip rou on R1, and find that the route of the network segment in the ospf area has been learned through rip

1.4 Experimental results

2 Familiar with configuring inter-vlan routing technology: multi-layer switch virtual interface SVI and single-arm routing

2.1 Experimental Analysis

One-arm routing refers to the way of configuring sub-interfaces (or “logical interfaces”, there is no real physical interface) on an interface of the router to realize the interconnection between different VLANs (virtual local area networks) that were originally isolated from each other.

One-arm routing realizes communication between different VLANs. The sub-interface of the one-arm router is used as the gateway of the PC. Remember to enable the arp broadcast function after the sub-interface is established.

2.2 Experimental topology

2.3 Experimental Configuration

pc1:

pc2:

LSW1:

[Huawei] vlan batch 10 20
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1] port default vlan 10
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2] port default vlan 20
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 10 20

AR1:

[Huawei]int g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 10//Set as many vlans as possible, for example, I am vlan10, and this vid is 10
[Huawei-GigabitEthernet0/0/0.1]ip address 192.168.10.254 255.255.255.0
[Huawei-GigabitEthernet0/0/0.1] arp broadcast enable
[Huawei]int g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2] dot1q termination vid 20
[Huawei-GigabitEthernet0/0/0.2]ip address 192.168.20.254 255.255.255.0
[Huawei-GigabitEthernet0/0/0.2]arp broadcast enable

2.4 Experimental results

pc1 pinged pc2, the experiment was successful

Three-layer switch SVI configuration experiment, establish VLAN10>>switch SW>>VLAN20, so that the two VLANs can communicate with each other

3.1 Experimental Analysis

The virtual interface svi of the three-layer switch is used as the gateway of the PC, and it can also realize the communication of different VLANs. This is also a technology often used in production. The VLANIF interface is based on the interface of the network layer and can be configured with an IP address. With the help of the VLANIF interface, the layer-3 switch can realize the routing and forwarding function. I often understand the layer-3 switch as a router

3.2 Experimental topology

3.3 Experimental Configuration

LSW2:

[Huawei] vlan batch 10 20
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2] port default vlan 10
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3] port default vlan 20
[Huawei]int vlan 10
[Huawei-Vlanif10]ip address 192.168.10.254 24
[Huawei]int vlan 20
[Huawei-Vlanif20]ip address 192.168.20.254 24

3.4 Experimental results

pc3 can ping pc4

Fourth, set up inter-vlan routing for each department on the network of the experimental company in the previous period, so that each department can communicate

There is a blog in the last blog, please click the link for reference: Ensp-based small LAN network construction and demand analysis (2) 4.1vlan division and communication between different vlans:

If you don’t understand anything, please feel free to send me a private message or in the comment area