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
my_server.1.131.10.in-addr.arpa stancwong UNIX for Dummies Questions & Answers 2 11-14-2005 08:44 AM
AIX 5.3 , gensyms command, translate 32 bit addr to 64 bit addr mrmeswani AIX 0 07-22-2005 10:22 AM
finger, getting name and pts from ip addr swag:þ UNIX for Dummies Questions & Answers 2 06-20-2005 11:42 AM
secondary TCP application lanman IP Networking 2 01-30-2002 01:25 AM
Secondary DNS question 98_1LE UNIX for Dummies Questions & Answers 3 09-25-2001 01:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-13-2006
Registered User
 

Join Date: Jul 2006
Posts: 5
Question Help, How to add secondary IP addr to eth0, by programme?

HI,

Please help me,
I want to add another IP address will programme,
How can I do it ?

Thank you.
Reply With Quote
Forum Sponsor
  #2  
Old 07-16-2006
Registered User
 

Join Date: May 2006
Posts: 101
the simple version is:
system("ifconfig eth0:1 <ip>");
Reply With Quote
  #3  
Old 07-16-2006
Registered User
 

Join Date: Jul 2006
Posts: 5
Thank you, but the interface name is eth0:1, its a virtual interface name.
not the real interface name.

I need add 4000 addresses to one interface.

Or, who one knows how to use RTNETLINK ?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:23 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