我有一条通往网络的路由,但从跟踪路由输出来看,它不会离开服务器

我有一条通往网络的路由,但从跟踪路由输出来看,它不会离开服务器

我有一台 HP-UX 机器,我正在尝试确定无法访问主机的原因。我正在尝试联系主机 10.32.13.146

root@hp-ux:/root # traceroute -I 10.32.13.146

traceroute to 10.32.13.146 (10.32.13.146), 30 hops max, 40 byte packets
 1  * * *
 2  * * *
 3  * * *

我已经有一条到网络的路由,如下所示 - 10.32.13.128/255.255.255.128 10.32.32.1。

root@hp-ux:/root # netstat -rnv Routing tables Dest/Netmask           
Gateway            Flags Refs Interface  Pmtu
127.0.0.1/255.255.255.255       127.0.0.1          UH    0    lo0       32808
10.32.32.25/255.255.255.255     10.32.32.25        UH    0    lan901    32808
142.40.216.27/255.255.255.255   142.40.216.27      UH    0    lan900    32808
142.40.216.0/255.255.255.128    142.40.216.27      U     2    lan900     1500
10.32.32.0/255.255.255.128      10.32.32.25        U     2    lan901     1500
10.32.33.0/255.255.255.128      10.32.32.1         UG    0    lan901     1500
10.32.37.0/255.255.255.128      10.32.32.1         UG    0    lan901     1500
10.32.46.128/255.255.255.128    10.32.32.1         UG    0    lan901     1500
10.106.132.128/255.255.255.128  10.32.32.1         UG    0    lan901     1500
10.32.13.128/255.255.255.128    10.32.32.1         UG    0    lan901     1500
10.106.129.0/255.255.255.0      10.32.32.1         UG    0    lan901     1500
127.0.0.0/255.0.0.0             127.0.0.1          U     0    lo0       32808
default/0.0.0.0                 142.40.216.1       UG    0   lan900     1500

有人可以解释一下这台服务器出了什么问题以及如何解决这种情况吗?

编辑:到达 10.32.32.25 没有问题

root@hp-ux:/root# ping 10.32.32.25 -n 1
PING 10.32.32.25: 64 byte packets
64 bytes from 10.32.32.25: icmp_seq=0. time=0. ms

----10.32.32.25 PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 0/0/0

这是/etc/rc.config.d/netconf

root@hp-ux:/root# grep -v ^# /etc/rc.config.d/netconf

HOSTNAME="hp-ux"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1




ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="142.40.216.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""


GATED=0
GATED_ARGS=""


RDPD=0


RARPD=0


DEFAULT_INTERFACE_MODULES=""
INTERFACE_NAME[1]="lan900"
IP_ADDRESS[1]="142.40.216.27"
SUBNET_MASK[1]="255.255.255.128"
BROADCAST_ADDRESS[1]="142.40.216.127"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]="0"
INTERFACE_MODULES[1]=""
INTERFACE_NAME[2]="lan901"
IP_ADDRESS[2]="10.32.32.25"
SUBNET_MASK[2]="255.255.255.128"
BROADCAST_ADDRESS[2]="10.32.32.127"
INTERFACE_STATE[2]="up"
DHCP_ENABLE[2]="0"
INTERFACE_MODULES[2]=""
ROUTE_DESTINATION[1]="net 10.32.33.0"
ROUTE_GATEWAY[1]=10.32.32.1
ROUTE_COUNT[1]=1
ROUTE_MASK[1]=255.255.255.128
ROUTE_ARGS[1]=
ROUTE_DESTINATION[3]="net 10.32.46.128"
ROUTE_GATEWAY[3]=10.32.32.1
ROUTE_COUNT[3]=1
ROUTE_MASK[3]=255.255.255.128
ROUTE_ARGS[3]=
ROUTE_DESTINATION[2]="net 10.32.37.0"
ROUTE_GATEWAY[2]=10.32.32.1
ROUTE_COUNT[2]=1
ROUTE_MASK[2]=255.255.255.128
ROUTE_ARGS[2]=
ROUTE_DESTINATION[4]="net 10.106.129.0"
ROUTE_GATEWAY[4]=10.32.32.1
ROUTE_COUNT[4]=1
ROUTE_MASK[4]=255.255.255.0
ROUTE_ARGS[4]=
ROUTE_DESTINATION[5]="net 10.106.132.128"
ROUTE_GATEWAY[5]=10.32.32.1
ROUTE_COUNT[5]=1
ROUTE_MASK[5]=255.255.255.128
ROUTE_ARGS[5]=
ROUTE_DESTINATION[6]="net 10.32.13.128"
ROUTE_GATEWAY[6]=10.32.32.1
ROUTE_COUNT[6]=1
ROUTE_MASK[6]=255.255.255.128
ROUTE_ARGS[6]=

答案1

对于其他看到这篇文章的人:

这种情况下的计算机有 2 个网络接口。其中一个 (lan901) 被分配静态 IP 10.32.32.1,因此计算机绝对可以访问... 呃!

相关内容