cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10847
Views
0
Helpful
38
Replies

how to redistribute static route into ospf

rfuentes1111
Level 1
Level 1

HI Guys,

I need some help on this I want to redistribute static route into ospf, but i want to  do it on a layer 3 switch which is connected to another cisco switch which is the vendor switch but i don't want them to see all  my routes just the one that I want to distribut. I'm new on the routing but i.m familiar with the commands. I don't know if this can be possible to do on layer 3 switch.

here is my example.

interface Vlan2

ip address 192.168.193.1 255.255.255.0

!

interface Vlan3

ip address 192.168.100.1 255.255.255.0

!

router ospf 2

log-adjacency-changes

redistribute static subnets

network 192.168.193.0 0.0.0.255 area 0

network 192.168.100.0 0.0.0.255 area 0

network 150.150.150.0 0.0.0.0 area 0

!

ip classless

ip route 10.10.10.0 255.255.255.255 192.168.100.2

38 Replies 38

This is where I'm confuse as well since this is a project that I'm working on and I don't have enough information.

Before you do that in your lab can you be specific about what subnets you want advertised and where.

Your diagram suggests the vendor is using 10.10.10.0/24 but your latest configuration doesn't.

What do you want to advertise to the vendor and what subnets is the vendor using ?

Do you have any control over the vendor switches in terms of configuration ?

Jon

we are not going to have any control on the vendor configuration we are only providing the connection and a sunbet mask for 1000 systems this is for future grow.

I do not know what you are trying to do to be honest.

I thought I did but the more I ask the more confused I get.

Trying to help but can't really unless you provide a full explanation of exactly what you want to do in terms of network layout, IP addressing etc.

Jon

Can you provide a configuration so i can see it i will appreciate that thank you

I did, at the end of this thread but it is not clear at the moment what you want to advertise where.

What exactly are you trying to advertise to the vendor ie. you are using a static pointing to which subnet and where is that subnet in relation to your L3 switch ?

And what subnet is the vendor using.

Bear in mind if you advertise a static to the vendor then wherever that subnet is the L3 devices in your network need to know how to get back to the vendor subnet so you need to advertise that as well.

Jon

In terms of where to terminate it, you can terminate the link on a L2 or L3 switch but the configuration will be on the L3 switch.

So is the connection going directly to your L3 switch or not ? 

Jon

Ye, is going to terminate on a layer 3 switch

Hi Richard,

This is something that I want to get into my network. i don't know if this is the best Practice or not  but the network 192.168.30 will be the vendor network but from that he needs to create 4 subnets and does subnet need to be able to communicate with ours as well.

interface Vlan2
ip address 192.168.10.1 255.255.255.0 Management Vlan
!
interface Vlan4
ip address 192.168.40.1 255.255.255.0
!
router ospf 2
log-adjacency-changes
redistribute static subnets
network 192.168.40.0 0.0.0.255 area 20
network 192.168.30.0 0.0.0.255 area 20
network 192.168.10.0 0.0.0.255 area 20
!
ip classless
ip route 192.168.30.0 255.255.255.255 192.168.10.2
!
ip flow-export version 9
!
Switch#sh ip route

C 192.168.10.0/24 is directly connected, Vlan2
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
O 192.168.30.0/24 [110/2] via 192.168.10.2, 00:12:57, Vlan2
S 192.168.30.0/32 [1/0] via 192.168.10.2
C 192.168.40.0/24 is directly connected, Vlan4
Switch#

Vendorsw#
interface Vlan2
ip address 192.168.10.2 255.255.255.0
!
interface Vlan10
ip address 192.168.30.1 255.255.255.0
!
router ospf 2
log-adjacency-changes
network 192.168.30.0 0.0.0.255 area 20
network 192.168.10.0 0.0.0.255 area 20 Managment Vlan
!
ip classless
ip route 192.168.40.0 255.255.255.0 192.168.10.1
!
ip flow-export version 9
!

vendor#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.10.0/24 is directly connected, Vlan2
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, Vlan10
O E2 192.168.30.0/32 [110/20] via 192.168.10.1, 00:16:29, Vlan2
S 192.168.40.0/24 [1/0] via 192.168.10.1
vendor#