preload preload preload preload

Ajouter une route permanente sur MacOS


Le mercredi 09 mars 2011 par madpellzo MacOS 17 commentaires

Cette article explique comment ajouter une route statique à une machine Mac et faire en sorte que cette route soit pris en compte à chaque redémarrage

Les différentes actions sont à exécuter en tant qur root (sudo su - )

Ce placer sous /Library/StartupItems

# cd /Library/StartupItems

# mkdir AddRoutes

# cd AddRoutes

Créer le fichier "AddRoutes" qui contient

#!/bin/sh

# Set static routing tables
. /etc/rc.common

StartService ()
{
ConsoleMessage "Adding Static Routing Tables"
route add -net 192.168.1.0 192.168.3.254
route add -net 192.168.2.0 192.168.3.254
}

StopService ()
{
return 0
}

RestartService ()
{
return 0
}

RunService "$1"

Créer un fichier "StartupParameters.plist" qui contient :

{
Description = "Add static routing tables";
Provides = ("AddRoutes");
Requires = ("Network");
OrderPreference = "None";
}

Rendre exécutable ces 2 fichiers :

# chmod 755 AddRoutes StartupParameters.plist

Rebooter votre Mac, les routes seront rajoutées automatiquement.

Mots clés : macos, route

  • Commentaires

  • Avatar Gravatar
     Tangkas Online
     #1 Le 23 novembre 2017

    Nice answers in return of this question with solid arguments and describing everything regarding that.

  • Avatar Gravatar
     PIALADOMINOBET.COM
     #2 Le 15 décembre 2017

    I'm extremely impressed with your writing skills as well as with the layout on your weblog.
    Is this a paid theme or did you modify it yourself?
    Either way keep up the excellent quality writing, it's rare
    to see a great blog like this one these days.

  • Avatar Gravatar
     bandar togel
     #3 Le 30 décembre 2017

    Hi there! Quick question that's completely off topic. Do you know how to make your
    site mobile friendly? My blog looks weird when browsing from my iphone.
    I'm trying to find a theme or plugin that might be able to correct this issue.
    If you have any recommendations, please share. Appreciate it!

  • Avatar Gravatar
     00 € instead of 3.677
     #4 Le 24 janvier 2018

    It's hard to come by experienced people in this particular subject, however, you sound like you know what you're
    talking about! Thanks

  • Avatar Gravatar
     00 € instead of 3.677
     #5 Le 24 janvier 2018

    It's hard to come by experienced people in this particular subject, however, you sound like you know what you're
    talking about! Thanks

  • Avatar Gravatar
     00 € instead of 3.677
     #6 Le 24 janvier 2018

    It's hard to come by experienced people in this particular subject, however, you sound like you know what you're
    talking about! Thanks

  • Avatar Gravatar
     Click This
     #7 Le 16 février 2018

    Appreciate it for this post, I am a big big fan of this web site would like to continue updated.

  • Avatar Gravatar
     bus Pariwisata bagus
     #8 Le 03 mars 2018

    You actually make it seem really easy along wjth your presentgation however
    I to fund this matter to be actually something which I think I'd by no means understand.
    It sort of feels too complex and extremely extensive for me.
    I am looking forward ffor yourr subsequent put up, I'll
    attempt to get the hang of it!

  • Avatar Gravatar
     Lila
     #9 Le 06 avril 2018

    I am ѕurе this post has touched all the internet users, its reaⅼly really good paragrаph on building
    uр neԝ blog.

  • Avatar Gravatar
     High quality flutes for ambitious beginners at attractive prizes - Musical-Instruments.Online
     #10 Le 07 avril 2018

    Very great post. I just stumbled upon your blog and wished to mention that I've really loved browsing your weblog posts.
    After all I'll be subscribing for your feed and
    I am hoping you write once more soon!

  • Avatar Gravatar
     professional quality brass instruments? Look at Musical-Instruments.Online!
     #11 Le 09 avril 2018

    If some one wishes expert view concerning blogging then i suggest him/her to pay a visit this web site, Keep up
    the pleasant work.

  • Avatar Gravatar
     Eine STOMVI 5381 B-Trompete MASTER kaufen Sie am Besten bei Musical-Instruments.Online
     #12 Le 20 avril 2018

    Hey there! This post couldn't be written any better! Reading through this post reminds me of my previous room mate!
    He always kept talking about this. I will forward
    this page to him. Fairly certain he will have a good read.
    Thanks for sharing!

  • Avatar Gravatar
     Poker online
     #13 Le 27 avril 2018

    Aɗmiring thee persistence you put into your site and Ԁetailed information you provide.
    It's nice to come across a bⅼog every once in a while that isn't the same outdated гehаshed material.

    Excellent read! I've saved yоur site and I'm aԀding yοur
    RSS feeds to myy Google аccount.

  • Avatar Gravatar
     livescore terbaru
     #14 Le 03 mai 2018

    Іnspirіng quest there. What hapρenhеd after? Take care!

  • Avatar Gravatar
     Bandar Judi Online Terpercaya
     #15 Le 08 juin 2018

    I think this is among the most vital information for
    me. And i am glad reading your article. But should remark on few general things, The
    web site style is ideal, the articles is really excellent :
    D. Good job, cheers

  • Avatar Gravatar
     Domino99
     #16 Le 08 juin 2018

    I know this website gives quality depending articles and other information, is there any other site
    which provides such things in quality?

  • Avatar Gravatar
     sbobet
     #17 Le 18 juin 2018

    This piece of writing will help the internet people for building up
    new blog or even a blog from start to end.

  • Ecrire un commentaire








    Quelle est la troisième lettre du mot ewhu ?