SCIENTIFIC-LINUX-USERS Archives

July 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
olli hauer <[log in to unmask]>
Reply To:
Date:
Mon, 28 Jul 2014 22:55:49 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
On 2014-07-28 16:08, Andrew Z wrote:
> I have an apple os script, that creates an lo alias ( for example
> 127.112.113) and then ssh -p xxxx 127.112.113 <rest of the command>
> 
> To begin with ifconfig doesn't work on creating aliases and according to
> rhel docs I need to copy ethXxx files if I want to create these aliases.
> Is there a better way,  than to copy files, to achieve the same?
> 

It's as simple as on apple/bsd.

ifconfig ethX:Y inet $IP/$CIDR
ifconfig ethX:Y del $IP

-- 
olli

ATOM RSS1 RSS2