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 > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSL Public key/Private question tical00 UNIX for Dummies Questions & Answers 3 06-04-2009 12:52 AM
Public/Private Key SSH from UNIX to Windows (Cygwin) kclerks11 Windows & DOS: Issues & Discussions 9 12-02-2008 11:30 PM
Presented By: Public and Private Sector Perspectives on the Impact of the Technology iBot Software Releases - RSS News 0 08-22-2008 10:30 PM
ssh public/private Keys richo king UNIX for Dummies Questions & Answers 2 03-13-2008 06:34 PM
SSH public and private keys new2ss UNIX for Advanced & Expert Users 2 02-13-2006 11:06 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-22-2009
abduljabbar_11 abduljabbar_11 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 1
Unhappy Setting up private and public ip on same machine.

Hi,

We have a ftp server which is running on public ip and out side of firewall.
Users out side of our network and users of our local network both using the same public ip and doing upload and downloading.
Last few days we are facing bandwidth problem as internal network users increased.

We want setup ftp server with 2 ips as follows.

Internal users will use private IP
users out side network will use public Ip.

Is there any procedure available to configure same machine with private and public ips.

please help me sort out this issue.

Thanks in advance.
  #2 (permalink)  
Old 07-22-2009
gratuitous_arp gratuitous_arp is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
I don't see how this will solve a bandwidth issue, but this is the answer to your question:

The 'ip' command will allow you to set multiple IP addresses on a single interface, whereas the 'ifconfig' command will replace an existing IP address with a specified new address.

So to add multiple address to an interface, use:

Code:
ip address add 192.168.1.1/24 dev eth0
ip address add 4.2.2.2/28 dev eth0
And don't forget to bring the link up:

Code:
ip link set eth0 up
To delete an IP address from the interface, replace "add" with "delete".
Reply

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 11:50 AM.


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