[leaf-user] Static route

2003-12-12 Thread Robert Sabine von Knobloch
Hallo LEAF World !

Can someone tell me where I should put a static route so that it survives a
reboot ?
I have a subnet in the internal network - all works fine with Shorewall 
masquerading but I am not familiar enough with this Linux to know the best
place to put my route add... staement.

Thanks,

Robert von Knobloch



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


RE: [leaf-user] Static route

2003-12-12 Thread Alex Rhomberg
 Can someone tell me where I should put a static route so that it
 survives a
 reboot ?
 I have a subnet in the internal network - all works fine with Shorewall 
 masquerading but I am not familiar enough with this Linux to know the best
 place to put my route add... staement.

You can put it in /etc/network/interfaces:
An example I use:
iface eth0 inet static
address 1.2.2.1
masklen 32
#   gateway 10.0.1.1
up ip addr add 10.0.1.2/24 dev eth0 scope link label eth0:isp
up ip route replace default via 10.0.1.1 dev eth0 src 1.2.2.1

This has a public interface on the LEAF box, but the gateway to the internet
is 10.0.1.1

- ALex



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Static route

2003-12-12 Thread Erich Titl
HI

At 15:14 12.12.2003 +0100, you wrote:
Hallo LEAF World !

Can someone tell me where I should put a static route so that it survives a
reboot ?
I have a subnet in the internal network - all works fine with Shorewall 
masquerading but I am not familiar enough with this Linux to know the best
place to put my route add... staement.
add it to  /etc/network/interfaces

similar to

# Step 2: configure  internal interface
# Default: eth1 / fixed IP = 192.168.1.254
#auto eth1
iface eth1 inet static
address 194.124.158.99
masklen 24
broadcast 194.124.158.255
up ip route add ...
HTH

Erich

THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Static route

2003-12-12 Thread bibinsa
[Robert  Sabine von Knobloch] a ecrit le 12/12/2003 15:14 :

Hallo LEAF World !

Can someone tell me where I should put a static route so that it survives a
reboot ?
I have a subnet in the internal network - all works fine with Shorewall 
masquerading but I am not familiar enough with this Linux to know the best
place to put my route add... staement.
Thanks,

Robert von Knobloch

 

look ak your /etc/network/interfaces file.
add your route at the end of the file like that for example : 
 up ip route add 192.168.140.0/24 via 192.168.147.3 || true

--
Bibinsa


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Static Route Setup for Bering Firewall

2003-09-29 Thread Erich Titl
Simon

At 17:11 26.09.2003, Simon Chalk wrote:
Hi All,

Has anyone setup Static routes on Bering 1.2?

I am trying to add the following to the /etc/network/interfaces file

up route -net 1.2.3.4 netmask 255.255.255.248 gw 4.5.6.7

When I do a ip route, I don't see the route above. I have also tried to add
a route using
ip route add  etc.. etc..


Maybe you should tell route what to do

like

ip route add to 1.2.3.0/24 dev eth1 metric 1

HTH
Erich
THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] Static Route Setup for Bering Firewall

2003-09-26 Thread Simon Chalk
Hi All,

Has anyone setup Static routes on Bering 1.2?

I am trying to add the following to the /etc/network/interfaces file

up route -net 1.2.3.4 netmask 255.255.255.248 gw 4.5.6.7


When I do a ip route, I don't see the route above. I have also tried to add
a route using

ip route add  etc.. etc..

but I am not sure of the exact syntax, since I get an error.

Please help

Regards,

Simon.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


RE: [leaf-user] Static Route Setup for Bering Firewall

2003-09-26 Thread Simon Chalk
Hi Erich,

Your syntax did not work for me.

I have since tried

ip route add 1.2.3.4 via 4.5.6.7

this works and I have added it to the Shorewall start up script. (Before
Shorewall Starts)

Regards,

Simon.

-Original Message-
From: Erich Titl [mailto:[EMAIL PROTECTED]
Sent: 26 September 2003 16:39
To: Simon Chalk; Leaf-User List
Subject: Re: [leaf-user] Static Route Setup for Bering Firewall


Simon

At 17:11 26.09.2003, Simon Chalk wrote:
Hi All,

Has anyone setup Static routes on Bering 1.2?

I am trying to add the following to the /etc/network/interfaces file

up route -net 1.2.3.4 netmask 255.255.255.248 gw 4.5.6.7


When I do a ip route, I don't see the route above. I have also tried to add
a route using

ip route add  etc.. etc..


Maybe you should tell route what to do

like

ip route add to 1.2.3.0/24 dev eth1 metric 1

HTH
Erich

THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Static Route Setup for Bering Firewall

2003-09-26 Thread Bibinsa
[Simon Chalk] a ecrit le 26/09/2003 17:11 :

Hi All,

Has anyone setup Static routes on Bering 1.2?

I am trying to add the following to the /etc/network/interfaces file

up route -net 1.2.3.4 netmask 255.255.255.248 gw 4.5.6.7

When I do a ip route, I don't see the route above. I have also tried to add
a route using
ip route add  etc.. etc..

but I am not sure of the exact syntax, since I get an error.

Please help

Regards,

Simon.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
 

Try this in your /etc/network/interfaces :

up ip route add 1.2.3.4/21 via 4.5.6.7 || true

--
Bibinsa


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Static Route Setup for Bering Firewall

2003-09-26 Thread leaf
Hello Simon you wrote :


 Hi All,
 
 Has anyone setup Static routes on Bering 1.2?
 I am trying to add the following to the /etc/network/interfaces file
 up route -net 1.2.3.4 netmask 255.255.255.248 gw 4.5.6.7
 
 
 When I do a ip route, I don't see the route above. I have also tried to add
 a route using
 
 ip route add  etc.. etc..
the netmask is transformed like this 
255.255.255.248 is 8   +8 +8 + 5 bit  or 29 bit


ip route add 1.2.3.4/29 via 4.5.6.7 

remember 4.5.6.7 should be reachable

otherwise it could be necessary to use
ip route add 1.2.3.4/29 via 5.5.5.5 via 4.5.6.7

put his line in the interfaces file after up

so 
up ip route add 1.2.3.4/29 via 4.5.6.7
 but I am not sure of the exact syntax, since I get an error.
 
Regards
eric  wolzak
member of the bering crew


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html