;ifconfig;
ifconfig用于配置網(wǎng)卡地址,改動后立即生效,但并不保存配置,下次啟動后失效 。;
#;ifconfig;-a;
lo0:;flags=849mtu;8232;
inet;127.0.0.1;netmask;ff000000;
hme0:;flags=863mtu;1500;
inet;172.16.255.2;netmask;ffff0000;broadcast;172.16.255.255;
ether;8:0:20:ee:11:51;
#ifconfig;hme0;172.16.3.3;netmask;255.255.255.0;
#ifconfig;–a;
lo0:;flags=849mtu;8232;
inet;127.0.0.1;netmask;ff000000;
hme0:;flags=863mtu;1500;
inet;172.16.3.3;netmask;ffffff00;broadcast;172.16.3.255;
ether;8:0:20:ee:11:51;
?;/etc/hosts;
想要永久更改配置,則要更改配置文件,以網(wǎng)卡hme0為例:;
#more;/etc/hostname.hme0;
Sunland;
#more;/etc/hosts;
127.0.0.1;;;;;;;localhost;
172.16.255.2;;;;Sunland;;;;;loghost;
#vi;/etc/hosts;
#more;/etc/hosts;
127.0.0.1;;;;;;;localhost;
172.16.3.3;;;;Sunland;;;;;loghost;
#more;/etc/netmasks;
#;
#;The;netmasks;file;associates;Internet;Protocol;(IP);address;
#;masks;with;IP;network;numbers.;
#;
#;;;;;;;network-number;;netmask;
#;
#;The;term;network-number;refers;to;a;number;obtained;from;the;Internet;Network;
#;Information;Center.;;Currently;this;number;is;restricted;to;being;a;class;
#;A,;B,;or;C;network;number.;;In;the;future;we;should;be;able;to;support;
#;arbitrary;network;numbers;per;the;Classless;Internet;Domain;Routing;
#;guidelines.;
#;
#;Both;the;network-number;and;the;netmasks;are;specified;in;
#;"decimal;dot";notation,;e.g:;
#;
#;;;;;;;128.32.0.0;255.255.255.0;
#vi;/etc/netmasks;
#more;/etc/netmasks;
#;
#;The;netmasks;file;associates;Internet;Protocol;(IP);address;
#;masks;with;IP;network;numbers.;
#;
#;;;;;;;network-number;;netmask;
#;
#;The;term;network-number;refers;to;a;number;obtained;from;the;Internet;Network;
#;Information;Center.;;Currently;this;number;is;restricted;to;being;a;class;
#;A,;B,;or;C;network;number.;;In;the;future;we;should;be;able;to;support;
#;arbitrary;network;numbers;per;the;Classless;Internet;Domain;Routing;
#;guidelines.;
#;
#;Both;the;network-number;and;the;netmasks;are;specified;in;
#;"decimal;dot";notation,;e.g:;
#;
#;;;;;;;128.32.0.0;255.255.255.0;
172.16.3.0;;255.255.255.0;
#reboot;
推薦閱讀
- Solaris Shell 與 Shell Script 簡介
- Solaris 網(wǎng)絡(luò)地址和掩碼
- 鮮李子如何保存
- Solaris如何在reboot后增加和改變系統(tǒng)硬件?
- Solaris format命令
- 電腦如何打印日歷
- Sun Solaris 用戶手冊 -- 二. PROM狀態(tài)命令與參數(shù)
- Sun Solaris 用戶手冊 -- 三.系統(tǒng)安裝
- 西瓜頭和尾如何區(qū)分
- pipe Solaris 管道及輸出入重導(dǎo)(redirection)
