Thursday, January 26, 2012

change IP address on linux

I was having issues with git connection to my laptop thru ssh. Then after looking into it, my laptop had changed IP address. Now I didnt want to change all the git fetch origin source on all my repositories so here is how to change the IP address back.

# sudo ifconfig [connection] [IP you want]
$ sudo ifconfig eth0 192.168.1.5



sources:
http://www.cyberciti.biz/faq/linux-change-ip-address/

No comments:

Post a Comment