The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2006
pcman pcman is offline
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.
  #2 (permalink)  
Old 07-16-2006
grumpf grumpf is offline
Registered User
  
 

Join Date: May 2006
Posts: 101
the simple version is:
system("ifconfig eth0:1 <ip>");
  #3 (permalink)  
Old 07-16-2006
pcman pcman is offline
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 ?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0