This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
os_x [2014/02/11 09:46] – admin | os_x [2015/10/30 10:15] – admin | ||
---|---|---|---|
Line 131: | Line 131: | ||
- | ===== Router | + | ===== Route dauerhaft hinzufügen ===== |
- | Im Terminal das Verzeichnis öffnen: | + | ==== .plist Datei anlegen ==== |
- | cd /System/Library/StartupItems | + | In **/Library/LaunchDaemons** die Datei **static.route.plist** anlegen und folgendes eintragen: |
- | Ordner AddRoutes erstellen und öffnen: | + | < |
- | + | <?xml version=" | |
- | mkdir AddRoutes | + | <!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" |
- | cd AddRoutes | + | <plist version="1.0"> |
- | + | < | |
- | AddRoutes Datei | + | < |
- | + | < | |
- | nano -w AddRoutes | + | < |
- | + | < | |
- | erstellen mit folgendem Inhalt | + | < |
- | + | < | |
- | < | + | < |
- | #!/bin/sh | + | < |
- | + | < | |
- | # Set static routing tables | + | </ |
- | + | < | |
- | . /etc/rc.common | + | < |
- | + | < | |
- | StartService () | + | < |
- | { | + | </ |
- | if [ "${ADDROUTES:=-NO-}" = "-YES-" | + | </ |
- | ConsoleMessage " | + | |
- | sudo route -nv add 192.168.11.0 192.168.12.254 | + | |
- | fi | + | |
- | } | + | |
- | + | ||
- | StopService () | + | |
- | { | + | |
- | return 0 | + | |
- | } | + | |
- | + | ||
- | StopService () | + | |
- | { | + | |
- | return 0 | + | |
- | } | + | |
- | + | ||
- | RestartService () | + | |
- | { | + | |
- | return 0 | + | |
- | } | + | |
- | + | ||
- | RunService " | + | |
</ | </ | ||
- | |||
- | *.plist file erstellen: | ||
- | |||
- | nano -w StartupParameters.plist | ||
- | | ||
- | und folgenden Inhalt einfügen | ||
- | |||
- | < | ||
- | { | ||
- | Description = "Add static routing tables"; | ||
- | Provides = (" | ||
- | Requires = (" | ||
- | OrderPreference = " | ||
- | } | ||
- | </ | ||
- | |||
- | Überprüfung mit " |