Comprehensive small experiment

Step 1: Plan IP

Loopback of R1: 192.168.1.0/28
Loopback of R2: 192.168.1.16/28
O/O/0 interface of R123: 192.168.1.32/28
R3-4: 192.168.1.128/30
Vlan2: 192.168.1.48/28
vlan3: 192.168.1.64/28
192.168.1.0/24
0 zone: 192.168.1.0/251
zone: 192.168.1.128/25

Step 2: Configure the IP address

After the calculation is completed, configure IP addresses for the interfaces of each router.

 Port IP configuration method

[R1] interface GigabitEthernet 0/0/0——Incoming interface

[R1-GigabitEthernet 0/0/0]ip address 192.168.1.33 28——配ip

Loopback interface IP configuration method

[R1]interface LoopBack 0——Enter the loopback interface

[R1-LoopBack0]ip address 192.168.1.1 28 ——配IP

 Step 3: Configure VLANs

Create VLANs

[SW2]vlan 2——Create a VLAN, and type the corresponding VLAN number

[SW2]vlan 3——Create a VLAN, and type the corresponding VLAN number

start allocation

[SW2-GigabitEthernet0/0/2]port link-type access ——The specified type is access, and the traffic without labels is transmitted

[SW2-GigabitEthernet0/0/2]port default vlan 2 - divide the interface into VLAN2

[SW2-GigabitEthernet0/0/3]port link-type access ——The specified type is access, and the traffic without labels is transmitted

[SW2-GigabitEthernet0/0/3]port default vlan 3 - divide the interface into VLAN3

[SW2-GigabitEthernet0/0/1]port link-type trunk

[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 3

[R3-GigabitEthernet0/0/2.1]dot1q termination vid 2——let the sub-interface of the router serve a certain VLAN

[R3-GigabitEthernet0/0/2.1]arp broadcast enable ——Enable the ARP broadcast function

[R3-GigabitEthernet0/0/2.2]dot1q termination vid 3——let the sub-interface of the router serve a certain VLAN

[R3-GigabitEthernet0/0/2.2]arp broadcast enable ——Enable the ARP broadcast function

 Step 4: Enable ospf and declare the corresponding interface, and send the default route on R4

R1

R2

 R3

 R4

 

Step 5: Summarize routes on R3

[R3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128

Step Six: Test

 

 

 

 

 

Guess you like

Origin blog.csdn.net/m2282475145/article/details/131705882