网络参数设定使用的指令 ifconfig :查询、设定网络卡与 IP 网域等相关参数;ifup, ifdown:这两个档案是 script,透过更简单的方式来启动网络接口;route :查询、设定路由表 (route table)ip :复合式的指令, 可以直接修改上述提到的功能; [root@ww ...
分类:
系统相关 时间:
2016-09-08 18:19:01
阅读次数:
177
2-3:ifconfig只能查看到网卡的IP/广播地址/掩码/MAC地址,但是无法查看到网关地址和DNS地址;禁用/启用网卡ifdown[网卡设备名]//禁用网卡;ifup[网卡设备名]//启用网卡;netstat[选项]①-t:列出TCP协议端口;②-u:列出UDP协议端口;③-n:使用IP地址和端口号,而不使用域名和..
分类:
系统相关 时间:
2016-08-30 23:01:52
阅读次数:
230
故障说明: 在克隆几台虚拟机,发现启动后不能配置IP地址等信息,使用linux命令: “ifup eth0”也不能激活网卡, 而在使用"service network restart",出现错误: Error:No suitable device found: no device found for ...
分类:
其他好文 时间:
2016-07-14 03:13:52
阅读次数:
131
故障说明: 在克隆几台虚拟机,发现启动后不能配置IP地址等信息,使用linux命令: “ifup eth0”也不能激活网卡, 而在使用"service network restart",出现错误: Error:No suitable device found: no device found for ...
分类:
其他好文 时间:
2016-07-14 03:00:23
阅读次数:
139
查看网络状态命令 ifconfig 启动eth0网卡 ifup eth0 可以单独查看某一块网卡的信息 ifconfig eth0 修改网卡IP地址,Linux所有设备都是以文件存在的,我们要找到网卡的配置文件,Linux默认网卡配置文件在/etc/sysconfig/network-scripts ...
分类:
系统相关 时间:
2016-07-09 18:02:42
阅读次数:
254
一、简单知识1.命令积累:ifup eth0 //启动网卡ifdown etho //关闭网卡route -n //查看网关route del default gw 10.0.0.244 //删除网关,gw 代表网关 add代表添加网关 2.linux中为什么配置文件都需要重启生效?防止配置出错把所 ...
分类:
其他好文 时间:
2016-06-29 06:32:40
阅读次数:
298
1. 找到文件并作如下修改:vim /etc/network/interfaces修改如下部分:# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbackauto eth0iface eth0 ine ...
分类:
系统相关 时间:
2016-06-13 19:02:05
阅读次数:
635
#================MYSQL============================= [root@localhost Desktop]# /sbin/ifup eth0[root@localhost Desktop]# service network restart [root@l... ...
分类:
数据库 时间:
2016-05-29 23:06:50
阅读次数:
447
[root@localhost Desktop]# /sbin/ifup eth0[root@localhost Desktop]# service network restart [root@localhost ~]# rpm -qa | grep mysqlmysql-libs-5.1.71-1... ...
分类:
数据库 时间:
2016-05-23 00:43:14
阅读次数:
369
局域网一套物理网络里有两个 ip 段,单网卡设置多 ip 可实现同时访问两个网段。$ cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto eth0iface eth0 inet stati... ...
分类:
系统相关 时间:
2016-05-13 11:07:10
阅读次数:
219