preload preload preload preload

Ajouter une route permanente sur MacOS


Le mercredi 09 mars 2011 par madpellzo MacOS 27 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.

  • Avatar Gravatar
     bonus freebet agen judi Online
     #18 Le 16 juillet 2018

    Good day! Do you know if they make any plugins to protect against hackers?
    I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?

  • Avatar Gravatar
     bandarqq
     #19 Le 26 juillet 2018

    This article will assist the internet visitors for setting up new website
    or even a weblog from start to end.

  • Avatar Gravatar
     bandarqq
     #20 Le 31 juillet 2018

    Awesome post.

  • Avatar Gravatar
     qq Online
     #21 Le 31 juillet 2018

    Appreciate this post. Let me try it out.

  • Avatar Gravatar
     togel singapore hari Ini
     #22 Le 31 juillet 2018

    You can definitely see your expertise within the article you write.

    The world hopes for even more passionate writers such as
    you who aren't afraid to say how they believe. At all times go after your heart.

  • Avatar Gravatar
     Bandar Poker
     #23 Le 01 août 2018

    Pretty element of content. I just stumbled upon your web
    site and in accession capital to assert that
    I get actually loved account your weblog posts.
    Anyway I'll be subscribing for your feeds or even I achievement you get
    entry to consistently quickly.

  • Avatar Gravatar
     Jasa Pbn
     #24 Le 06 août 2018

    Jasa Backlink bersama backlink PBN dan SEO bisa menunjang menmbahkan rentetan situs kamu bersama
    cepat
    seandainya anda pusing merangking web jikalau kamu binggung menmbahkan merek business anda atau bila kamu galau dan telah khatam keluar biaya yang banyak
    bagi optimasi website kamu maka disaat ini, kamu berada di web yg
    serasi ana berharap supaya kita berjodoh dan memperoleh rejeki buat
    merakit dengan karena rejeki itu berawal awal sebuah jalinan yg baik tanpa motivasi memberatkan satu dgn yang lainnya.


    Sponduu Indonesia premium digital marketing partner Anda
    Jasa backlink SEO berkwalitas dgn PBN (Private Blog
    Network) buat optimasi situs bersama aman, permanen dan pedoman layanan jasa
    iklan google adwords yg di lakukan oleh Sponduu Indonesia buat menaikan urutan atau optimalkan branding perusahaan anda di search engine, dengan pengalaman yg telah matang
    dan tidak sedikit jalankan bersekolah perkara dalam mencari susunan yg baik dan halal guna tiap-tiap pengguna telah menghadirkan saya juga sebagai pengganti yang serasi bagi kamu Tentu telah ratusan pelanggan yg termakbul saya optimasi dan puluhan klien baru tiap-tiap bulan nya,
    mereka pilih hamba bagi mempermudah dan menmbahkan peringkat web mereka di search engine tidak dengan repot.

  • Avatar Gravatar
     situs Poker Online
     #25 Le 07 août 2018

    I beliеve ѡhat you pⲟsted was very reаsonable.

    But, think on this, sᥙpposе you wrote a catchier title?
    I am not saying your informatiօn is not good., however suppose yߋu aɗded a headline that makes
    people want more? I mean Аjouter une route permanente sur MacOS - Maɗpellzo is kinda
    vanilla. You ought to glance at Yahoo's home page
    and see how they create post titlеs tо ցrab viewers interеsted.

    Үou mifht try aⅾding a ѵideo or a pictuгe or two to get ⲣerople interested about
    evеrything'νe written. Just my opinion, it might make your blog a
    little lіveⅼier.

  • Avatar Gravatar
     dominoqq
     #26 Le 09 août 2018

    I just could not leave your website before suggesting that I extremely loved the standard info a person supply in your guests?
    Is gonna be back continuously in order to inspect new posts

  • Avatar Gravatar
     Situs dominobet online
     #27 Le 12 août 2018

    Hello excellent website! Does running a blog like this take
    a massive amount work? I've no understanding of coding but I was hoping to
    start my own blog soon. Anyway, should you have any ideas or techniques for new blog owners please share.
    I know this is off topic however I simply needed to ask.
    Thank you!

  • Ecrire un commentaire








    Quelle est la quatrième lettre du mot ncrkv ?