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

route -n
ip addr add dev enp6s0
ip route replace default via

route -n