{"id":238,"date":"2008-09-06T09:22:15","date_gmt":"2008-09-06T08:22:15","guid":{"rendered":"http:\/\/blog.sahits.ch\/?p=238"},"modified":"2017-12-24T21:42:28","modified_gmt":"2017-12-24T20:42:28","slug":"wrongfully-assigned-ip-address","status":"publish","type":"post","link":"http:\/\/sahits.ch\/blog\/blog\/2008\/09\/06\/wrongfully-assigned-ip-address\/","title":{"rendered":"Wrongfully assigned IP address"},"content":{"rendered":"<p>If you have no internet connection that may have many causes. I recently had a wrongfully assigned IP address. The computer accesses the internet through a router that assigns an IP address form 192.168.1.0\/24 address range.<br \/>\nThe first thing if the connection to the internet fails is  to check the connection to the router with a ping. In my case this failed. Executing the ifconfig showed why:<br \/>\n<code>ifconfig -a<\/code><br \/>\nThe assigned IP was not in the defined range by the router. In fact it was a public IP (this might be a sign that someone unauthorised tried to gain access). It seems the IP was defined static since a restart of the system or the router had no effect.<br \/>\nHere is the solution:<br \/>\n<code>sudo ifconfig eth0 down<br \/>\nsudo ifconfig eth0 up<\/code><br \/>\neth0 is the network interface with the wrong IP. If you are on another distribution than Ubuntu you may not need the sudo to bring the interface down and up again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have no internet connection that may have many causes. I recently had a wrongfully assigned IP address. The computer accesses the internet through a router that assigns an IP address form 192.168.1.0\/24 address range. The first thing if the connection to the internet fails is to check the connection to the router with &hellip; <a href=\"http:\/\/sahits.ch\/blog\/blog\/2008\/09\/06\/wrongfully-assigned-ip-address\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWrongfully assigned IP address\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9,10],"tags":[302,303],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-computer","category-linux","category-ubuntu","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":2,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":2572,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/2572"}],"wp:attachment":[{"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sahits.ch\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}