<!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> </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> </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> </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> </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> </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> </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
Link encap:Ethernet HWaddr 00:99:23:C4:AD:DE</FONT>
<BR><FONT face=sans-serif size=2> inet
addr:192.168.33.64 Bcast:192.168.33.255 Mask:255.255.248.0</FONT>
<BR><FONT face=sans-serif size=2> inet6
addr: fe80::299:23ff:fec4:adde/64 Scope:Link</FONT> <BR><FONT face=sans-serif
size=2> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</FONT> <BR><FONT face=sans-serif size=2>
RX packets:0 errors:0 dropped:0 overruns:0
frame:0</FONT> <BR><FONT face=sans-serif size=2>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</FONT> <BR><FONT
face=sans-serif size=2> collisions:0
txqueuelen:1000</FONT> <BR><FONT face=sans-serif size=2>
RX bytes:0 (0.0 b) TX bytes:308 (308.0 b)</FONT> <BR><FONT
face=sans-serif size=2> Base
address:0x8400</FONT> <BR><BR><FONT face=sans-serif size=2>eth1
Link encap:Ethernet HWaddr 00:99:23:44:AD:DE</FONT> <BR><FONT
face=sans-serif size=2> inet
addr:192.168.178.124 Bcast:192.168.178.255
Mask:255.255.255.0</FONT> <BR><FONT face=sans-serif size=2>
inet6 addr: fe80::299:23ff:fe44:adde/64 Scope:Link</FONT>
<BR><FONT face=sans-serif size=2> UP
BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</FONT> <BR><FONT
face=sans-serif size=2> RX packets:22790
errors:0 dropped:0 overruns:0 frame:0</FONT> <BR><FONT face=sans-serif
size=2> TX packets:9218 errors:0 dropped:0
overruns:0 carrier:8830</FONT> <BR><FONT face=sans-serif size=2>
collisions:0 txqueuelen:1000</FONT> <BR><FONT
face=sans-serif size=2> RX bytes:14916045
(14.2 MiB) TX bytes:1463093 (1.3 MiB)</FONT> <BR><FONT face=sans-serif
size=2> Base address:0x8500</FONT>
<BR><BR><FONT face=sans-serif size=2>lo Link
encap:Local Loopback</FONT> <BR><FONT face=sans-serif size=2>
inet6 addr: ::1/128 Scope:Host</FONT> <BR><FONT
face=sans-serif size=2> UP LOOPBACK RUNNING
MTU:16436 Metric:1</FONT> <BR><FONT face=sans-serif size=2>
RX packets:0 errors:0 dropped:0 overruns:0
frame:0</FONT> <BR><FONT face=sans-serif size=2>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</FONT> <BR><FONT
face=sans-serif size=2> collisions:0
txqueuelen:0</FONT> <BR><FONT face=sans-serif size=2>
RX bytes:0 (0.0 b) 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 Gateway Genmask
Flags Metric Ref Use Iface</FONT>
<BR><FONT face=sans-serif size=2>192.168.178.0 0.0.0.0
255.255.255.0 U 0 0
0 eth1</FONT> <BR><FONT face=sans-serif
size=2>192.168.32.0 0.0.0.0
255.255.248.0 U 0 0
0 eth0</FONT> <BR><FONT face=sans-serif size=2>0.0.0.0
192.168.178.47 0.0.0.0
UG 0 0 0
eth1</FONT> <BR><BR><BR><BR><FONT face=sans-serif size=2>Thanks &
Regards<BR>MANJUNATH AM<BR>Senior Software Engineer<BR>Emsys<BR>Larsen &
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"
<Martin.Leisner@xerox.com></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"
<Manjunath.AM@Lntemsys.com>, "Vitaly Bordug"
<vbordug@ru.mvista.com></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> </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> </FONT> <BR><FONT face=Arial
color=blue size=2>I take it eth0 works fine...</FONT> <BR><FONT
size=3> </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> </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)->> 192.168.174.231 and subnet is 255.255.255.0 <BR>2.
eth1(configured after kernel is up)--> 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 &
Regards<BR>MANJUNATH AM<BR>Senior Software Engineer<BR>Emsys<BR>Larsen &
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
<vbordug@ru.mvista.com></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
<ajz@cambridgebroadband.com></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
<Manjunath.AM@Lntemsys.com>,
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 <ajz@cambridgebroadband.com> wrote:<BR><BR>>
<BR>> Manjunath AM wrote:<BR>> > <BR>> > Hi,<BR>> >
<BR>> > We are using MPC8272 based target board, we use montavista Linux
version <BR>> > 2.6.10 kernel image (with NFS enabled) to our target
board,<BR>> > <BR>> > Our board has 2 FCCs (eth0 and eth1).
bot the eth's works perfectly <BR>> > when we use them independently,
but when we are trying to enable second <BR>> > one after the kernel is
up using linux command "ifconfig eth1 <BR>> > 192.168.33.64 up"(IP
address)nothing is working.<BR>> > Please suggest how to enable second
eth (either 0 or 1) once the kernel <BR>> > is up with NFS file
system<BR>> <BR>> <BR>> Have you made sure that eth0 and eth1 are on
*different* IP subnets?<BR>> If they are on the same subnet, or
intersecting subnets, your routing<BR>> will get confused.<BR>> <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 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>