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

  • 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 [110/42] via, 00:28:14, Vlan501
                                 [110/42] via, 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
 ip access-group Deny_SWISS in
 standby 1 ip
 standby 1 priority 20
 standby 1 preempt

interface Vlan501
 description Local Area 0 Lan
 ip address

any advice is appreciated, K
1 Solution
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

oharekaAuthor Commented:
Perfect.  Thanks for the help, Kevin

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