linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5
生活随笔
收集整理的這篇文章主要介紹了
linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1】進入根目錄
?[ling@localhost root]$ su root
?Password: (輸入密碼)
2】查看當前網絡配置文件
輸入[root@localhost ~]# more
/etc/sysconfig/network-scripts/ifcfg-eth0?
??
3】?更改IP地址
?[root@localhost ~]#
ifconfig eth0 192.168.2.195 netmask 255.255.255.0
出現問題:?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中新建,主機中填寫IP地址
6】用戶驗證,填寫用戶賬號和密碼
7】連接成功
總結
以上是生活随笔為你收集整理的linux修改ip配置文件路径,Linux系统更改IP地址及连接XShell5的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 聊一聊深度学习做寿命预测
- 下一篇: linux 其他常用命令