cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
679
Views
2
Helpful
3
Replies

Static Routing with OSPF

parkbamjang
Level 1
Level 1

Hi!

Here's my topology:

스크린샷 2023-06-01 173842.png

It's a assignment given by my network teacher, but I'm having a problem.

The goal is to successfully

ping Router#0

from the PC, but the current

ping to Router#1

has also failed.

What should I do?

Here's configuration of R#1, R#3, L3#0.

R#1

ip route 0.0.0.0 0.0.0.0 10.10.10.1 (left interface of R#0)

ip route 0.0.0.0 0.0.0.0 20.20.20.2 100 (Backup route, it's R#2's left interface)

!

Router ospf 1

Router-id 1.1.1.1

Network 20.20.20.0 0.0.0.3 area 0

Network 20.20.20.4 0.0.0.3 area 0

Default-information originate




R#3

Ip route 0.0.0.0 0.0.0.0 30.30.30.4 (VLAN 10's SVI on L3#0)

Ip route 0.0.0.0 0.0.0.0 20.20.20.14 100

!

Router ospf 1

Router-id 3.3.3.3

Network 20.20.20.4 0.0.0.3 area 0 (between R#1~R#3)

Network 20.20.20.12 0.0.0.3 area 0 (between R#3~R#4)

Default-information originate




L3#0

Vlan 10

Name VLAN10

Vlan 20

Name VLAN20

Vlan 30

Name VLAN30

Interface

gigabitethernet1/0

(connected with PC#1)

Switchport mode access

Switchport access vlan 20 

Interface

gigabitethernet1/1

(connected with PC#2)

Switchport mode access

Switchport access vlan 30

 

Interface

gigabitethernet0/0

(left)

Switchport mode access

Switchport access vlan 10

Interface

gigabitethernet0/1

(right)

Switchport mode access

Switchport access vlan 10

exit

Ip routing

Interface vlan 10

Ip address 30.30.30.4 255.255.255.240

No shutdown

Interface vlan 20

Ip address 30.30.30.17 255.255.255.240

No shutdown

Interface vlan 30

Ip address 30.30.30.33 255.255.255.240

No shutdown

Exit

Ip route 0.0.0.0 0.0.0.0 30.30.30.1 (Virtual router's ip in VRRP in R#3 and R#4)




PC's gateway is 30.30.30.4, which is VLAN 10's svi on L3#0.

 

 

 

if you want full configuration, check the attached work file.

 

help me....

 

 

 

1 Accepted Solution

Accepted Solutions

Hi

 You are mssing configuration in R2.

Either you add ospf in R2 or you add two default route with different weight

ip route 0.0.0.0 0.0.0 > R1

ip route 0.0.0.0 0.0.0 > R2  2




R1, remove the default routes.

no ip route 0.0.0.0 0.0.0.0 10.10.10.1

no ip route 0.0.0.0 0.0.0.0 20.20.20.2 100

Remove default-information originate

Router ospf 1

Router-id 1.1.1.1

Network 20.20.20.0 0.0.0.3 area 0

Network 20.20.20.4 0.0.0.3 area 0

no default-information originate







R3: Remove the default routes

no ip route 0.0.0.0 0.0.0.0 30.30.30.4

no ip route 0.0.0.0 0.0.0.0 20.20.20.14 100

Add a static route in R3

ip route 30.30.30.0 255.255.255.0  30.30.30.4

Redistribut static on R3. Remove default-information originate

Router ospf 1

Router-id 3.3.3.3

Network 20.20.20.4 0.0.0.3 area 0 (between R#1~R#3)

Network 20.20.20.12 0.0.0.3 area 0 (between R#3~R#4)

no default-information originate

redistribute static subnets

View solution in original post

3 Replies 3

Hi

 You are mssing configuration in R2.

Either you add ospf in R2 or you add two default route with different weight

ip route 0.0.0.0 0.0.0 > R1

ip route 0.0.0.0 0.0.0 > R2  2




R1, remove the default routes.

no ip route 0.0.0.0 0.0.0.0 10.10.10.1

no ip route 0.0.0.0 0.0.0.0 20.20.20.2 100

Remove default-information originate

Router ospf 1

Router-id 1.1.1.1

Network 20.20.20.0 0.0.0.3 area 0

Network 20.20.20.4 0.0.0.3 area 0

no default-information originate







R3: Remove the default routes

no ip route 0.0.0.0 0.0.0.0 30.30.30.4

no ip route 0.0.0.0 0.0.0.0 20.20.20.14 100

Add a static route in R3

ip route 30.30.30.0 255.255.255.0  30.30.30.4

Redistribut static on R3. Remove default-information originate

Router ospf 1

Router-id 3.3.3.3

Network 20.20.20.4 0.0.0.3 area 0 (between R#1~R#3)

Network 20.20.20.12 0.0.0.3 area 0 (between R#3~R#4)

no default-information originate

redistribute static subnets

Thank you very much!!!

No sure where you are simulating this but I created the network on PacketTracer and it is working  fine.

I will add here in case you want to see.

Review Cisco Networking for a $25 gift card