Home » Archive

Articles tagged with: local ip centos

Linux tips »

[29 Nov 2021 | No Comment | ]

Sometimes 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