Solaris 基础网络配置命令记录如下:
1. 配置ssh允许root登录
vi /etc/sshd/sshd_config
PermitRootLogin yes
重启ssh服务
svcadm restart ssh
2. 网络配置
1) 配置IP地址及主机名
# vi /etc/hosts
#
::1 localhost
127.0.0.1 localhost
192.168.50.200 vmtest loghost
2)配置主机名
# cat /etc/nodename
vmtest
3) 配置子网掩码
# cat /etc/netmasks
192.168.50.0 255.255.255.0
4) 配置网关
# cat /etc/defaultrouter
192.168.50.2
5) 配置DNS解
# mv nsswitch.conf nsswitch.bak
# mv nsswitch.dns nsswitch.conf
配置DNS
# cat /etc/resolv.conf
nameserver 202.100.192.68
3. solaris PING命令
# ping -s www.linuxidc.com
PING www.linuxidc.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 取消
推荐阅读:
Solaris 11(x86)安装后不能使用中文EUC的问题 http://www.linuxidc.com/Linux/2012-10/71786.htm
Solaris 10/11 (x86)下使用VNC – Xvnc http://www.linuxidc.com/Linux/2012-10/71787.htm
Oralce Solaris 11 源码安装Qt 4.8.3 http://www.linuxidc.com/Linux/2013-03/81440.htm
Solaris 11 安装 Zabbix Agent http://www.linuxidc.com/Linux/2013-07/87701.htm