如果你添加/修改默认网关时遇到这个问题。 原因:你要添加的网关不在你主机所在的网段。 解决方法: 比如你要添加的网关是10.9.39.250 但是本机没有10.9.39段的网卡 sudo route add 10.9.39.250/32 dev eth0 然后再 sudo route add def ...
分类:
其他好文 时间:
2018-06-14 11:28:19
阅读次数:
1614
错误信息: [root@localhost network-scripts]# service network restart Shutting down interface eth0: ./network-functions: line 78: .: ifcfg-eth0: file not fo ...
分类:
Web程序 时间:
2018-06-13 11:43:43
阅读次数:
812
配置IP及克隆 配置IP及克隆 1.cd /etc/sysconfig/network-scripts ls vi ifcfg-eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 2.IPADDR=ip 192.168.83.10 NETMASK=子网 ...
分类:
系统相关 时间:
2018-06-11 14:02:15
阅读次数:
263
1:在终端中输入:cd /etc/sysconfig/network-scripts/ 2: 看看是否有这个文件:ifcfg-eth0,如果有然后输入编辑,vi ifcfg-eth0: 3:开始编辑,填写ip地址、子网掩码、网关、DNS等。其中“下面这些是必须有的” DEVICE=eth0 BOOT ...
分类:
系统相关 时间:
2018-06-09 23:12:37
阅读次数:
207
一台服务器做了2组端口绑定(bonding),其中一组bond总是不成功,发现少了eth0/eth5 两个网卡,后来通过ifconfig -a 发现多了两个__tmpxxx的网卡 ifconfig -a __tmp1207132519 Link encap:Ethernet HWaddr E4:1F ...
分类:
其他好文 时间:
2018-06-09 00:50:30
阅读次数:
132
1.HOST 本地DNS解析vi /etc/hosts添加规则 例如:223.231.234.33 www.baidu.com 2.网卡配置文件DNS服务地址 vi /etc/sysconfig/network-scripts/ifcfg-eth0添加规则 例如:DSN1='114.114.114.114' 3.
分类:
系统相关 时间:
2018-06-08 16:41:37
阅读次数:
167
ifconfig?eth0|egrep?-o?‘([0-9]{1,3}\.){3}[0-9]{1,3}‘|sed?-n?"1p"
ifconfig?eth0|sed?-n?"2p"|awk??‘{print$2}‘|cut&nb
分类:
其他好文 时间:
2018-06-08 16:39:08
阅读次数:
131
方法一、 1、打开 vi /etc/sysconfig/network-scripts/ifcfg-enp4s0(每个机子都可能不一样,但格式会是“ifcfg-e...”)。但内容包含: <strong>TYPE=Ethernet #网卡类型 DEVICE=eth0 #网卡接口名称 ONBOOT=n ...
分类:
编程语言 时间:
2018-06-06 22:24:20
阅读次数:
224
1、ifconfig看不到新网卡:
[root@drbd2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:38:DD:03
 
分类:
其他好文 时间:
2018-06-06 21:49:24
阅读次数:
428
1、网卡的配置文件 [root@oldboyedu42 ~]# #/etc/sysconfig/网络-脚本/ifcfg-eth0 [root@oldboyedu42 ~]# #config [root@oldboyedu42 ~]# #c f g [root@oldboyedu42 ~]# ll / ...
分类:
系统相关 时间:
2018-06-06 10:54:05
阅读次数:
228