Re: Can i have two same class IP address in target?
- From: "ranga.ravuri@xxxxxxxxx" <ranga.ravuri@xxxxxxxxx>
- Date: 6 Jul 2006 09:53:46 -0700
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 ==
.
- References:
- Re: Can i have two same class IP address in target?
- From: Johan Borkhuis
- Re: Can i have two same class IP address in target?
- Prev by Date: Re: Symbol for end of code space?
- Next by Date: Re: TCP/IP for intel architecture
- Previous by thread: Re: Can i have two same class IP address in target?
- Next by thread: Assembly programming
- Index(es):
Relevant Pages
|