Use sed..for example something like:

# cp ifcfg-eth0 ifcfg-eth0.old
# sed "s/10.1.20.88/10.1.20.xxx/g" ifcfg-eth0 > ifcfg-eth0.new

..thanks



From:   "Frank M. Ramaekers" <[email protected]>
To:     [email protected]
Date:   10/06/2020 10:15 AM
Subject:        [EXTERNAL] Modify ifcfg-encw0.0.nnnn at DR
Sent by:        Linux on 390 Port <[email protected]>



How can I change the IP address of a network adapter at D/R.  Since the IP
address is unusable, I cannot ssh to the machine.   Attempting vi from the
VM console is a mess.
I have two lines to change:

IPADDR="10.1.20.88"
PREFIX="16"                (to 24)

Ideas?

Frank M. Ramaekers Jr.  | Systems Senior Administrator | CIS Mainframe
Services
Unisys | (512)-387-3949 | Francis.Ramaekers at Unisys.Com

[unisys_logo]<
http://www.unisys.com/
 >

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all devices.
[Grey_LI]<
http://www.linkedin.com/company/unisys
 >  [Grey_TW] <
http://twitter.com/unisyscorp
 >  [Grey_GP] <
https://plus.google.com/+UnisysCorp/posts
 > [Grey_YT] <
http://www.youtube.com/theunisyschannel
 > [Grey_FB] <
http://www.facebook.com/unisyscorp
 > [Grey_Vimeo] <
https://vimeo.com/unisys
 > [Grey_UB] <
http://blogs.unisys.com/
 >

----------------------------------------------------------------------
This message contains information which is privileged and confidential and
is solely for the use of the intended recipient. If you are not the
intended recipient, be aware that any review, disclosure, copying,
distribution, or use of the contents of this message is strictly
prohibited. If you have received this in error, please destroy it
immediately and notify us at [email protected].

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or
visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390





----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to