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

Reply via email to