Solaris 10 基礎網路設定整理

來源:互聯網
上載者:User

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

推薦閱讀:

Solaris 11(x86)安裝後不能使用中文EUC的問題

Solaris 10/11 (x86)下使用VNC - Xvnc

Oralce Solaris 11 源碼安裝Qt 4.8.3

Solaris 11 安裝 Zabbix Agent

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.