Start a Conversation

Unsolved

This post is more than 5 years old

T

1956

July 17th, 2017 08:00

Powerconnect 6248 Route Preference

I have about 8 or 9 static routes configured all with preference 1 in my powerconnect 6248. I want to change all of them at once to like 10 or 20 so that I can at least have some wiggle room to add some one off preferred routes.

Is there a command I can run that will change all of these routes at once to lets say 20?

5 Practitioner

 • 

274.2K Posts

July 17th, 2017 11:00

That will show you the routes in place, but it will not output it in a manner in which you can easily copy and paste. Try this command out # show run | include route.

5 Practitioner

 • 

274.2K Posts

July 17th, 2017 11:00

I don't believe there is a command that will change preference of all the static routes. The quickest method I have used, is to copy the current static routes, modify the metrics in a text editor, and then copy/paste the new commands into the switch.

29 Posts

July 17th, 2017 11:00

what command can I run to show the statics routes in the cli?enable ... show ip route?

29 Posts

July 17th, 2017 11:00

that doesnt work

i typed enable

then show running-config | include route

says "invalid input"

5 Practitioner

 • 

274.2K Posts

July 17th, 2017 12:00

Interesting, well if that is not working, then you may need to just issue the command # show run, and then copy the pertinent route lines from the full config. What firmware is the switch on?

29 Posts

July 17th, 2017 12:00

2.2.0.3

5 Practitioner

 • 

274.2K Posts

July 17th, 2017 13:00

That firmware level is really old. You might consider updating, the newer firmware may add in that pipe functionality.

http://dell.to/2tyE9CB

Issuing the show run command will provide you with the full config, and then you can copy just the part you want.

29 Posts

July 17th, 2017 14:00

I have the list of all the routes in the show run

How do I set it up to be reconfigured with a higher metric?

enable

config

ip route SUBNET ^ MASK ^ NEXT HOP ^ PREFERENCE?

EX.

ip route 10.10.10.0 255.255.255.0 172.18.15.199 20

Thanks

5 Practitioner

 • 

274.2K Posts

July 18th, 2017 06:00

Yesterday I did not have access to a 6248, so I was testing the show commands on a 7048. This morning I tested the include syntax on a 6248, and sure enough it was not available. Sorry for the misinformation on that command.

Once you have the list of routes, simply issue the commands again with the new preferences.

Example:

Old:
ip route 20.20.20.0 255.255.255.0 40.40.40.1 5
ip route 30.30.30.0 255.255.255.0 40.40.40.1 6
ip route 50.50.50.0 255.255.255.0 40.40.40.1 7

Mane the need changes and then paste into the CLI

ip route 20.20.20.0 255.255.255.0 40.40.40.1 10
ip route 30.30.30.0 255.255.255.0 40.40.40.1 20
ip route 50.50.50.0 255.255.255.0 40.40.40.1 30

The new commands will override the current config lines.

No Events found!

Top