How to modify the network card IP --- Solaris (I tested, no problem)

zhaozj2021-02-16  68

Configure network parameters.

(1) Construction of the new file /etc/hostname.rtls0, write on the host name.

(2) New or modify the / etc / netmasks file, write subnet mask, such as: 192.168.0.5 255.255.255.0.

(3) Modify the / etc / hosts file, write on the IP address corresponding to the host name.

(4) New file / etc / default, enter the gateway IP address, such as: 192.168.0.1.

(5) New file /etc/resolv.conf, write the IP address of the DNS server. Such as: Name Server 192.168.0.254.

(6) Modify the /etc/nsswitch.conf file, will contain "Hosts:" to: Hosts: Files DNS

Note: The parameters configured by "ifconfig rtls0 192.168.0.5 netmask 255.255.255.0 up" are temporary, and the system will fail after the system is restarted.

转载请注明原文地址:https://www.9cbs.com/read-16643.html

New Post(0)