码迷,mamicode.com
首页 > 系统相关 > 详细

linux网络配置

时间:2018-11-02 20:32:58      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:xshell   通过   51cto   ade   water   sha   col   网络服务   ifconfig   

linux网络配置

查看当前的网络配置:ifconfig
1.临时配置一个IP配置:ifconfig eth0 1.1.1.1 netmask 255.255.255.0
2.配置永久的IP地址:
运行setup 命令
技术分享图片
[root@dong ~]# service network restart 重启网络服务
注:每次修改完配置文件后,都要通过重启网络服务才能生效。

在xshell中新建连接

技术分享图片

2018年11月2日

linux网络配置

标签:xshell   通过   51cto   ade   water   sha   col   网络服务   ifconfig   

原文地址:http://blog.51cto.com/8450442/2312367

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!