linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5
生活随笔
收集整理的這篇文章主要介紹了
linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1】進(jìn)入根目錄
?[ling@localhost root]$ su root
?Password: (輸入密碼)
2】查看當(dāng)前網(wǎng)絡(luò)配置文件
輸入[root@localhost ~]# more
/etc/sysconfig/network-scripts/ifcfg-eth0?
??
3】?更改IP地址
?[root@localhost ~]#
ifconfig eth0 192.168.2.195 netmask 255.255.255.0
出現(xiàn)問(wèn)題:?bash: ifconfig: command not found
解決:[root@localhost ~]# whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
命令改為:[root@localhost ~]# /sbin/ifconfig eth0 192.168.2.195
netmask 255.255.255.0?
?
?
4】查看更改后的IP地址
5】獲取IP地址
XShell中新建,主機(jī)中填寫IP地址
6】用戶驗(yàn)證,填寫用戶賬號(hào)和密碼
7】連接成功
總結(jié)
以上是生活随笔為你收集整理的linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 聊一聊深度学习做寿命预测
- 下一篇: 顺丰快递下单接口