RE: [leaf-user] HOW TO ADD STATIC ROUTES TO BERING..

2002-08-09 Thread Bob Pocius

Someone who posted a reply earlier was right, in that seeing your routing
table would be helpful to others who are trying to solve your problem. 

When I first started playing with static routes in Bering, I found that
Bering was creating its own default routes based on the interfaces that were
defined. I cheated my way around this a little by adding a line near the end
of my /etc/init.d/network file that called a route script. The route script
began by flushing all existing routes, and then defining my own.  

Bob Pocius


From: Troy Aden [EMAIL PROTECTED] 
/mailarchive/message.php?msg_id=1925173
/mailarchive/message.php?msg_id=1925173 RE: HOW TO ADD STATIC ROUTES TO
BERING.. /mailarchive/message.php?msg_id=1925173  
2002-08-06 14:10 
 
I managed to get the static routes added. But still no joy. Here is
 what my interfaces file looks like.
 
SNIP
 # /etc/network/interfaces -- configuration file for LEAF network
 # J. Nilo, April 2002
 #
 # Loopback interface.
 auto lo
 iface lo inet loopback
 
 # Step 1: configure external interface
 # uncomment/adjust one of the following 4 options
 # Option 1.1 (default): eth0 / dynamic IP from pump/dhclient
 #auto eth0
 #iface eth0 inet dhcp
 #
 # Option 1.2: eth0 / Fixed IP (assumed to be 1.2.3.4). 
 #  (broadcast/gateway optional)
 auto eth0
 iface eth0 inet static  
address 192.168.141.1
masklen 24

 auto eth1
 iface eth1 inet static  
address 192.168.142.1
masklen 24

 auto eth2
 iface eth2 inet static  
address 192.168.143.1
masklen 24

 auto eth3
 iface eth3 inet static  
address 192.168.147.1
masklen 24
broadcast 192.168.147.255
gateway 192.168.147.4
 #
 #  
 up ip route add 192.168.140.0/24 via 192.168.147.3 |true
 up ip route add 192.168.144.0/24 via 192.168.147.2 |true
 up ip route add 192.168.145.0/24 via 192.168.147.2 |true
 up ip route add 192.168.146.0/24 via 192.168.147.2 |true
 #
END SNIP
 
I see that all my interfaces come up fine at boot. I do a ip addr
 and all my NICs are up. I do a ip route show and all my routes appear to
 be up as well. But something is still interfering with the routes because I
 can't ping to the servers on our .147 subnet. I have removed shorewall.lrp
 from the disk because this is not a firewall it is a router only. This is
 where I suspect the problem is. As I recall there is a router/firewall
 switch in Dachstein. Is there a command that I should be entering in the
 interfaces file to tell this box that it is a router? Why is this not
 working? 
A couple footnotes to this, I have removed shorewall.lrp and ADDED
 ifconfig.lrp and dhcrelay.lrp. I am receiving no errors on boot up so I
 suspect I am just missing a command somewhere. Can someone please help me
 out. (Yes I have read the interfaces manpage but I did not read anything
 that explains how to do this.)
 
 
Thanks in advance.
 
Troy
 
 



---
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] HOW TO ADD STATIC ROUTES TO BERING..

2002-08-01 Thread Jeff Newmiller

On Wed, 31 Jul 2002, Troy Aden wrote:

 Thanks for the link Kim. And thanks to all of you who replied to my post. I
 love the is list. It was helpful but I guess I was not entirely clear on
 what I need to know.

Well, as one of the others,_I_ didn't get it. :)

 Here is the situation.  I have a router that was built with Dachstein.
 I am wanting to upgrade it to Bering. The routes that were added to
 the Dachstein disro were added to the /etc/init.d/network They read as
 follows:

 IP ROUTE ADD 192.168.140.0/24 via 192.168.147.3
 IP ROUTE ADD 192.168.144.0/24 via 192.168.147.2
 IP ROUTE ADD 192.168.145.0/24 via 192.168.147.2
 IP ROUTE ADD 192.168.146.0/24 via 192.168.147.2
 
 What I need to know is where would I insert these into the Bering disro? I
 have seen examples that start the command with an up option. But then they
 say that I have to create a script in the map and then do a chmod on it to
 make it executable? There has got to be an easier way.

