- 论坛徽章:
- 0
|
在 sco unix 5 下用 \r\n route add default 192.168.2.1 加的路由,过一段时间就掉了(可能几个小时,也可能几天)用netstat -r 查看,发现default 已丢失。 注:路由器是用的ospf协议。\r\n, \r\n 盼高手们给予指点 \r\n\r\n或在rc2.d目录下用vi编辑一个文件(S99getway),文件内容route add default 192.168.2.1,也是丢失。 \r\n\r\n正常状态 \r\n# netstat -r \r\nRouting tables \r\nDestination Gateway Flags Refs Use Interface \r\ndefault 10.112.152.254 UGS 12 42398 net0 \r\n10.153.152 cz UC 1 0 net0 \r\nlocalhost localhost UH 1 11064 lo0 \r\n224 cz UCS 0 0 net0 \r\n\r\n\r\n\r\nnetstat -na \r\nActive Internet connections (including servers) \r\nProto Recv-Q Send-Q Local Address Foreign Address (state) \r\ntcp 0 0 10.112.152.39.23 10.112.154.19.4216 ESTABLISHED \r\ntcp 0 0 10.112.152.39.2252 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2249 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2247 10.112.4.5.5120 TIME_WAIT \r\ntcp 4 3 10.112.152.39.23 10.112.156.18.4104 LAST_ACK \r\ntcp 0 0 10.112.152.39.2245 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2243 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2241 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2239 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2235 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.2231 10.112.4.5.5120 TIME_WAIT \r\ntcp 0 0 10.112.152.39.23 10.112.155.19.28970 ESTABLISHED \r\ntcp 0 2 10.112.152.39.23 10.112.14.1.1062 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.14.1.1060 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.158.22.4112 ESTABLISHED \r\ntcp 0 0 10.112.152.39.513 10.112.152.251.625 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.157.12.4645 ESTABLISHED \r\ntcp 0 0 10.112.152.39.513 10.112.152.251.583 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.154.19.4184 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.157.12.3749 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.154.29.1266 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.155.19.28926 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 192.168.20.153.1141 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.158.23.2327 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.155.19.28916 ESTABLISHED \r\ntcp 0 0 10.112.152.39.23 10.112.154.19.4120 ESTABLISHED \r\ntcp 0 0 *.615 *.* LISTEN \r\ntcp 0 0 *.457 *.* LISTEN \r\ntcp 0 0 *.80 *.* LISTEN \r\ntcp 0 0 *.620 *.* LISTEN \r\ntcp 0 0 *.1032 *.* LISTEN \r\ntcp 0 0 *.6000 *.* LISTEN \r\ntcp 0 0 *.1031 *.* CLOSED \r\ntcp 0 0 *.1030 *.* CLOSED \r\ntcp 0 0 *.1029 *.* CLOSED \r\ntcp 0 0 *.1028 *.* CLOSED \r\ntcp 0 0 *.1027 *.* CLOSED \r\ntcp 0 0 *.1026 *.* CLOSED \r\ntcp 0 0 *.1025 *.* CLOSED \r\ntcp 0 0 *.1024 *.* CLOSED \r\ntcp 0 0 *.139 *.* LISTEN \r\ntcp 0 0 *.199 *.* LISTEN \r\ntcp 0 0 *.25 *.* LISTEN \r\ntcp 0 0 *.143 *.* LISTEN \r\nAddress Type Recv-Q Send-Q Conn Addr \r\nfcfa89f8 stream 0 0 fcfa87b8 \r\nfcfa87b8 stream 0 0 fcfa89f8 \r\nfcfa88d8 stream 0 0 fcfa8140 \r\nfcfa8140 stream 0 0 fcfa88d8 \r\nfcfa80f8 stream 0 0 fcfa9970 \r\nfcfa9970 stream 0 0 fcfa80f8 \r\nfcfa8188 stream 0 0 fcfa8890 \r\nfcfa8890 stream 0 0 fcfa8188 \r\nfcfa8b60 stream 0 0 fcfa85c0 \r\nfcfa9a90 stream 0 0 fcfa94a8 \r\nfcfa9bf8 stream 0 0 fcfa8608 \r\nfcfa8608 stream 0 0 fcfa9bf8 \r\nfcfa8410 stream 0 0 fcfa9d60 \r\nfcfa9d60 stream 0 0 fcfa8410 \r\nfcfa8a40 stream 0 0 fcfa8ad0 \r\nfcfa8ad0 stream 0 0 fcfa8a40 \r\nfcfa41f8 stream 0 0 0 /usr/tmp/scohelp.sock \r\net \r\nfcfa8ec0 stream 0 0 fcfa8f50 \r\nfcfa6400 dgram 0 0 fcfa4828 \r\nfcfa6b08 stream 0 0 0 /usr/lib/ppp/PPP_ADDR \r\nfcfa5998 dgram 0 0 fcfa4828 \r\nfcfa5a28 dgram 0 0 fcfa4828 \r\nfcfa40d8 dgram 0 0 fcfa4828 \r\nfcfa4168 dgram 0 0 fcfa4828 \r\nfcfa43a8 stream 0 0 fcfa4438 \r\nfcfa4438 stream 0 0 fcfa43a8 \r\nfcfa44c8 stream 0 0 fcfa4678 \r\nfcfa4558 stream 0 0 0 /pmd/PMDCT_pipe \r\nfcfa4678 stream 0 0 fcfa44c8 \r\nfcfa4708 stream 0 0 0 /pmd/LST_pipe \r\nfcfa4798 stream 0 0 0 /pmd/IPCCT_pipe \r\nfcfa4828 dgram 0 0 0 /dev/syslog \r\n\r\n不正常状态 \r\n# netstat -r \r\nRouting tables \r\nDestination Gateway Flags Refs Use Interface \r\n10.153.152 cz UC 1 0 net0 \r\nlocalhost localhost UH 1 11064 lo0 \r\n224 cz UCS 0 0 net0 |
|