Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - X86 Two Ethernet ports: (13 Items)
   
X86 Two Ethernet ports  
QNX 6.3 SP3
Switching Ethernet ports:
X86 board with 2 Ethernet one is 10/100 and the other is 10/100/1000 . I booted up with the following command
io-net -de1000 -dspeedo -ptcpip
#ifconfig tells en0 and en1
dhcp.client -i en0
ping -> success
(plug the Ethernet cable into en1)
dhcp.client -i en1
ping -> fails

however i can ping the ip address of en1 from my PC. 
RE: X86 Two Ethernet ports  
Are the two ports on different subnets?
What's the output from ifconfig?
 

-----Original Message-----
From: sankarraj saravanan [mailto:community-noreply@qnx.com] 
Sent: Monday, April 20, 2009 11:06 AM
To: general-toolchain
Subject: X86 Two Ethernet ports

QNX 6.3 SP3
Switching Ethernet ports:
X86 board with 2 Ethernet one is 10/100 and the other is 10/100/1000 . I
booted up with the following command io-net -de1000 -dspeedo -ptcpip
#ifconfig tells en0 and en1 dhcp.client -i en0 ping -> success (plug the
Ethernet cable into en1) dhcp.client -i en1 ping -> fails

however i can ping the ip address of en1 from my PC. 

_______________________________________________
General
http://community.qnx.com/sf/go/post27487
Re: RE: X86 Two Ethernet ports  
Hi, Both ethernet are connected on the same subnet. 
1. By default the pockets are sent to en0 even if the cable is unplugged. The network manager dont check it and 
automatically transmit it to en1? In other O.S i dont see any problem.
2. Is there any document for configuring with same subnet? 

lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
	enabled=0<>
	inet 127.0.0.1 netmask 0xff000000
en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: a8:bc:fe:da:6d:ca
	inet 172.29.38.117 netmask 0xffffff00 broadcast 172.29.38.255
en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
	enabled=0<>
	address: 02:00:02:00:02:00
	inet 172.29.38.162 netmask 0xffffff00 broadcast 172.29.38.255
RE: RE: X86 Two Ethernet ports  
I'm afraid that this configuration will result in "peculiar" behaviour, as you've found (i.e. packets are received on 
both interfaces but only transmitted on one).  It's not a supported configuration.  

   R.


-----Original Message-----
From: sankarraj saravanan [mailto:community-noreply@qnx.com]
Sent: Tue 4/21/2009 1:14 AM
To: general-toolchain
Subject: Re: RE: X86 Two Ethernet ports
 
Hi, Both ethernet are connected on the same subnet. 
1. By default the pockets are sent to en0 even if the cable is unplugged. The network manager dont check it and 
automatically transmit it to en1? In other O.S i dont see any problem.
2. Is there any document for configuring with same subnet? 

lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
	enabled=0<>
	inet 127.0.0.1 netmask 0xff000000
en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: a8:bc:fe:da:6d:ca
	inet 172.29.38.117 netmask 0xffffff00 broadcast 172.29.38.255
en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
	enabled=0<>
	address: 02:00:02:00:02:00
	inet 172.29.38.162 netmask 0xffffff00 broadcast 172.29.38.255


_______________________________________________
General
http://community.qnx.com/sf/go/post27558


Attachment: Text winmail.dat 3.06 KB
Re: RE: X86 Two Ethernet ports  
On Tue, Apr 21, 2009 at 01:14:45AM -0400, sankarraj saravanan wrote:
> Hi, Both ethernet are connected on the same subnet. 
> 1. By default the pockets are sent to en0 even if the cable is unplugged. The network manager dont check it and 
automatically transmit it to en1? In other O.S i dont see any problem.
> 2. Is there any document for configuring with same subnet? 
> 
> lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
> 	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
> 	enabled=0<>
> 	inet 127.0.0.1 netmask 0xff000000
> en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	address: a8:bc:fe:da:6d:ca
> 	inet 172.29.38.117 netmask 0xffffff00 broadcast 172.29.38.255
> en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
> 	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
> 	enabled=0<>
> 	address: 02:00:02:00:02:00
> 	inet 172.29.38.162 netmask 0xffffff00 broadcast 172.29.38.255

I think what you're describing is 'agr'.  We'd
have to schedule its implentation.

http://netbsd.gw.com/cgi-bin/man-cgi?agr++NetBSD-current

-seanb
RE: RE: X86 Two Ethernet ports  
This would also be for the io-pkt networking stack on 6.4.x (and not the
io-net stack on 6.3.x).

	R. 

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: Tuesday, April 21, 2009 8:30 AM
To: general-toolchain
Subject: Re: RE: X86 Two Ethernet ports

On Tue, Apr 21, 2009 at 01:14:45AM -0400, sankarraj saravanan wrote:
> Hi, Both ethernet are connected on the same subnet. 
> 1. By default the pockets are sent to en0 even if the cable is
unplugged. The network manager dont check it and automatically transmit
it to en1? In other O.S i dont see any problem.
> 2. Is there any document for configuring with same subnet? 
> 
> lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
> 	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
> 	enabled=0<>
> 	inet 127.0.0.1 netmask 0xff000000
> en0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	address: a8:bc:fe:da:6d:ca
> 	inet 172.29.38.117 netmask 0xffffff00 broadcast 172.29.38.255
> en1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu
1500
> 	capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
> 	enabled=0<>
> 	address: 02:00:02:00:02:00
> 	inet 172.29.38.162 netmask 0xffffff00 broadcast 172.29.38.255

