Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - [Ethernet] Create 2 logical network with 1 physical interface: (13 Items)
   
[Ethernet] Create 2 logical network with 1 physical interface  
Hello
I want to have 2 logical network interfaces, with the physical interface en0 .

How can I do it ?
Have I use "ifconfig create" ?


for exemple : 
en0.0 : 192.168.0.1:255.255.255.0
en0.1 : 10.0.0.1:255.0.0.0

Thanks

Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 11:39:29AM -0400, Nicolas PIEQUET wrote:
> Hello
> I want to have 2 logical network interfaces, with the physical interface en0 .
> 
> How can I do it ?
> Have I use "ifconfig create" ?
> 
> 
> for exemple : 
> en0.0 : 192.168.0.1:255.255.255.0
> en0.1 : 10.0.0.1:255.0.0.0
> 

The closest thing sounds like a vlan.

# ifconfig vlan0 create
# ifconfig vlan0 vlan 1234 vlanif en0
# ifconfig vlan0 10.0.0.1/8

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  

# ifconfig vlan0 create
ifconfig: SIOCIFCREATE: Invalid argument


Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 12:03:26PM -0400, Nicolas PIEQUET wrote:
> 
> 
> # ifconfig vlan0 create
> ifconfig: SIOCIFCREATE: Invalid argument

What version of the stack are you running?  Does
'ifconfig -C' list vlan?

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  
'ifconfig -C' return nothing ...

# ifconfig -C

#
Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 12:07:41PM -0400, Nicolas PIEQUET wrote:
> 'ifconfig -C' return nothing ...
> 
> # ifconfig -C
> 

I suspect you're running an old stack.  The 6.3.2
npm-tcpip-v[46].so should both support vlan.

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  
ok.
How can I change the stack ?
Currently, I use QNX 6.2.1
Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 12:21:01PM -0400, Nicolas PIEQUET wrote:
> ok.
> How can I change the stack ?
> Currently, I use QNX 6.2.1

You can try npm-tcpip-v6.so if you have it.  IIRC it
always supported vlan.

# slay io-net
# io-net -p /lib/dll/npm-tcpip-v6.so ...

Or look into getting 6.3.2...

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  
In wich startup file or config file the start of inetd is define (chose of stack) ?
 
Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 12:36:25PM -0400, Nicolas PIEQUET wrote:
> In wich startup file or config file the start of inetd is define (chose of stack) ?

You need to start io-net with the right stack, not inetd.
Check out IONET_CMD in /etc/system/enum/include/net.  When
in doubt you can slay / restart it in /etc/rc.d/rc.local.

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  
And how can I have documentation of the stacks ?

Re: [Ethernet] Create 2 logical network with 1 physical interface  
On Wed, Oct 29, 2008 at 12:37:28PM -0400, Nicolas PIEQUET wrote:
> And how can I have documentation of the stacks ?

In the system docs (helpviewer).

QNX Neutrino RTOS
  Utilities Reference
    N
      npm-tcpip-v6.so

-seanb
Re: [Ethernet] Create 2 logical network with 1 physical interface  
Thanks for all this answers.

It's ok ... for the moment :-)