歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Solaris 10 基礎網絡配置整理

Solaris 10 基礎網絡配置整理

日期:2017/2/28 14:44:26   编辑:Linux教程

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 取消

Copyright © Linux教程網 All Rights Reserved