Skip to content

SantaBarbaraDataSystems

— IT happens.

  • /SBDS.com/etc/
  • /SBDS.com/root/

Category: networking

Notes on IT network systems.

curl for public IP address

Posted on January 12, 2017 - March 7, 2017 by elijah
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

 

Posted in networking, useful commands

add a new IP address to a Centos7 server without network restart

Posted on August 1, 2016 - March 7, 2017 by elijah

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

 

Posted in Centos7, networking, server configs

Recent Posts

  • delete
  • cabon-cache TLS error after update
  • setup Firewalld
  • Apache security settings
  • curl for public IP address

Categories

  • Apache
  • Centos7
  • errors
  • Firewalld
  • installs
  • Mutt
  • networking
  • Python
  • server configs
  • useful commands

Recent Comments

    Archives

    • March 2017
    • January 2017
    • December 2016
    • October 2016
    • August 2016

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress | Theme: micro, developed by DevriX.