AIX网络异常
本帖最后由 kll99 于 2011-05-22 23:59 编辑
1、 有两台IBM P550,安装aix5.3-08.该服务器配置过3个网段地址,分别为192.168.103.0/24,202.103.65.0/25,最后配置为134.175.224.0/26.两台服务器的ip分别为134.175.224.10和134.175.224.11
2、配置为134.175.224.0/26时,使用netstat -rn查看路由发现有3条默认路由:
192.168.103.2
202.103.65.1
134.175.224.1
3、使用smit rmroute删除了前两个路由。修改了路由后,重启了服务器。服务器启动使用netstat -rn查看只有134.175.224.1这条路由
4、需要使用ftp命令在10和11两台服务器之间算数文件,出现了异常现象:
第一次ftp 134.175.224.10 成功,但是使用ls命令时无法列出文件,传输文件显示超时
第二次ftp 134.175.224.10,则无反应
再在10上ftp 134.175.224.11时也没有反应
5、有发现一个现象:执行过ftp后,在服务器上ping网关,ping另外一台服务器
第一次都不通,等了10多分钟都不通
ctrl+c后在ping,发现到网关和另一台服务器都是50%丢包,就是通一个,丢一个,很有规律。
刚开机的时候肯定是通的,试过。
请大侠们帮帮忙,应当怎么解决,急啊。
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
贴两台机器ifconfig -a和lsattr -El inet0的结果
两台机器都为双网卡,没有做通道,两块网卡分别配置了IP地址,不过第二块网卡没有插网线。由于一直存在问题,更换了服务器ip,发现还是不行。详细ip请见下述详细信息.
第一台机器的信息
bash-3.00# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 134.175.224.51 netmask 0xffffffc0 broadcast 134.175.224.63
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 134.175.224.52 netmask 0xffffffc0 broadcast 134.175.224.63
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
et0: flags=5e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,CHAIN>
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
bash-3.00# lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname skmsdb1 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,-if,en0,,,,134.175.13.0,134.175.224.1 Route True
route net,-hopcount,0,,0,192.168.101.2 Route True
route net,-hopcount,0,,0,134.175.224.1 Route True
bash-3.00# netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 134.175.224.1 UG 0 1291 en0 - -
127/8 127.0.0.1 U 12 271 lo0 - -
134.175.13/24 134.175.224.1 UG 1 331 en0 - -
134.175.224.0 134.175.224.51 UHSb 0 0 en0 - - =>
134.175.224.0 134.175.224.52 UHSb 0 0 en1 - - =>
134.175.224/26 134.175.224.51 U 1 299 en0 - - =>
134.175.224/26 134.175.224.52 U 1 266 en1 - -
134.175.224.51 127.0.0.1 UGHS 0 17 lo0 - -
134.175.224.52 127.0.0.1 UGHS 0 1 lo0 - -
134.175.224.63 134.175.224.51 UHSb 0 2 en0 - - =>
134.175.224.63 134.175.224.52 UHSb 0 2 en1 - -
Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 - -
第二台服务器信息
bash-3.00$ ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 134.175.224.53 netmask 0xffffffc0 broadcast 134.175.224.63
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 134.175.224.54 netmask 0xffffffc0 broadcast 134.175.224.63
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
bash-3.00$ lsattr -El inet0
authm 65536 Authentication Methods True
bootup_option no Use BSD-style Network Configuration True
gateway Gateway True
hostname skmsdb2 Host Name True
rout6 IPv6 Route True
route net,-hopcount,0,,0,202.103.65.1 Route True
route net,-hopcount,0,,,,,,0,134.175.224.1 Route True
route net,-hopcount,0,,0,192.168.101.2 Route True
route net,-hopcount,0,,,,,,134.175.13.0,134.175.224.1 Route True
bash-3.00$ netstat -rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
default 134.175.224.1 UG 0 730 en0 - -
127/8 127.0.0.1 U 12 273 lo0 - -
134.175.13/24 134.175.224.1 UG 1 223 en0 - -
134.175.224.0 134.175.224.53 UHSb 0 0 en0 - - =>
134.175.224.0 134.175.224.54 UHSb 0 0 en1 - - =>
134.175.224/26 134.175.224.53 U 0 526 en0 - - =>
134.175.224/26 134.175.224.54 U 2 8286 en1 - -
134.175.224.53 127.0.0.1 UGHS 0 16 lo0 - -
134.175.224.54 127.0.0.1 UGHS 0 1 lo0 - -
134.175.224.63 134.175.224.53 UHSb 0 2 en0 - - =>
134.175.224.63 134.175.224.54 UHSb 0 2 en1 - -
Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 - -
lsattr -El inet0的输出中怎么有我之前已经删除的202.103.65.1和192.168.101.2,而在netstat -rn中却没有。
把第二个网口连上网,或者把IP地址删掉
另,用chdev删除ODM里多余的路由,具体办法google "aix chdev route remove"
好的,谢谢。我试试
搞定,多谢斑竹。
chdev命令如下:
route net,-hopcount,0,,0,202.103.65.1 Route True
route net,-hopcount,0,,,,,,0,134.175.224.1 Route True
route net,-hopcount,0,,0,192.168.101.2 Route True
route net,-hopcount,0,,,,,,134.175.13.0,134.175.224.1 Route True
$chdev -l inet0 -a route=“net,-hopcount,0,,0,202.103.65.1”
$chdev -l inet0 -a route=“net,-hopcount,0,,0,192.168.101.2"
$route -f
为确保正常,重启了服务器。