一台centos 5 安装的一台邮件服务器双网卡,eth0的iP是 192.168.0.185,eth1的IP地址是外网地址,最近发现发送邮件时总出现邮件被退回,收发速度巨慢的现象.不稳定.
处理过程:---ping 192.168.0.185 不通, 本地登录后ping其他内网设备能ping 通,
#/sbin/service network restart
报错信---提示eth0: ip: error while loading shared libraries: libresolv.so.2.........
编辑 /etc/sysconfig/network-scripts/ifup-eth, 将 (注:在Redhat操作系统下)
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo contentrdquo;Error, some other host already uses address ${IPADDR}.”
exit 1
fi
用#注释掉,然后输入
#service network restart
重启网络服务,网卡加载成功
运行一段时间后又不通了,
再执行命令#/sbin/service network restart
提示,eth0 192.168.0.185
重启network服务时:Error,some other host already users address... 换了ip也一样..-IP地址被占用
---先是执行命令#chmod 755 libresolv.so.2 ---不行
又试着
我无语了- -
centos是 SElinux的问题.关了selinux 就没问题了. |
---------
#setup 把 防火墙里面的selinux 关闭了
再重启网络#/sbin/service network restart
ok 了,
又运行少半天后又不通了,ping IP 不通,杯具......
--------
执行命令#dmesg
发现 提示 有peth0 接口 up down之类的信息,
执行 ifconfig命令后发现除eth0 eth1外还出现几个其他的接口名称,
root@spossptnru01 ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1A:64:25:EC:88
inet6 addr: fe80::21a:64ff:fe25:ec88/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:919 errors:0 dropped:0 overruns:0 frame:0
TX packets:335 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:68783 (67.1 KiB) TX bytes:25241 (24.6 KiB)
Interrupt:21 Memory:ce000000-ce011100
eth1 Link encap:Ethernet HWaddr 00:1A:64:25:EC:8A
inet addr:134.138.227.82 Bcast:134.138.227.95 Mask:255.255.255.224
inet6 addr: fe80::21a:64ff:fe25:ec8a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6748 errors:0 dropped:0 overruns:0 frame:0
TX packets:588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1807604 (1.7 MiB) TX bytes:58719 (57.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1849 errors:0 dropped:0 overruns:0 frame:0
TX packets:1849 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2447014 (2.3 MiB) TX bytes:2447014 (2.3 MiB)
peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF 咦?怎么变成peth1了?我明明记得是peth0,反正eth0都没法用..
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:160970 errors:0 dropped:0 |