{"id":441,"date":"2010-06-03T23:48:40","date_gmt":"2010-06-03T21:48:40","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2010\/06\/03\/configuring-an-ad-hoc-network-on-suse\/"},"modified":"2010-06-03T23:48:40","modified_gmt":"2010-06-03T21:48:40","slug":"configuring-an-ad-hoc-network-on-suse","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2010\/06\/03\/configuring-an-ad-hoc-network-on-suse\/","title":{"rendered":"Configuring an ad hoc network on suse"},"content":{"rendered":"<p>Since I don&#8217;t own a gigabit router but I do have Gbit NICs on my laptop and main computer, I set up a peer to peer network for optimal performance when I have to transfer a large volume. I don&#8217;t do that often so I end up losing time every time. So I decided to write a small blog post about it. \ud83d\ude42 My concrete setup is transfering between a windows and linux machine.<\/p>\n<p>In windows, when the network adapter is configured for DHCP but it can&#8217;t find a DHCP server, it automatically falls back to link-local addressing. On IPv4, this is the 169.254.0.0\/16 block. (Apparently, Microsoft likes to calls this <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa505918.aspx\">APIPA<\/a>.)<br \/>\nHowever, on my opensuse 11.1 box, it seems not automatically configured for that. When you open Yast -> Network Settings, edit the network interface and enable &#8220;zeroconf&#8221; under &#8220;dynamic address&#8221;.<br \/>\n<a href='https:\/\/mattiesworld.gotdns.org\/weblog\/wp-content\/uploads\/2010\/06\/yast_zeroconf.png' title='Yast network zeroconfig configuration'><img src='https:\/\/mattiesworld.gotdns.org\/weblog\/wp-content\/uploads\/2010\/06\/yast_zeroconf.png' alt='Yast network zeroconfig configuration' \/><\/a><br \/>\nAll easy peasy and intuitive.<\/p>\n<p>But now comes the catch! After applying these settings, it works&#8230; but stops working after a few secs\/mins! I checked the messages log and found out the dhcp client tries to restore the old lease if it doesn&#8217;t receive an offer. This causes the zeroconf address to be invalidated. So, before enabling Zeroconf, be sure to release the lease first. You can do this as follows:<\/p>\n<p><code>sudo dhclient -r<\/code><\/p>\n<p>Possibly if you keep the DHCP+Zeroconf setting in yast, you can just release the lease when you want to setup a local network and it would fallback to zeroconf. Didn&#8217;t verify it though (had to go online to document this ;))<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I don&#8217;t own a gigabit router but I do have Gbit NICs on my laptop and main computer, I set up a peer to peer network for optimal performance when I have to transfer a large volume. I don&#8217;t do that often so I end up losing time every time. So I decided to &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2010\/06\/03\/configuring-an-ad-hoc-network-on-suse\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Configuring an ad hoc network on suse<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,20],"tags":[],"class_list":["post-441","post","type-post","status-publish","format-standard","hentry","category-linux","category-suse"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=441"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/441\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}