Solaris11 手動配置靜態IP位址

2021-08-30 10:58:00 字數 1009 閱讀 2235

solaris11手動配置靜態ip位址方法

1、檢視網絡卡資訊:

root@solts01:~# netadm list -x

type profile state auxiliary state

ncp automatic online active

… …ncu:phys net0 online inte***ce/link is up

… …root@solts01:~# dladm show-phys

link media state speed duplex device

… …net0 ethernet up 1000 full e1000g0

2、建立網絡卡ip介面:

root@solts01:~# ipadm create-ip net0

root@solts01:~# ipadm create-addr -t static -a local=192.168.5.105/24 net0/v4

root@solts01:~# ipadm show-addr

addrobj type state addr

… …net0/v4 static ok 192.168.5.105/24

開啟root賬號ssh遠端

1、修改配置檔案:

root@solts01:~# grep -i rootlogin /etc/ssh/sshd_config

permitrootlogin yes

2、重啟ssh服務:

root@solts01:~# svcadm restart ssh

然後就可以直接通過xshell等遠端工具遠端了。

SSH遠端SOLARIS11時被拒絕

在虛擬機器中新安裝的solaris11,安裝過程中配置了靜態ip位址用以方便ssh連線,使用root使用者ssh連線時,密碼沒有錯,但總是提示密碼被拒絕,連線established 代表是通的,telnet ip果然通,但是ssh被拒絕,排除密碼錯誤的問題 剛設定的密碼 檢視剛安裝的系統中ssh服務...

Linux(centos7 8)手動配IP位址

root localhost cd etc sysconfig network scripts root localhost network scripts vim ifcfg ens33 指定網絡卡是通過dhcp動態獲得ip還是靜態配置 dhcp 動態獲得 none 靜態配置 自己手工配置 boo...

(9) 手動實現reverse函式

簡單介紹5種實現方法 1.中心思想 從第乙個開始,相近的兩兩互換,然後除去最後乙個存入空列表,遞迴後相加 lists z v o b a def fz ls lsn global i if len ls 1 return ls for i in range len ls 1 ls i ls i 1 ...