curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
— IT happens.
Notes on IT network systems.
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
Here’s how to add a secondary IP address to an existing network interface of a CentOS7 server. Don’t forget the config files — this won’t survive a reboot.
ip addr add 172.26.7.80/24 brd 172.26.7.255 dev team1 ip addr show team1
ip rule add from 172.26.7.80/32 table rt1 ip rule show
If you gotta roll it back:
ip addr del 172.26.7.80/24 dev team1 ip rule del from 172.26.7.80/32 table rt1