# hostname (主机名)# hostid# uname -X# uname -a# w (进程)# who# last# ps -eaf# /usr/ucb/ps -aux# prstat# ifconfig -a (IP地址)# netstat -nr# netstat -in# /usr...
分类:
其他好文 时间:
2015-05-06 16:43:23
阅读次数:
143
1.DNS问题,导致yum没得源echo "nameserver 8.8.8.8">>/etc/resolv.conf2.CentOS 7最小化安装后找不到‘ifconfig’命令ip addryum install net-tools3.配置网络问题。linux下eth0在系统启动时自动激活的设置...
分类:
其他好文 时间:
2015-05-01 17:18:36
阅读次数:
144
第一步就是激活网卡,一般通常系统装好后默认的网卡是eth0,我们只需要使用ifconfig eth0 up来激活它。
第二步就是设置网卡进入系统后启动,我们使用chkconfig --level 2345 network on就可以了。
第三步就是修改网卡文件,我们只需要设置ONBOOT的值为true即可,设置BOOTPROTO的值为dhcp即可,其...
分类:
系统相关 时间:
2015-05-01 08:16:32
阅读次数:
275
一、网络服务、配置文件二、ifconfig常用命令三、route常用命令四、ip命常用命令五、其他一、网络服务、配置文件修改网络服务配置文件不会立即生效,重启网络服务或主机后生效且永久有效1、配置文件1.1、网络配置文件:/etc/sysconfig/network[root@TESTHOST~]#cat/etc/sysconf..
分类:
其他好文 时间:
2015-04-30 01:15:09
阅读次数:
230
在Linux中以太网接口被命名为:eth0,eth1等. 0, 1代表网卡编号.
要查看网卡的信息,可以使用ifconfig命令
ifconfig -a 查看所有接口
ifconfig eth0 查看特定接口
开启和关闭网卡:
ifup eth0 开启网卡eth0
ifdown eth0 关闭网卡eth0
网卡关闭后在ifconfi...
分类:
系统相关 时间:
2015-04-29 17:09:51
阅读次数:
262
redhat5.5双网卡绑定后测试失败,现象为拔线不切换,cat/proc/net/bonding/bond0网卡始终up,ifconfig有与XEN有关的信息;经查与XEN有关系#chkconfigxendoff#chkconfigxendomainsoff#chkconfiglibvirtdoff#rebootOK一切都正常了
分类:
其他好文 时间:
2015-04-26 01:25:33
阅读次数:
150
在virtualbox克隆出来的centos启动后ifconfig没有看到eth0.接着重启网卡报错:servicenetworkrestartShuttingdownloopbackinsterface:[OK]Bringinguploopbackinsterface:[OK]Bringingupinterfaceeth0:Deviceeth0doesnotseemtobepresent,delayinginitialization.[FAILED]因为复..
分类:
其他好文 时间:
2015-04-24 19:32:14
阅读次数:
263
在centOS系统中用用于网络配置的有这么几个命令ifconfig,route,ip,netstat,ss。ifconfig与route命令正在逐渐被ip命令取代。1、ifconfig:配置网络接口ifconfig-a#显示所有处于激活状态的连接(默认)ifconfigIFNAME#仅显示指定接口的信息ifconfigIFNAMEADDRESS#配置网络接..
分类:
其他好文 时间:
2015-04-24 19:30:00
阅读次数:
313
使用 busybox ifconfig eth0 hw ether AA:BB:CC:DD:EE 可以修改,但是每次重启都会改回原来的.所以要修改 /etc/init.mini210.sh (可能不一样) 添加一段 ifup eth0busybox ifconfig eth0 hw ether AA...
分类:
移动开发 时间:
2015-04-24 14:13:47
阅读次数:
159
转载自http://blog.chinaunix.net/uid-26413552-id-3202366.html查看Linux服务器网络状态ifconfig用来显示所有网络接口的详细情况的,如:ip地址,子网掩码等。ethx是以太网网卡的名称。配置文件在/etc/sysconfig/network...
分类:
系统相关 时间:
2015-04-23 21:12:53
阅读次数:
173