The Solaris underlying network configuration commands are recorded as follows:
1. Configure SSH to allow root login
Vi/etc/sshd/sshd_config
Permitrootlogin Yes
Reboot SSH Service
Svcadm Restart SSH
2. Network configuration
1 Configure 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 Solution
# MV Nsswitch.conf Nsswitch.bak
# MV Nsswitch.dns nsswitch.conf
Configuring DNS
# cat/etc/resolv.conf
NameServer 202.100.192.68
3. Solaris ping command
# ping-s Www.baidu.com
PING www.baidu.com:56 Data bytes
Bytes from 115.239.210.27:icmp_seq=0. time=122. Ms
Bytes from 115.239.210.27:icmp_seq=1. time=87.9 ms
Bytes from 115.239.210.27:icmp_seq=2. time=97.2 ms
CTRL + C Cancel
This article is from "Koumm Linux Technology blog" blog, please be sure to keep this source http://koumm.blog.51cto.com/703525/1263898
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/