bashSometimes we need to set local ip under rescue mode Centos because we need to reinstall kernel. It is basically the same as this article, just this time I create a simple bash script in toort directory. This is only for my note.

nano -w localip.sh
#!/bin/bash

route -n
ip addr add dev enp6s0 192.168.0.22/24
ip route replace default via 192.168.0.1

route -n

Leave a Reply

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock