Suche

 

Aktuelle Beiträge

Neues "Feature" im Captains...
Letzte Tage, beim Lesen meiner Blogroll, ging mir durch...
cptsalek - 4. Dez, 15:48
The story of stuff: Jetzt...
An einem der zurückliegenden 8. Dezember habe...
cptsalek - 4. Dez, 08:28
Das Leben ist gut
...so ganz ohne Windows. :-)
cptsalek - 2. Dez, 09:42
Vielen Dank für...
Vielen Dank für das Einstellen dieses Artikels! Endlich...
das Bäumchen (anonym) - 30. Nov, 12:34
HPV-Impfung
Ich mag naturbedingt ein skeptischer Mensch dem Kapital...
cptsalek - 29. Nov, 14:06

Credits

Knallgrau New Media Solutions - Web Agentur für neue Medien

powered by Antville powered by Helma


Creative Commons License

xml version of this page
xml version of this page (summary)
xml version of this page (with comments)

twoday.net AGB

Archiv

Juli 2008
Mo
Di
Mi
Do
Fr
Sa
So
 
 4 
 5 
 6 
11
12
13
14
15
17
19
20
21
24
25
26
27
29
31
 
 
 
 

Status

Online seit 1092 Tagen
Zuletzt aktualisiert: 4. Dez, 15:48

Counter & Co.

Egoload - Verträumter Idealist
Mein
Koordinaten auf der EgoMap:  93,2
100% Heidnisch

Locations of visitors to this page


Lilypie Expecting a baby Ticker

Mittwoch, 23. Juli 2008

Solaris "Hidden feature": /etc/inet/static_routes

On our sites some of our machines have a nice init-Script called /etc/init.d/setroutes, that sets additional routes needed for correct operation. I always wondered why Sun obviously did not have such a feature built into the Solaris. I can't remember that we've spoken about this issue during the "Solaris 10 for experienced SysAdmins" seminar.
I recently had enough and wondered if there would be any /lib/svc/method that contained the route command. And sure enough, net-init closes with the following lines:
 
#
# Read /etc/inet/static_routes and add each route.
#
if [ -f /etc/inet/static_routes ]; then
        echo "Adding persistent routes:"
        /usr/bin/egrep -v "^(#|$)" /etc/inet/static_routes | while read line; do
                /usr/sbin/route add $line
        done
fi

In other words: Create a file /etc/inet/static_routes, containing a route definition starting after the route add command. E.g. to add a network route, instead of using
# route add -net 192.168.111.0 192.168.111.1
open the part containing
-net 192.168.111.0 192.168.111.1
to /etc/inet/static_routes. And you're set.
 
This file came to my mind today after a colleague asked me today -- and two Sun Engineers afterwards.

Wichtiges/Interessantes aus anderen Blogs:

Netzfilter: Unbrauchbar und schädlich
<p>Sueddeutsche.de hat den Dresdner Informatik-Professor...

Twitter (was mache ich gerade?)

    User Status

    Du bist nicht angemeldet.

    ...wenn man trotzdem lacht
    Atari Mega ST
    Auf Arbeit
    Bloggen
    Bookmarks & Links
    BSD
    Bundeswehr
    CCC07
    Computing
    Datenschutz
    Fahrrad
    Fundsachen
    G8
    Garten
    Gentechnik
    Gesundheit
    ... weitere
    Profil
    Abmelden
    Weblog abonnieren