Sean Boudreau(deleted)
|
Re: io-pkt-v4-hc and multiple network interfaces
|
Sean Boudreau(deleted)
01/29/2013 4:00 PM
post98878
|
Re: io-pkt-v4-hc and multiple network interfaces
Sounds like you simply want:
# io-pkt -d driver1 -d driver2
If you want multiple stacks you'll have do add the 'prefix' option
to target them individually with utilities.
# io-pkt -d driver1
# ifconfig
# io-pkt -d driver2 -ptcpip prefix=/alt
# SOCK=/alt ifconfig
This is all be documented in the io-pkt docs.
On Tue, Jan 29, 2013 at 03:53:48PM -0500, Oleg V wrote:
> Greetings QNX community
>
> Our QNX 6.5.0 SP1 project requires two Ethernet connections, both using USB Ethernet style adapters. Although the
adapters are of the same nature, they are different mfg/part numbers and hence use different QNX drivers.
>
> Both devices are successfully enumerated by the HC (as listed by usb tool) and I can get each connection to work
separately using io-pkt-v4-hc/ifconfig harness:
>
> io-pkt-v4-hc -vvvv -d<driver> -ptcpip
> ifconfig en0 <ip> netmask <mask>
>
> The problem starts when I'm trying to get both interfaces up at the same time:
>
> io-pkt-v4-hc -vvvv -d<driver1> -ptcpip <-- Success, /dev/io-net/en0 appears
> io-pkt-v4-hc -vvvv -d<driver2> -ptcpip <-- Success, but en1 doesn't appear anywhere as i was expecting. No errors
reported though.
>
> Then I read carefully again through io-pkt-v4-hc documentation and found something called "instance" in there. So I
tried specifying different instance numbers for each adapter:
>
> io-pkt-v4-hc -i 1 -vvvv -d<driver1> -ptcpip <-- Success, /dev/io-net1/en0 appears
> io-pkt-v4-hc -i 2 -vvvv -d<driver2> -ptcpip <-- Success, /dev/io-net2/en0 appears
>
> At this point I'm very confused, this is clearly is not what I want to achieve. This seems to be creating separate
stacks and further I don't quite see how to use ifconfig in this setup as both interfaces are registered as "en0".
>
> I also tried to play with "enmap" parameter but this one seems to be ignored completely.
>
> All I want is just to get my two network interfaces under /dev/io-net/ as
>
> /dev/io-net/en0
> /dev/io-net/en1
>
> So that I can configure them as usual with
>
> ifconfig en0 <ip1> netmask <mask1>
> ifconfig en1 <ip2> netmask <mask2>
>
>
> Any suggestions?
>
> Thanks.
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post98877
> To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
|
|
|