You can do something like
        sed -i -e 's/16/24/g'  filename

Or you can change the info with the IP command, and then get in and fix with VI

 

-----Original Message-----
From: Linux on 390 Port <LINUX-390@VM.MARIST.EDU> On Behalf Of Frank M. 
Ramaekers
Sent: Tuesday, October 6, 2020 8:07 AM
To: LINUX-390@VM.MARIST.EDU
Subject: [LINUX-390] Modify ifcfg-encw0.0.nnnn at DR

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 
privacy...@globe.life.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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 lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to