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 Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.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

Reply via email to