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?
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.
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.
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?
That firmware level is really old. You might consider updating, the newer firmware may add in that pipe functionality.
Issuing the show run command will provide you with the full config, and then you can copy just the part you want.
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?
ip route SUBNET ^ MASK ^ NEXT HOP ^ PREFERENCE?
ip route 10.10.10.0 255.255.255.0 172.18.15.199 20
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.
ip route 22.214.171.124 255.255.255.0 126.96.36.199 5
ip route 188.8.131.52 255.255.255.0 184.108.40.206 6
ip route 220.127.116.11 255.255.255.0 18.104.22.168 7
Mane the need changes and then paste into the CLI
ip route 22.214.171.124 255.255.255.0 126.96.36.199 10
ip route 188.8.131.52 255.255.255.0 184.108.40.206 20
ip route 220.127.116.11 255.255.255.0 18.104.22.168 30
The new commands will override the current config lines.