As I said, read the interfaces manpage. It says you can run any command
you want, and use the up option as many times as you want. While it
probably would be cleaner in the interfaces file to invoke it once on a
script, the following should work also:

---/etc/network/interfaces--
iface eth1 inet static
  address 192.168.147.1
  network 192.168.147.0
  netmask 255.255.255.0
  broadcast 192.168.147.0
  up route add -net 192.168.140.0/24 gw 192.168.147.3 || true
  up route add -net 192.168.144.0/24 gw 192.168.147.2 || true
  up route add -net 192.168.145.0/24 gw 192.168.147.2 || true
  up route add -net 192.168.146.0/24 gw 192.168.147.2 || true
  down route del -net 192.168.146.0/24 gw 192.168.147.2 || true
  down route del -net 192.168.145.0/24 gw 192.168.147.2 || true
  down route del -net 192.168.144.0/24 gw 192.168.147.2 || true
  down route del -net 192.168.140.0/24 gw 192.168.147.3 || true


 Since these routes do NOT include the dev option they are
 automatically applied to the first interface (eth0) right?

I think they are applied to the interface through which the specified
gatway is reached.

---
Jeff NewmillerThe .   .  Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...2k
---



---
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] HOW TO ADD STATIC ROUTES TO BERING..

2002-07-31 Thread Brad Fritz


On Tue, 30 Jul 2002 21:10:27 MDT Troy Aden wrote:

 I done a fair amount of digging and I can't find any documentation on haw to
 add static routes to Bering. Can anyone tell me how to do it or point me to
 the documentation. I am trying to add 4 static routes. 

Looks like Jeff and Kim have already given good answers.  To add a
third variant, you can also use the up option in the network
interfaces file to bring up additional routes for interfaces defined
there.  The leaf-user posting archived at
http://sourceforge.net/mailarchive/message.php?msg_id=1818740
gives an example.  It also touches on bringing them up via a
script in /etc/network/if-up.d .

--Brad



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

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] HOW TO ADD STATIC ROUTES TO BERING..

2002-07-30 Thread Jeff Newmiller

On Tue, 30 Jul 2002, Troy Aden wrote:

 I done a fair amount of digging and I can't find any documentation on haw to
 add static routes to Bering. Can anyone tell me how to do it or point me to
 the documentation. I am trying to add 4 static routes. 

Read the comments in /etc/network/interfaces.  You can learn more about
the format of this file in man 5 interfaces [1]

Something like 
---
auto eth0
iface eth0 inet static
   address 192.168.1.1
   masklen 24
   broadcast 192.168.1.255
auto eth1
iface eth1 inet static
   address 192.168.2.1
   masklen 24
   broadcast 192.168.2.255
auto eth2
iface eth2 inet static
   address 192.168.3.1
   masklen 24
   broadcast 192.168.3.255
auto eth3
iface eth3 inet static
   address 192.168.4.1
   masklen 24
   broadcast 192.168.4.255
---

ought to do it.

[1] http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/interfaces.5.gz

---
Jeff NewmillerThe .   .  Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...2k
---




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

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] HOW TO ADD STATIC ROUTES TO BERING..

2002-07-30 Thread kimoppalfens

http://leaf.sourceforge.net/devel/ericw/ip-syntax.php

This should help you figure it out.
If you need more help just give a yell.

Kim Oppalfens

-- Original Message --
From: Troy Aden [EMAIL PROTECTED]
To: Leaf-User (E-mail) [EMAIL PROTECTED]
Subject: [leaf-user] HOW TO ADD STATIC ROUTES TO BERING..
Date: Tue, 30 Jul 2002 21:10:27 -0600


I done a fair amount of digging and I can't find any documentation on haw
to
add static routes to Bering. Can anyone tell me how to do it or point me
to
the documentation. I am trying to add 4 static routes. 

Thanks in advance. 

   Troy


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

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



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31

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