<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#C0C0C0">
<p>Hi Alexey</p>
<p> I find the runnig route4-change-gw and route6-change-gw often
hangup,</p>
<p>I debug this two case and testing environment is below:</p>
<p> ______ _______<br>
| |-eth0------ eth0-| |<br>
|host1| |host2 | <br>
| |-eth1------ eth1-| |<br>
------- ---------</p>
<p>the ip address of eth0 is used for rshd so that host1 can rsh to
host2 through eth0.</p>
<p>and the eth1 is use for ltp testcase. and I set the eth1 for test
interfaces in test_net.sh</p>
<p>file path: ltp/./testcases/lib/test_net.sh<br>
</p>
<p>687 # Set names for test interfaces, e.g. "eth0 eth1"<br>
688 # This is fallback for LHOST_IFACES in case tst_net_vars finds
nothing or we<br>
689 # want to use more ifaces.<br>
690 export LHOST_IFACES="${LHOST_IFACES:-eth1}"<br>
691 export RHOST_IFACES="${RHOST_IFACES:-eth1}"</p>
<p>but the case route4-change-gw and route6-change -gw is use eth0
for test interfaces, <br>
</p>
<p>so when running this two case, the eth0 will ifdown/up this lead
to host1 can not rsh host2<br>
</p>
<p>and hangup will happen.</p>
<p>I think this case should use $LHOST_IFACES/$RHOST_IFACES as test
interface and should not fixed use eth0.</p>
<p>if I think right , I hope you can revise this two case.</p>
<p><br>
</p>
<p>file path:ltp/testcases/network/stress/route/route4-change-gw<br>
</p>
<p> 67 # The number of the test link where tests run<br>
68 LINK_NUM=${LINK_NUM:-0}<br>
...</p>
<p>109 # Get the Interface name of local host<br>
110 lhost_ifname=`get_ifname lhost ${LINK_NUM}`</p>
<p>line 110 ,we can know the eth0 is the test interface</p>
<p>That's all</p>
<p>Thanks <br>
</p>
<p>Lianwen Sun<br>
</p>
<p><br>
</p>
</body>
</html>