{"published":"2013-07-12 19:32:03","image_url":null,"description":"\u3053\u3061\u3089\u3002\u3053\u3093\u306a\u611f\u3058\u306bRuby\u30b9\u30af\u30ea\u30d7\u30c8\u3067NIC\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u305c\u3044\u3048\u30fc\u3044 eth = Netif.new(\"eth0\") eth.up eth.mtu = 1000 eth.set_addr(\"172.0.0.1\", \"255.255.255.0\") puts \"addr:#{eth.addr}\" puts \"netmask:#{eth.netmask}\" puts \"broadaddr:#{eth.broadaddr}\" puts \"promisc?:#{eth.promisc?}\" puts \"up?:#{eth.up?}\" puts \"eth3 exists?:#{Netif.exists?\u2026","type":"rich","url":"https://syuu1228.hatenablog.com/entry/20130712/1373625123","provider_url":"https://hatena.blog","categories":["linux","Network","FreeBSD","Ruby"],"title":"\u305d\u3093\u306a\u308f\u3051\u3067\u30aa\u30ec\u30aa\u30ecifconfig\u3092Ruby\u3067\u66f8\u304f\u70ba\u306eC\u62e1\u5f35\u300cruby-netif\u300d\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002","width":"100%","height":"190","version":"1.0","blog_title":"syuu1228's blog","provider_name":"Hatena Blog","author_name":"syuu1228","blog_url":"https://syuu1228.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/syuu1228/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyuu1228.hatenablog.com%2Fentry%2F20130712%2F1373625123\" title=\"\u305d\u3093\u306a\u308f\u3051\u3067\u30aa\u30ec\u30aa\u30ecifconfig\u3092Ruby\u3067\u66f8\u304f\u70ba\u306eC\u62e1\u5f35\u300cruby-netif\u300d\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 - syuu1228&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}