网络配置生效的问题?
Wikipedia,自由的百科全书
| 配置项 | 临时使用重启失效 | 永久生效需要重启 |
|---|---|---|
| 主机名 | hostname <new name> 不要在Window(CDE, JDS)界面中使用 | /etc/nodename /etc/hostname.<Interface> /etc/inet/hosts |
| IP地址 | ifconfig <Interface> plumb ifconfig <Interface> <IP> up | /etc/inet/hosts |
| 网络掩码 | ifconfig <Interface> <netmask> up | /etc/netmasks |
| Gateway网关 | route add default <IP Gateway> | /etc/defaultrouter |
| DHCP 客户端 | ifconfig <Interface> plumb ifconfig <Interface> dhcp start | touch /etc/hostname.<Interface> touch /etc/dhcp.<Interface> |
| Domain 域名 | domainname <yourdomain.com> | echo <yourdomain.com> > /etc/defaultdomain |
