08-31-2005
The system startup files are located in /etc/rc2.d. You can add a file to this directory with the routing entries you have made and each time the system boots, it will add the entries automatically.
I always use a filename that will appear at the bottom of the list in the /etc/rc2.d/directory: for example, "S99zed"
Create the file and using vi, make the following entries:
route add 192.168.1.0 -gateway 192.168.0.90
route add 192.168.200.0 -gateway 192.168.0.200
Each time the system boots it will read the S99zed file and add the routes.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need some help adding routes in sco.
I am using SCO Openserver 5.0.4.
Basically I have 2 gateways here. The first is 10.15.1.1 and allows me access to the rest of the computers in the office and in other offices.
The other gateway is 10.15.10.2 and is the sonicwall that will allow access... (3 Replies)
Discussion started by: cstovall
3 Replies
2. Debian
Ok, I made changes to my routing tables..... which file do I modify to make the routes initialize correctly when the machine boots up? I work with all flavours of Unix/Linux... but this is an older box...
Linux, Release 2.2.14-5.0.
I did a grep for the default route in /etc, but didnt find... (2 Replies)
Discussion started by: djsal
2 Replies
3. AIX
Hi All,
I have a AIX server running v5.2 and its having multiple default routes configured to two seperate gateway.
Here's the output of -- netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups
Route Tree for Protocol Family 2... (2 Replies)
Discussion started by: rramanuj
2 Replies
4. Solaris
Hi there
When adding a route (or indeed deleting a route) which file is amended ? I am moving a box from one network to another and when it starts up it tries to connect run 'add net 192.x.x.x' etc etc ...but i dont want it to do that
where do I edit these route additions
cheers (5 Replies)
Discussion started by: hcclnoodles
5 Replies
5. IP Networking
Hi,
How can i delete the following routes on my OpenBSD 4.1 system?
# route -n show (including only relevant ipv6-routes)
Internet6:
Destination Gateway Flags Refs Use Mtu Interface
::/104 ::1 UGRS 1 0 ... (1 Reply)
Discussion started by: phalcos
1 Replies
6. Solaris
Hey Gurus.
My routes add using route add , are lost , after reboot.....where caould i save this routes a dont lost them ? Sun Solaris 10 is my OS.
Thanks in advance,
AGADEA. Unix ADMIN (3 Replies)
Discussion started by: aggadtech08
3 Replies
7. Solaris
Hi,
I need help to add new route:
10.252.0.138, GW 10.252.0.129 to e1000g1
and
10.252.0.10, GW 10.252.0.1 to e1000g2
tnx (4 Replies)
Discussion started by: mehrdad68
4 Replies
8. IP Networking
I would really appreciate some help with HP UX's Network Routes.
Basically, what I want to do is, I would want a system with global ip (eg: 202.144.138.122) to ping/access my HP-UX server which is with private IP address (192.168.1.23). I have all the routers/switches in between properly route... (2 Replies)
Discussion started by: damchey
2 Replies
9. SCO
Hi all,
n00b here. We currently have 3 SCO 5.0.5 machines in our network that run a mission management system.
Our internal network was always a 10.0.0.0 network and the machines worked fine.
Our company is going through a network upgrade for VoIP and some of our departments are now on... (5 Replies)
Discussion started by: gibson_hg
5 Replies
10. SCO
Hi,
Just a question of thought. Why one needs to add static routes on Unix servers ? If I had ethernet card, it already has the settings for gateway for incoming and outgoing requests. We donot have to explicitly set the route it should take. Then what is the use... (3 Replies)
Discussion started by: dextergenious
3 Replies
LEARN ABOUT X11R4
tc-route
Route classifier in tc(8) Linux Route classifier in tc(8)
NAME
route - route traffic control filter
SYNOPSIS
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_SPEC ]
DESCRIPTION
Match packets based on routing table entries. This filter centers around the possibility to assign a realm to routing table entries. For
any packet to be classified by this filter, a routing table lookup is performed and the returned realm is used to decide on whether the
packet is a match or not.
OPTIONS
action ACTION_SPEC
Apply an action from the generic actions framework on matching packets.
classid CLASSID
Push matching packets into the class identified by CLASSID.
from REALM
fromif TAG
Perform source route lookups. TAG is the name of an interface which must be present on the system at the time of tc invocation.
to REALM
Match if normal (i.e., destination) routing returns the given REALM.
EXAMPLES
Consider the subnet 192.168.2.0/24 being attached to eth0:
ip route add 192.168.2.0/24 dev eth0 realm 2
The following route filter will then match packets from that subnet:
tc filter add ... route from 2 classid 1:2
and pass packets on to class 1:2.
NOTES
Due to implementation details, realm values must be in a range from 0 to 255, inclusive. Alternatively, a verbose name defined in
/etc/iproute2/rt_realms may be given instead.
SEE ALSO
tc(8), ip-route(8)
iproute2 21 Oct 2015 Route classifier in tc(8)