Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2242
  • Last Modified:

add an OSPF cost to a VLAN

Hello, how do I add an OSPF cost to a VLAN on my Layer 3 switch

The reason is that packets going through this switch are taking two different paths because there are two different equal cost routes to the same next network.

O    192.168.11.0/24 [110/42] via 10.227.248.17, 00:28:14, Vlan501
                                 [110/42] via 10.218.35.13, 00:28:14, Vlan1

I dont want to load balance between these VLAN links.  I want to add a cost of 10000 to VLAN 501  Do I go into the VLAN501 interface and do it from there?

These are 2 vlans from the Layer 3 switch

interface Vlan1
 description Bretland User LAN
 ip address 10.218.35.11 255.255.252.0
 ip access-group Deny_SWISS in
 standby 1 ip 10.218.35.0
 standby 1 priority 20
 standby 1 preempt
!

interface Vlan501
 description Local Area 0 Lan
 ip address 10.227.248.18 255.255.255.240
!

any advice is appreciated, K
0
ohareka
Asked:
ohareka
1 Solution
 
ciscoml320Commented:
hi
go to your vlan 501 interface and you can add the ospf cost there
the snippet below should do it.

int vlan 501
 ip ospf 10000

Open in new window

0
 
oharekaAuthor Commented:
Perfect.  Thanks for the help, Kevin
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now