Set the Default Route on Solaris Set Default par Solaris Route
Setting the default route on Solaris is easy. Setting default maršrutā Solaris ir vienkārši. If you are trying to just set the route temporarily you can use the route command: Ja jūs mēģināt tikai noteikts maršruts pagaidām varat izmantot maršrutu komandu:
route add default <ipaddress> maršruts pievienot default <ipaddress>
Example: Piemērs:
route add default 192.168.1.1 maršruts pievienot default 192.168.1.1
If you want the route to be persisted when you reboot the system, you will need to set the route in the /etc/defaultrouter file. Ja jūs vēlaties ceļš, kas pastāvēja, kad pārstartēt sistēmu, Jums būs nepieciešams noteikt maršrutu / etc / defaultrouter failu.
/etc/defaultrouter / etc / defaultrouter
Example: Piemērs:
echo 192.168.1.1 > /etc/defaultrouter echo 192.168.1.1> / etc / defaultrouter
Note that Solaris 10 includes “zones” that can also configure this same behavior. Ņemiet vērā, ka Solaris 10 attiecas uz "zonu", kas arī var konfigurēt šo pašu uzvedību. There will be more articles covering this in the future. Būs vairāk rakstu par to nākotnē.

Daily Email Updates Daily Email Updates
You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:



great article. liels raksts. solved one of my problems in my first days on solaris atrisināt viena no manām problēmām manas pirmās dienas Solaris
thank you GEEK paldies Geek 