{"id":80,"date":"2009-08-27T12:15:15","date_gmt":"2009-08-27T12:15:15","guid":{"rendered":"http:\/\/www.adriangrigoras.com\/blog\/?p=80"},"modified":"2009-08-27T12:15:15","modified_gmt":"2009-08-27T12:15:15","slug":"creating-ethernet-aliases","status":"publish","type":"post","link":"https:\/\/adriangrigoras.com\/blog\/creating-ethernet-aliases\/","title":{"rendered":"Creating Ethernet Aliases"},"content":{"rendered":"<p>If you need to configure more network aliases, you can use the following commands:<\/p>\n<blockquote>\n<address>vi \/etc\/network\/interfaces<\/address>\n<\/blockquote>\n<p>Add the following lines:<\/p>\n<blockquote>\n<address>auto eth0:0<br style=\"padding: 0px; margin: 0px;\" \/>iface eth0:0 inet static<br style=\"padding: 0px; margin: 0px;\" \/>name Ethernet alias LAN card<br style=\"padding: 0px; margin: 0px;\" \/>address 192.168.1.101<br style=\"padding: 0px; margin: 0px;\" \/>netmask 255.255.255.0<br style=\"padding: 0px; margin: 0px;\" \/>broadcast 192.168.1.255<br style=\"padding: 0px; margin: 0px;\" \/>network 192.168.1.0<\/address>\n<\/blockquote>\n<p>Restart the network service:<\/p>\n<blockquote>\n<address>\/etc\/init.d\/networking restart<\/address>\n<address><\/address>\n<\/blockquote>\n<p>Now your machine will response also to 192.168.0.101.<\/p>\n<p>You can use up to 254 aliases for one interface: eth0:1, eth0:2, eth0:N.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need to configure more network aliases, you can use the following commands: vi \/etc\/network\/interfaces Add the following lines: auto eth0:0iface eth0:0 inet staticname Ethernet alias LAN cardaddress 192.168.1.101netmask 255.255.255.0broadcast 192.168.1.255network 192.168.1.0 Restart the network service: \/etc\/init.d\/networking restart Now your machine will response also to 192.168.0.101. You can use up to 254 aliases for\u2026 <span class=\"read-more\"><a href=\"https:\/\/adriangrigoras.com\/blog\/creating-ethernet-aliases\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":0,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"wp:attachment":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}