The Command record for Solaris basic network configuration is as follows:
1. Configure ssh to allow root login
Vi/etc/sshd/sshd_config
PermitRootLogin yes
Restart the ssh service
Svcadm restart ssh
2. Network Configuration
1) configure the IP address and Host Name
# Vi/etc/hosts
#
: 1 localhost
127.0.0.1 localhost
192.168.50.200 vmtest loghost
2) configure the Host Name
# Cat/etc/nodename
Vmtest
3) configure the subnet mask.
# Cat/etc/netmasks
192.168.50.0 255.255.255.0
4) configure the Gateway
# Cat/etc/defaultrouter
192.168.50.2
5) Configure DNS resolution
# Mv nsswitch. conf nsswitch. bak
# Mv nsswitch. dns nsswitch. conf
Configure DNS
# Cat/etc/resolv. conf
Nameserver 202.100.192.68
3. solaris PING command
# Ping-s www.bkjia.com
PING www.bkjia.com: 56 data bytes
64 bytes from 115.239.210.27: icmp_seq = 0. time = 122. MS
64 bytes from 115.239.210.27: icmp_seq = 1. time = 87.9 MS
64 bytes from 115.239.210.27: icmp_seq = 2. time = 97.2 MS
Ctrl + c cancel
Recommended reading:
Chinese EUC cannot be used after Solaris 11 (x86) is installed
Use VNC-Xvnc in Solaris 10/11 (x86)
Oralce Solaris 11 source code installation Qt 4.8.3
Install Zabbix Agent on Solaris 11