The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find out the ipaddress? DineshV UNIX for Dummies Questions & Answers 3 05-06-2008 01:20 AM
ipaddress in HP-UX RockyC123 Shell Programming and Scripting 7 03-25-2008 04:27 AM
how to find ipaddress shruti_mgp HP-UX 14 05-04-2006 03:58 AM
How to set the MSS programatically. zampya High Level Programming 0 06-24-2004 09:39 AM
change the IPAddress and local name lapnguyen UNIX for Dummies Questions & Answers 2 07-10-2002 10:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-26-2005
Registered User
 

Join Date: Apr 2005
Posts: 1
Add IpAddress Through Programatically

Hi all,
Can u give me some suggestions how to add Ip Address through Programmatically , Actually I done it in Windows But now I want same thing in Unix................................

Can Any body Help to me.......
Reply With Quote
Forum Sponsor
  #2  
Old 07-13-2006
Registered User
 

Join Date: Jul 2006
Posts: 5
We get same problem, if you got an idea, please let me know:

Last edited by pcman; 07-14-2006 at 12:20 AM.
Reply With Quote
  #3  
Old 07-13-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Hello pcman, please remove your email id from the post. That is against the rules.
You can communicate that to ykmraju via a private message.
Reply With Quote
  #4  
Old 07-14-2006
Registered User
 

Join Date: Jul 2006
Posts: 5
Sorry for that.
Reply With Quote
  #5  
Old 07-16-2006
Registered User
 

Join Date: May 2006
Posts: 101
can you give me an example what are you trying to archive ?
Reply With Quote
  #6  
Old 07-16-2006
Registered User
 

Join Date: Jul 2006
Posts: 5
Such like:

ip addr add 192.168.0.100 dev eth0
ip addr add 192.168.0.101 dev eth0
...
...
ip addr add 192.168.0.200 dev eth0
Reply With Quote
  #7  
Old 07-17-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
How about:

Code:
#include <stdlib.h>

...

system("ip addr add 192.168.0.100 dev eth0");
?

Otherwise, you can study the code of the 'ip' program you are using.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0