Sponsored Content
Special Forums IP Networking Setting up private and public ip on same machine. Post 302336653 by gratuitous_arp on Wednesday 22nd of July 2009 02:14:06 PM
Old 07-22-2009
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".
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH public and private keys

Firstly, i apologise if i have posted in a wrong section of the forum. Please let me know which is the correct section my post should go to. I have to SCP a file from one server(server A) to another (server B). I read around that a secure way is to use public and private keys. Assuming my... (2 Replies)
Discussion started by: new2ss
2 Replies

2. UNIX for Dummies Questions & Answers

ssh public/private Keys

Hello, I have an issue with an outside party trying to deliver a file to our server via SFTP. I have setup the .ssh directory under the home directory for the user account that is being used and setup the authorized_keys file with correct permissons etc for .ssh directory and file. We... (2 Replies)
Discussion started by: richo king
2 Replies

3. UNIX for Dummies Questions & Answers

SSL Public key/Private question

Hi everyone, I have a quick/newb question: I know that a public key is used to encrypt data and a private key is used to decrypt data but who keeps the public/private keys?? Does the Web Server hold both? Does the Web Server have the public key and does the client have the private key? ... (3 Replies)
Discussion started by: tical00
3 Replies

4. Shell Programming and Scripting

SFTP - Private and Public keys

Hi All, I have a query....say on server A, I have generated the Private and Public keys and shared the public key with server B. Now i can surelyconnect(without password) from server A to server B..... but can i similarly connect from server B to server A as well Regards (1 Reply)
Discussion started by: Arpit Narula
1 Replies

5. Shell Programming and Scripting

sftp using private and public keys

hi guys , i have few files i have to do sftp, the public and private key work like a magic , no problem at all the syntax is as below sftp -0 identityfile=~/ure/blsl/loc2/.ssh/id_rsa_ssh1 ssh1@remote >log_dir/file.timestamp<<end lcd folder cd folder put * quit end ================ my... (3 Replies)
Discussion started by: rockymayavia
3 Replies

6. Virtualization and Cloud Computing

Private, Public and Hybrid Clouds

Hi all, Private, Public and Hybrid Clouds I'm now testing OpenStack; Home OpenStack Open Source Cloud Computing Software -Infrastructure as a Service (IaaS) -Platform as a Service (PaaS) -Software as a Service (SaaS) It is an Open Source software. I'm interested to know whether... (0 Replies)
Discussion started by: satimis
0 Replies

7. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

8. Shell Programming and Scripting

Rsa public private key matching

Hi All, I have a requirement where i need to check if an rsa public key corresponds to a private key and hence return success or failure. Currently i am using the command diff <( ssh-keygen -y -e -f "$PRIVKEY" ) <( ssh-keygen -y -e -f "$PUBLICKEY" ) and its solving my purpose. This is in... (1 Reply)
Discussion started by: mritusmoi
1 Replies

9. UNIX for Advanced & Expert Users

Private and public key encryption

Hi, we have private and public key, encrypt file using public and want to decrypt using private key. can you please advise below commands are correct or other remedy if unix have? encrypt -a arcfour -k publickey.asc -i TESTFILE.csv -o TESTFILE00.csv decrypt -a arcfour -k privatekey.asc... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies

10. UNIX for Advanced & Expert Users

Encryption command required for public /private

Hi, i generate private and public key using below command. ssh-keygen -t rsa can you please share command for encryption and decryption file using above generated keys. Regards, (4 Replies)
Discussion started by: rizwan.shaukat
4 Replies
YAF_RESPONSE_ABSTRACT(3)						 1						  YAF_RESPONSE_ABSTRACT(3)

The Yaf_Response_Abstract class

INTRODUCTION
CLASS SYNOPSIS
Yaf_Response_Abstract Yaf_Response_Abstract Constants o const string$Yaf_Response_Abstract::DEFAULT_BODY"content" Properties o protected$_header o protected$_body o protected$_sendheader Methods o public bool Yaf_Response_Abstract::appendBody (string $content, [string $key]) o public bool Yaf_Response_Abstract::clearBody ([string $key]) o public void Yaf_Response_Abstract::clearHeaders (void ) o private void Yaf_Response_Abstract::__clone (void ) o public Yaf_Response_Abstract::__construct (void ) o public void Yaf_Response_Abstract::__destruct (void ) o public mixed Yaf_Response_Abstract::getBody ([string $key]) o public void Yaf_Response_Abstract::getHeader (void ) o public bool Yaf_Response_Abstract::prependBody (string $content, [string $key]) o public void Yaf_Response_Abstract::response (void ) o protected void Yaf_Response_Abstract::setAllHeaders (void ) o public bool Yaf_Response_Abstract::setBody (string $content, [string $key]) o public void Yaf_Response_Abstract::setHeader (void ) o public void Yaf_Response_Abstract::setRedirect (void ) o private void Yaf_Response_Abstract::__toString (void ) PROPERTIES
o $_header - o $_body - o $_sendheader - PHP Documentation Group YAF_RESPONSE_ABSTRACT(3)
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy