<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>so eth1 works but eth0 doesn't?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>what's interesting is here you have no tx/rx/error packets 
-- how do you know its not working?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>Are there machines on this subnet which are 
working?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>Also ping into the machine...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>Its also sometimes useful to have a hub (not a switch) and 
sniff the packets...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2>marty</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670553620-22022007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Manjunath AM 
  [mailto:Manjunath.AM@Lntemsys.com] <BR><B>Sent:</B> Wednesday, February 21, 
  2007 11:24 PM<BR><B>To:</B> Leisner, Martin<BR><B>Cc:</B> 
  linuxppc-embedded@ozlabs.org; 
  linuxppc-embedded-bounces+manjunath.am=lntemsys.com@ozlabs.org; Vitaly 
  Bordug<BR><B>Subject:</B> RE: enabling two eths<BR></FONT><BR></DIV>
  <DIV></DIV><BR><FONT face=sans-serif size=2>Hi Martin,</FONT> <BR><BR><FONT 
  face=sans-serif size=2>Thanks for your reply,Yes I tried swapping the 
  assignments,same thing is happening in both cases..ifconfig and route -n 
  results are as below:</FONT> <BR><BR><BR><FONT face=Arial color=blue 
  size=2><B>ifconfig</B></FONT> <BR><BR><FONT face=sans-serif size=2>eth0 &nbsp; 
  &nbsp; &nbsp;Link encap:Ethernet &nbsp;HWaddr 00:99:23:C4:AD:DE</FONT> 
  <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet 
  addr:192.168.33.64 &nbsp;Bcast:192.168.33.255 &nbsp;Mask:255.255.248.0</FONT> 
  <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 
  addr: fe80::299:23ff:fec4:adde/64 Scope:Link</FONT> <BR><FONT face=sans-serif 
  size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP BROADCAST RUNNING MULTICAST 
  &nbsp;MTU:1500 &nbsp;Metric:1</FONT> <BR><FONT face=sans-serif size=2>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; RX packets:0 errors:0 dropped:0 overruns:0 
  frame:0</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 
  txqueuelen:1000</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; RX bytes:0 (0.0 b) &nbsp;TX bytes:308 (308.0 b)</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Base 
  address:0x8400</FONT> <BR><BR><FONT face=sans-serif size=2>eth1 &nbsp; &nbsp; 
  &nbsp;Link encap:Ethernet &nbsp;HWaddr 00:99:23:44:AD:DE</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet 
  addr:192.168.178.124 &nbsp;Bcast:192.168.178.255 
  &nbsp;Mask:255.255.255.0</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; inet6 addr: fe80::299:23ff:fe44:adde/64 Scope:Link</FONT> 
  <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP 
  BROADCAST RUNNING MULTICAST &nbsp;MTU:1500 &nbsp;Metric:1</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:22790 
  errors:0 dropped:0 overruns:0 frame:0</FONT> <BR><FONT face=sans-serif 
  size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:9218 errors:0 dropped:0 
  overruns:0 carrier:8830</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:1000</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:14916045 
  (14.2 MiB) &nbsp;TX bytes:1463093 (1.3 MiB)</FONT> <BR><FONT face=sans-serif 
  size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Base address:0x8500</FONT> 
  <BR><BR><FONT face=sans-serif size=2>lo &nbsp; &nbsp; &nbsp; &nbsp;Link 
  encap:Local Loopback</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; inet6 addr: ::1/128 Scope:Host</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP LOOPBACK RUNNING 
  &nbsp;MTU:16436 &nbsp;Metric:1</FONT> <BR><FONT face=sans-serif size=2>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; RX packets:0 errors:0 dropped:0 overruns:0 
  frame:0</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</FONT> <BR><FONT 
  face=sans-serif size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 
  txqueuelen:0</FONT> <BR><FONT face=sans-serif size=2>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; RX bytes:0 (0.0 b) &nbsp;TX bytes:0 (0.0 b)</FONT> <BR><BR><FONT 
  face=Arial color=blue size=2><B>route -n</B></FONT> <BR><FONT face=sans-serif 
  size=2>Destination &nbsp; &nbsp; Gateway &nbsp; &nbsp; &nbsp; &nbsp; Genmask 
  &nbsp; &nbsp; &nbsp; &nbsp; Flags Metric Ref &nbsp; &nbsp;Use Iface</FONT> 
  <BR><FONT face=sans-serif size=2>192.168.178.0 &nbsp; 0.0.0.0 &nbsp; &nbsp; 
  &nbsp; &nbsp; 255.255.255.0 &nbsp; U &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 
  &nbsp; &nbsp; &nbsp; &nbsp;0 eth1</FONT> <BR><FONT face=sans-serif 
  size=2>192.168.32.0 &nbsp; &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; 
  255.255.248.0 &nbsp; U &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 
  &nbsp; &nbsp;0 eth0</FONT> <BR><FONT face=sans-serif size=2>0.0.0.0 &nbsp; 
  &nbsp; &nbsp; &nbsp; 192.168.178.47 &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; 
  UG &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 
  eth1</FONT> <BR><BR><BR><BR><FONT face=sans-serif size=2>Thanks &amp; 
  Regards<BR>MANJUNATH AM<BR>Senior Software Engineer<BR>Emsys<BR>Larsen &amp; 
  Toubro Limited<BR>Mysore-570018<BR>Mobile:9886375926<BR></FONT><BR><BR><BR>
  <TABLE width="100%">
    <TBODY>
    <TR vAlign=top>
      <TD width="40%"><FONT face=sans-serif size=1><B>"Leisner, Martin" 
        &lt;Martin.Leisner@xerox.com&gt;</B> </FONT><BR><FONT face=sans-serif 
        size=1>Sent by: 
        linuxppc-embedded-bounces+manjunath.am=lntemsys.com@ozlabs.org</FONT> 
        <P><FONT face=sans-serif size=1>02/21/2007 09:58 PM</FONT> </P>
      <TD width="59%">
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
            <TD><FONT face=sans-serif size=1>"Manjunath AM" 
              &lt;Manjunath.AM@Lntemsys.com&gt;, "Vitaly Bordug" 
              &lt;vbordug@ru.mvista.com&gt;</FONT> 
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
            <TD><FONT face=sans-serif 
              size=1>linuxppc-embedded@ozlabs.org</FONT> 
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
            <TD><FONT face=sans-serif size=1>RE: enabling two 
          eths</FONT></TR></TBODY></TABLE><BR>
        <TABLE>
          <TBODY>
          <TR vAlign=top>
            <TD>
            <TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT 
  size=3>&nbsp;</FONT> <BR><FONT face=Arial color=blue size=2>Send the results 
  of </FONT><BR><FONT face=Arial color=blue size=2>ifconfig</FONT> <BR><FONT 
  face=Arial color=blue size=2>and</FONT> <BR><FONT face=Arial color=blue 
  size=2>route -n</FONT> <BR><FONT size=3>&nbsp;</FONT> <BR><FONT face=Arial 
  color=blue size=2>I take it eth0 works fine...</FONT> <BR><FONT 
  size=3>&nbsp;</FONT> <BR><FONT face=Arial color=blue size=2>Have you tried 
  swapping the assignments and see if eth1 works (to eliminate faulty 
  hardware).</FONT> <BR><FONT size=3>&nbsp;</FONT> <BR><FONT face=Arial 
  color=blue size=2>marty</FONT> <BR><BR>
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> 
  linuxppc-embedded-bounces+martin.leisner=xerox.com@ozlabs.org 
  [mailto:linuxppc-embedded-bounces+martin.leisner=xerox.com@ozlabs.org] <B>On 
  Behalf Of </B>Manjunath AM<B><BR>Sent:</B> Tuesday, February 20, 2007 11:50 
  PM<B><BR>To:</B> Vitaly Bordug<B><BR>Cc:</B> 
  linuxppc-embedded@ozlabs.org<B><BR>Subject:</B> Re: enabling two 
  eths</FONT><FONT size=3><BR></FONT><BR><FONT face=sans-serif size=2><BR>Hi, 
  Thanks for your kind reply, Yes i have used different * IP 
  Subnets*</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif size=2><BR>The 
  IPs and subnet details I use is</FONT><FONT size=3> </FONT><FONT 
  face=sans-serif size=2><BR>1. eth0(configured through u-boot env 
  settings)-&gt;&gt; 192.168.174.231 and subnet is 255.255.255.0 <BR>2. 
  eth1(configured after kernel is up)--&gt; 192.168.33.64 and subnet is 
  255.255.248.0</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif 
  size=2><BR>Even i tried by connecting second eth to host PC using cross cable 
  as a stand-alone network but even "ping" did not work.. </FONT><FONT 
  size=3><BR><BR><BR></FONT><FONT face=sans-serif size=2><BR>Thanks &amp; 
  Regards<BR>MANJUNATH AM<BR>Senior Software Engineer<BR>Emsys<BR>Larsen &amp; 
  Toubro Limited<BR>Mysore-570018<BR>Mobile:9886375926</FONT><FONT 
  size=3><BR><BR><BR></FONT>
  <TABLE width="100%">
    <TBODY>
    <TR vAlign=top>
      <TD width="34%"><FONT face=sans-serif size=1><B>Vitaly Bordug 
        &lt;vbordug@ru.mvista.com&gt;</B> </FONT>
        <P><FONT face=sans-serif size=1>02/20/2007 09:30 PM</FONT><FONT size=3> 
        </FONT></P>
      <TD width="65%"><BR>
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD width="8%">
              <DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
            <TD width="91%"><FONT face=sans-serif size=1>Alex Zeffertt 
              &lt;ajz@cambridgebroadband.com&gt;</FONT><FONT size=3> </FONT>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
            <TD><FONT face=sans-serif size=1>Manjunath AM 
              &lt;Manjunath.AM@Lntemsys.com&gt;, 
              linuxppc-embedded@ozlabs.org</FONT><FONT size=3> </FONT>
          <TR vAlign=top>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
            <TD><FONT face=sans-serif size=1>Re: enabling two 
          eths</FONT></TR></TBODY></TABLE><BR><BR>
        <TABLE width="100%">
          <TBODY>
          <TR vAlign=top>
            <TD width="50%">
            <TD width="50%"></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><FONT 
  size=3><BR><BR></FONT><FONT size=2><TT><BR>On Tue, 20 Feb 2007 15:31:54 
  +0000<BR>Alex Zeffertt &lt;ajz@cambridgebroadband.com&gt; wrote:<BR><BR>&gt; 
  <BR>&gt; Manjunath AM wrote:<BR>&gt; &gt; <BR>&gt; &gt; Hi,<BR>&gt; &gt; 
  <BR>&gt; &gt; We are using MPC8272 based target board, we use montavista Linux 
  version <BR>&gt; &gt; 2.6.10 kernel image (with NFS enabled) to our target 
  board,<BR>&gt; &gt; <BR>&gt; &gt; Our board has &nbsp;2 FCCs (eth0 and eth1). 
  bot the eth's works perfectly <BR>&gt; &gt; when we use them independently, 
  but when we are trying to enable second <BR>&gt; &gt; one after the kernel is 
  up using linux command &nbsp;"ifconfig eth1 <BR>&gt; &gt; 192.168.33.64 up"(IP 
  address)nothing is working.<BR>&gt; &gt; Please suggest how to enable second 
  eth (either 0 or 1) once the kernel <BR>&gt; &gt; is up with NFS file 
  system<BR>&gt; <BR>&gt; <BR>&gt; Have you made sure that eth0 and eth1 are on 
  *different* IP subnets?<BR>&gt; If they are on the same subnet, or 
  intersecting subnets, your routing<BR>&gt; will get confused.<BR>&gt; <BR>It 
  depends :)<BR><BR>I used to test functionality such a way to have two enets in 
  same subnet, then ifdown one of them.<BR><BR>At least with mvista RFS, one 
  enet &nbsp;handles NFS, other is up but all the packets are routed to it 
  via<BR>the first one. And when the first one got ifdown, routing switches to 
  the remaining enet...<BR>-- <BR>Sincerely, <BR>Vitaly</TT></FONT><FONT 
  size=3><BR></FONT><FONT 
  size=2><TT>_______________________________________________<BR>Linuxppc-embedded 
  mailing 
  list<BR>Linuxppc-embedded@ozlabs.org<BR>https://ozlabs.org/mailman/listinfo/linuxppc-embedded</TT></FONT> 
  <BR></BLOCKQUOTE></BODY></HTML>