Cisco-OSPF dynamic routing

  • PC0 belongs to 100.100.100.0/24
  • PC1 belongs to 110.110.110.0/24
  • PC2 belongs to 120.120.120.0/24
  • PC3 belongs to 130.130.130.0/24
  • PC4 belongs to 140.140.140.0/24
  • PC5 belongs to 150.150.150.0/24
  • Configure the corresponding network devices, and each layer 3 device starts the OSPF dynamic routing write protocol, so that the hosts on each network segment can ping each other.

Effect picture:

Insert picture description here

Full video operation (click here to jump to Bilibili)

CiscoOSPF dynamic routing.pkt (click to download dynamic routing experiment)

R1 power off hardware plug into NM-2E2W

IP:

PC0:
100.100.100.2
255.255.255.0
100.100.100.1

PC1:
110.110.110.2
255.255.255.0
110.110.110.1

PC2:
120.120.120.2
255.255.255.0
120.120.120.1

PC3:
130.130.130.2
255.255.255.0
130.130.130.1

PC4:
140.140.140.2
255.255.255.0
140.140.140.1

PC5:
150.150.150.2
255.255.255.0
150.150.150.1

R0-R1:
202.199.100.0/24

R1-S0:
202.199.200.0/24

R1-R2:
202.200.100.0/24

Connection problem:

R0(Fa0/1)_S0(Fa0/24)
R0(Fa0/0)_R1(Fa0/0)
R1(Fa0/1)_R2(Fa0/0)
R1(Eth1/0)_3560S0(Fa0/24)
R1(Eth1/1)_S3(Fa0/24)
R2(Fa0/1)_S1(Fa0/24)
3560S0(Fa0/1)_S2(Fa0/24)

S0:

ena
conf
vlan 100
e
vlan 200
e
interface range fastEthernet 0/1-10
switchport access vlan 100
ex
interface range fastEthernet 0/11-20
switchport access vlan 200
ex
interface fastEthernet 0/24
switchport mode trunk
e

S2:

ena
conf
vlan 300
e
vlan 400
e
interface range fastEthernet 0/1-10
switchport access vlan 300
ex
interface range fastEthernet 0/11-20
switchport access vlan 400
ex
interface fastEthernet 0/24
switchport mode trunk
e

3560-S0:

ena
conf
vlan 300
e
vlan 400
e
interface vlan 300
ip address 130.130.130.1 255.255.255.0
e
interface vlan 400
ip address 140.140.140.1 255.255.255.0
e
interface fastEthernet 0/1
switchport mode trunk
e
interface fastEthernet 0/24
switchport mode trunk
no switchport
ip address 202.199.200.2 255.255.255.0
no shutdown
e
interface fastEthernet 0/24
no shutdown
e
router ospf 10
network 130.130.130.1 0.0.0.0 area 10
network 140.140.140.1 0.0.0.0 area 10
network 202.199.200.2 0.0.0.0 area 10
end

R2

ena
conf
interface fastEthernet 0/1
ip address 120.120.120.1 255.255.255.0
no shutdown
e
interface fastEthernet 0/0
ip address 202.200.100.2 255.255.255.0
no shutdown 
e
router ospf 10
network 120.120.120.1 0.0.0.0 area 10
network 202.200.100.2 0.0.0.0 area 10
end

R0

ena
conf
interface fastEthernet 0/1.1
encapsulation dot1Q 100
ip address 100.100.100.1 255.255.255.0
no shutdown
ex
interface fastEthernet 0/1.2
encapsulation dot1Q 200
ip address 110.110.110.1 255.255.255.0
no shutdown
ex
interface fastEthernet 0/0
ip address 202.199.100.1 255.255.255.0
no shutdown 
e
interface fastEthernet 0/1
no shutdown 
e
router ospf 10
network 100.100.100.1 0.0.0.0 area 10
network 110.110.110.1 0.0.0.0 area 10
network 202.199.100.1 0.0.0.0 area 10
end

R1

ena
conf
interface ethernet 1/1
ip address 150.150.150.1 255.255.255.0
no shutdown 
e
interface fastEthernet 0/0
ip address 202.199.100.2 255.255.255.0
no shutdown 
e
interface fastEthernet 0/1
ip address 202.200.100.1 255.255.255.0
no shutdown 
e
interface ethernet 1/0
ip address 202.199.200.1 255.255.255.0
no shutdown
e
router ospf 10
network 202.199.100.2 0.0.0.0 area 10
network 202.199.200.1 0.0.0.0 area 10
network 202.200.100.1 0.0.0.0 area 10
network 150.150.150.1 0.0.0.0 area 10
end

Guess you like

Origin blog.csdn.net/GodOuO/article/details/108333712