Set the Default Route on Solaris הגדר את מסלול ברירת המחדל ב-Solaris
Setting the default route on Solaris is easy. בקביעת התוואי ברירת המחדל ב-Solaris קל. If you are trying to just set the route temporarily you can use the route command: אם אתה מנסה רק לקבוע את התוואי באופן זמני אתה יכול להשתמש בפקודה המסלול:
route add default <ipaddress> מסלול ברירת המחדל להוסיף <ipaddress>
Example: דוגמה:
route add default 192.168.1.1 תוואי להוסיף מחדל 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. אם אתה רוצה להיות התוואי התעקש בעת אתחול מחדש של המערכת, תצטרך להגדיר את המסלול ב etc / קובץ / defaultrouter.
/etc/defaultrouter etc / defaultrouter
Example: דוגמה:
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. שים לב כי Solaris 10 כוללת "אזורי" כי זה יכול גם להגדיר אותה התנהגות. There will be more articles covering this in the future. יהיו עוד מאמרים כיסוי זה בעתיד.

Daily Email Updates שערי עדכונים בדוא"ל
You can get our how-to articles in your inbox each day for free. אתה יכול לקבל כמה שלנו למאמרים לתיבת הדואר שלך בכל יום בחינם. Just enter your name and email below: פשוט להזין את שם ואת הדוא"ל שלך להלן:



great article. מאמר נהדר. solved one of my problems in my first days on solaris נפתרה אחת הבעיות שלי בימים הראשונים שלי ב Solaris
thank you GEEK תודה GEEK 