Can anyone help?

Amida

Expert Member
Joined
Feb 7, 2007
Messages
1,318
Reaction score
0
I'm creating a table and it looks like this:

ip add route 17.255.248.0 255.255.254.0 interface wanlink2
ip add route 32.106.152.0 255.255.255.0 interface wanlink2
ip add route 32.106.153.0 255.255.255.0 interface wanlink2
ip add route 32.107.9.0 255.255.255.0 interface wanlink2
ip add route 32.238.152.0 255.255.255.0 interface wanlink2

I need to add a different name to the route so it looks like this:

ip add route a1 17.255.248.0 255.255.254.0 interface wanlink2
ip add routeg7 32.106.152.0 255.255.255.0 interface wanlink2

Does anyone know how I can do this automatically without typing it all out?

Coz there is over a thousand I have to do.
 
find and replace in notepad can help you to.
find: route
replace: route g7

The problems was they all had to be different but our programmer in the office wrote me a little app that did it for me. Very cool of him!!
 
Top
Sign up to the MyBroadband newsletter
X