![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 72
kuang2020
这个作者很懒,什么都没留下…
展开
-
rathat网络配置
Linux 的网络配置基本上是通过修改几个配置文件来实现的,虽然也可以用ifconfig来设置IP,用route来配置默认网关,用hostname来配置主机名,但是重启后会丢失。 下面是相关的配置文件: /ect/hosts 配置主机名和IP地址的对应,对本机提供解析 /etc/resolv.conf 配置域名(在hosts内解析不转载 2017-05-18 23:53:19 · 798 阅读 · 0 评论 -
linux基本命令
IP配置、网关配置暂时:ifconfig eth0 192.168.1.10 netmask255.255.255.0 //配置IP地址ifconfig eth0 up |down //激活,关闭设备eth0route add default gw192.168.1.1原创 2017-05-18 23:57:07 · 136 阅读 · 0 评论