sankarraj saravanan
04/20/2009 11:05 AM
post27487
|
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.
|
|
|
Robert Craig
|
RE: X86 Two Ethernet ports
|
Robert Craig
04/20/2009 11:11 AM
post27491
|
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
|
|
|
sankarraj saravanan
|
Re: RE: X86 Two Ethernet ports
|
sankarraj saravanan
04/21/2009 1:14 AM
post27558
|
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
|
|
|
Robert Craig
|
RE: RE: X86 Two Ethernet ports
|
Robert Craig
04/21/2009 7:49 AM
post27579
|
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
|
|
|
Sean Boudreau(deleted)
|
Re: RE: X86 Two Ethernet ports
|
Sean Boudreau(deleted)
04/21/2009 8:29 AM
post27582
|
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
|
|
|
Robert Craig
|
RE: RE: X86 Two Ethernet ports
|
Robert Craig
04/21/2009 9:17 AM
post27599
|
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
|
|
|
sankarraj saravanan
|
Re: RE: X86 Two Ethernet ports
|
sankarraj saravanan
04/21/2009 9:55 AM
post27614
|
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
|
|
|
Robert Craig
|
RE: RE: X86 Two Ethernet ports
|
Robert Craig
04/21/2009 9:58 AM
post27617
|
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
|
|
|
sankarraj saravanan
|
Re: RE: RE: X86 Two Ethernet ports
|
sankarraj saravanan
04/21/2009 10:22 AM
post27624
|
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
|
|
|
Sean Boudreau(deleted)
|
Re: RE: RE: X86 Two Ethernet ports
|
Sean Boudreau(deleted)
04/21/2009 10:53 AM
post27631
|
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
|
|
|
sankarraj saravanan
|
Re: RE: RE: X86 Two Ethernet ports
|
sankarraj saravanan
04/25/2009 2:32 AM
post28084
|
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
|
|
|
Sean Boudreau(deleted)
|
Re: RE: RE: X86 Two Ethernet ports
|
Sean Boudreau(deleted)
04/27/2009 9:46 AM
post28131
|
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
|
|
|
sankarraj saravanan
|
Re: RE: RE: X86 Two Ethernet ports
|
sankarraj saravanan
05/05/2009 4:23 AM
post28667
|
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
|
|
|
|