Linux 基础与应用教程 006(网络连接)

1.右键

那个电脑勾选enable networking

then配置文件信息,

thengateway 查看

then生效要重新启动小电脑!


2.用命令行临时配置IP

then [root@bogon ~]# ifconfig eth0:0 192.168.94.140 netmask 255.255.255.0 (配置自己想要的IP)

then 用windons run ping 192.168.94.140 看一下是否联通;

then service network restart(临时配置会被清空的);

 


3.永久配置:

then route add default gw 192.168.94.10 dev eth0(设置)

dev -n(查看)

This moment will nap, you will have a dream; but this moment study, you will interpret a dream.
原文地址:https://www.cnblogs.com/mawenqi-barry/p/8988908.html