Skip to contentSkip to conversation

How to save ip route 2 commands

LARTC Deepak Seshadri 2 participants 3 messages Feb 10, 2005

lore
Share & tools
lore
#0 lore raw

Hello List,

I configured a GRE tunnel between a Linux server & Cisco. I would like to save the commands somewhere so that next time the machine boots up the tunnel will be formed automatically. One way is to put the commands in rc.local file. But I want to know if there is a way to save these commands through the IP route 2 utility. Doesn't ip route 2 utility offer a way to save the configurations/commands? Does it save the settings in some files, may be in /etc or some directory?

Any help will be greatly appreciated.

Thank you,

Deepak Seshadri
Technical Support Engineer
Broadband Maritime, Inc.
61 Broadway, Suite 1905
New York, NY 10006
Tel: 1-212-405-1055
Fax: 1-212-214-0949
E-mail: [email protected]

This message is for the named person's use only. It may contain confidential, proprietary or legally privileged material. You, must not, directly or indirectly, disclose, distribute, forward or copy any part of this message or any of its attachments without the permission of Broadband Maritime Inc.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 9 lines · Deepak Seshadri

Hello List,

I configured a GRE tunnel between a Linux server & Cisco. I would like to save the commands somewhere so that next time the machine boots up the tunnel will be formed automatically. One way is to put the commands in rc.local file. But I want to know if there is a way to save these commands through the IP route 2 utility. Doesn't ip route 2 utility offer a way to save the configurations/commands? Does it save the settings in some files, may be in /etc or some directory?

iproute2 lets you save information by putting the commands in a text file, prefixing it with #!/bin/sh, and setting the executable bit.

Why do you seek an alternate method?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Deepak Seshadri
Quoted 11 lines · Deepak Seshadri
Quoted 3 lines

Hello List,

I configured a GRE tunnel between a Linux server & Cisco. I would like

to

Quoted 3 lines

save the commands somewhere so that next time the machine boots up the tunnel will be formed automatically. One way is to put the commands in rc.local file. But I want to know if there is a way to save these

commands

Quoted 1 line

through the IP route 2 utility. Doesn't ip route 2 utility offer a way

to

Quoted 8 lines
Quoted 1 line

save the configurations/commands? Does it save the settings in some

files,

Quoted 1 line

may be in /etc or some directory?

iproute2 lets you save information by putting the commands in a text file, prefixing it with #!/bin/sh, and setting the executable bit.

Why do you seek an alternate method?

Hello Jason,

I was wondering if ip route2 consults any settings file while the machine boots up.

For example, *iptables-save* saves the iptables commands to the /etc/sysconfig/iptables. Next time the machine boots up the firewall rules get loaded from this file. So along the same lines, I was wondering if ip route 2 did something to that effect.

Thank you for your input though.

Regards,
Deepak

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/