Re: Can i have two same class IP address in target?



Raja,

There should not be any issues in using two IP addresses in the same
class and subnet. Checkout the failure reason. May be looking at error
numbers.

If you are going to add second IP address, vxworks might choose first
configured interface as default routing interface. So, you need to care
the routing table for the second interface.

Looking at userNetInit() in usrNetWork.c might help you finding out
exact sequence of steps to follow for bringing up interface.

Ranga

Johan Borkhuis wrote:
"Raja" <mraja@xxxxxxxxxxxxxxxxxx> wrote in news:1151504402.335608.23420
@i40g2000cwc.googlegroups.com:


Hai all,

I have two ethernet controller ( fei0 , fei1 ) in my target.
First i assigned first network controller IP address as,

fei0 IP address as 192.168.1.4 ( subnet mask : 0xFFFFFF00)

Everything is fine till this.But i am not able to assign second
controller IP address (fei1) as 192.168.1.5 ( subnet mask :
0xFFFFFF00).

To assign second controller,
1) I executed (MuxDevLoad(),MuxDevStart(),IpAttach())
functions
1) first i set mask address for "fei1" (
ifMaskSet("fei1",0xFFFFFF00) )
2) I execute ifAddrAdd("fei1","192.168.1.5).

ifAddrAdd() function is failing.Its returning -1.

Is it possible to assign same class IP address to two ethernet
controller in same system?

My requirement to PING remote host (say 192.168.1.1) from two
ethernet controller (fei0 and fei 1).

How i have to set IP address for first(fei0),second(fei1)
controller and remote host?

It is possible to set 2 IP addresses in the same subnet. But please check
the code of ifAddrAdd to see where it fails. I don't have a working
VxWorks installation, so I cannot tell you where this function is
located.

You will not be able to do this using this setup. VxWorks selects the
first ethernet controller it finds that has the correct subnet. So your
PING frame will always go out through fei0.

Regards,
Johan

--
o o o o o o o . . . _____J_o_h_a_n___B_o_r_k_h_u_i_s___
o _____ || http://www.borkhuis.com |
.][__n_n_|DD[ ====_____ | johan@xxxxxxxxxxxx |
>(________|__|_[_________]_|________________________________|
_/oo OOOOO oo` ooo ooo 'o!o!o o!o!o`
== VxWorks-page: http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html ==

.



Relevant Pages

  • Need Info on LAN connection through /dev/eth0 device for ENC28j60 controller
    ... We are using ENC28J60 Controller from Microchip for the LAN connection. ... In our project of we are using Microchips ENC28J60 Ethernet Controller ... The interface is working fine. ...
    (comp.arch.embedded)
  • Wifi with Atheros AR2414 not working
    ... Memory Interface ... Controller #1 ... 03:0a.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Your worst project?
    ... 500 KHz instead of the native 1 MHz for the CPU. ... then I picked up an IMI 5MB hard disk with a controller whose ... external interface looked a bit like SASI, ... starting with a Sun 2/120, and up through a current pair of Sun Blade ...
    (rec.crafts.metalworking)
  • Routing and RRAS Problem - Pleasehelp
    ... but the problem is the PC's on the subnet 1 cannot access the Internet. ... router that is running a DHCP, The IP of the router is ... enable RRAS, and is running fine, Interface called INTERNET is connected to ...
    (microsoft.public.windows.server.networking)
  • Re: Routing and RRAS Problem - Pleasehelp
    ... Interface List ... but the problem is the PC's on the subnet 1 cannot access the Internet. ... router that is running a DHCP, The IP of the router is ... enable RRAS, and is running fine, Interface called INTERNET is connected to ...
    (microsoft.public.windows.server.networking)