I think what you're describing is 'agr'.  We'd have to schedule its
implentation.

http://netbsd.gw.com/cgi-bin/man-cgi?agr++NetBSD-current

-seanb

_______________________________________________
General
http://community.qnx.com/sf/go/post27582
Re: RE: X86 Two Ethernet ports  
More clearly:
I got IP address from DHCP for both en0 and en1 on the same subnet, please see the ifconfig output.
I downed en0 and then up en1, (ifconfig en0 down, ifconfig en1 up, dhcp.client -i en1)

ping google.com results host is down.

So how can i route it through en1?
Why does the network manager is not detecting en0 is unplugged?
Is it a limitation in QNX?
Please advice.
-Regards,
Sankar
RE: RE: X86 Two Ethernet ports  
Hi Sankar:

   The problem is that there is no automatic adjustment of the routing
table when the interface goes down.  This would require (as Sean
mentioned) a feature implemented in the stack which isn't there today.
So yes, it is a current limitation.

You would have to hand modify the route table after en0 goes down to
re-direct packets out of en1.

    R.

-----Original Message-----
From: sankarraj saravanan [mailto:community-noreply@qnx.com] 
Sent: Tuesday, April 21, 2009 9:56 AM
To: general-toolchain
Subject: Re: RE: X86 Two Ethernet ports

More clearly:
I got IP address from DHCP for both en0 and en1 on the same subnet,
please see the ifconfig output.
I downed en0 and then up en1, (ifconfig en0 down, ifconfig en1 up,
dhcp.client -i en1)

ping google.com results host is down.

So how can i route it through en1?
Why does the network manager is not detecting en0 is unplugged?
Is it a limitation in QNX?
Please advice.
-Regards,
Sankar

_______________________________________________
General
http://community.qnx.com/sf/go/post27614
Re: RE: RE: X86 Two Ethernet ports  
Hi Robert,
Thanks for the quick response...

#route show
Routing tables

Internet:
Destination       Gateway            Flags 
default           172.29.38.1        UG     
localhost.localdo 127.0.0.1          UH     
172.29.38.0       link#2             U      
172.29.38.1       00:06:b1:39:47:8b  UH     


It doesn't show the en0 or en1. But in linux it will show whether it is eth0 or eth1...may i know how to add en1 in QNX?


-Regards,
Sankar
Re: RE: RE: X86 Two Ethernet ports  
On Tue, Apr 21, 2009 at 10:22:41AM -0400, sankarraj saravanan wrote:
> Hi Robert,
> Thanks for the quick response...
> 
> #route show
> Routing tables
> 
> Internet:
> Destination       Gateway            Flags 
> default           172.29.38.1        UG     
> localhost.localdo 127.0.0.1          UH     
> 172.29.38.0       link#2             U      
> 172.29.38.1       00:06:b1:39:47:8b  UH     
> 

'netstat -rn' will show the iface name.  Something like:

# route delete 172.29.38.0/24
# route add 172.29.38.0/24 -iface 172.29.38.162 -cloning

-seanb
Re: RE: RE: X86 Two Ethernet ports  
I had tried with a simple setup with two subnet and it is working. The customer is also OK with this.
But, i tried Sean's suggestion but still it is not changing up. 
# route delete 172.29.38.0/24
# route add 172.29.38.0/24 -iface 172.29.38.162 -cloning

# netstat -rn 
it still shows en0 as default iface, so i believe the outpockets are sent via en0 which is in default. Is there commands
 to use names en0 and en1 to route? instead of using the ip addresses?

I just wanted to experiment to understand things better. 

Thanks,
Sankar
Re: RE: RE: X86 Two Ethernet ports  
On Sat, Apr 25, 2009 at 02:32:54AM -0400, sankarraj saravanan wrote:
> I had tried with a simple setup with two subnet and it is working. The customer is also OK with this.
> But, i tried Sean's suggestion but still it is not changing up. 
> # route delete 172.29.38.0/24
> # route add 172.29.38.0/24 -iface 172.29.38.162 -cloning
> 
> # netstat -rn 
> it still shows en0 as default iface, so i believe the outpockets are sent via en0 which is in default. Is there 
commands to use names en0 and en1 to route? instead of using the ip addresses?
> 
> I just wanted to experiment to understand things better. 

Then you need to do something similar for the default route:

# route delete default
# route add default <gateway> -ifp <iface name>:

Where iface name is "en0" or whatever.  Note the colon ':' is
required after the iface name and you'll probably need to set
the network route to the iface as per my first post beforehand.

-seanb
Re: RE: RE: X86 Two Ethernet ports  
Hi Sean,
I had given the board to other team, will test it on receiving the board and let you know it.

Thank you very much to you and Robert's support.

-Sankar