[{"data":1,"prerenderedAt":441},["ShallowReactive",2],{"blog-\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta":3,"blog-\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta-surround":387,"blog-\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta-certifications":440},{"id":4,"title":5,"body":6,"categories":374,"cover":376,"cover_contain":213,"credly_badge_id":377,"date":378,"description":379,"extension":380,"meta":381,"navigation":213,"path":382,"related_certifications":377,"seo":383,"slug":384,"stem":385,"__hash__":386},"blog\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta.md","Configuring a Pseudo-Ethernet Interface with Vyatta",{"type":7,"value":8,"toc":365},"minimark",[9,14,18,22,66,71,78,82,133,137,348,354,358,361],[10,11,13],"h2",{"id":12},"real-world-use-case","Real-world use case",[15,16,17],"p",{},"You need to add a virtual MAC address to a Vyatta interface: here's how to configure a Pseudo-Ethernet Interface (peth).",[10,19,21],{"id":20},"vyatta-pseudo-ethernet-interface-peth","Vyatta: Pseudo Ethernet Interface (Peth)",[15,23,24,25,29,30,33,34,37,38,41,42,45,46,49,50,53,54,57,58,61,62,65],{},"A ",[26,27,28],"strong",{},"Pseudo-Ethernet Interface"," in ",[26,31,32],{},"Vyatta"," lets you ",[26,35,36],{},"save and optimize"," your network cards.\n",[26,39,40],{},"A network card"," generally only accepts ",[26,43,44],{},"a single IP address",", but with a Pseudo-Ethernet Interface that constraint no longer exists!\nThe ",[26,47,48],{},"Pseudo-Ethernet"," interface lets you ",[26,51,52],{},"add another IP"," to the interface, up to ",[26,55,56],{},"4095 IPs",".\nHow does it work? The principle is to ",[26,59,60],{},"specify the MAC address"," of the corresponding ",[26,63,64],{},"IP",".",[67,68,70],"h3",{"id":69},"diagram-with-one-network-card-and-3-peth0-interfaces","Diagram with one network card and 3 peth0 interfaces:",[15,72,73],{},[74,75],"img",{"alt":76,"src":77},"","\u002Fimages\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta\u002Fc01907d037.jpg",[67,79,81],{"id":80},"configuring-the-eth0-hardware-interface","Configuring the ETH0 HARDWARE interface:",[83,84,88],"pre",{"className":85,"code":86,"language":87,"meta":76,"style":76},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","set interfaces ethernet eth0 addresse 192.168.0.1\u002F24\nset interfaces ethernet eth0 description interface1\n","bash",[89,90,91,116],"code",{"__ignoreMap":76},[92,93,96,100,104,107,110,113],"span",{"class":94,"line":95},"line",1,[92,97,99],{"class":98},"s2Zo4","set",[92,101,103],{"class":102},"sfazB"," interfaces",[92,105,106],{"class":102}," ethernet",[92,108,109],{"class":102}," eth0",[92,111,112],{"class":102}," addresse",[92,114,115],{"class":102}," 192.168.0.1\u002F24\n",[92,117,119,121,123,125,127,130],{"class":94,"line":118},2,[92,120,99],{"class":98},[92,122,103],{"class":102},[92,124,106],{"class":102},[92,126,109],{"class":102},[92,128,129],{"class":102}," description",[92,131,132],{"class":102}," interface1\n",[67,134,136],{"id":135},"configuring-pseudo-ethernet-on-interface-eth0","Configuring Pseudo-Ethernet on interface ETH0:",[83,138,140],{"className":85,"code":139,"language":87,"meta":76,"style":76},"set interfaces pseudo-ethernet peth0 addresse 192.168.0.2\u002F24\nset interfaces pseudo-ethernet peth0 description lan1\nset interfaces pseudo-ethernet peth0 link eth0\nset interfaces pseudo-ethernet peth0 mac 00:15:C5:2d:AC:E6\n\nset interfaces pseudo-ethernet peth1 addresse 192.168.0.3\u002F24\nset interfaces pseudo-ethernet peth1 description serveur1\nset interfaces pseudo-ethernet peth1 link eth0\nset interfaces pseudo-ethernet peth1 mac 00:15:C5:2d:AC:E7\n\nset interfaces pseudo-ethernet peth2 addresse 192.168.0.4\u002F24\nset interfaces pseudo-ethernet peth2 description lan2\nset interfaces pseudo-ethernet peth2 link eth0\nset interfaces pseudo-ethernet peth2 mac 00:15:C5:2d:AC:E8\n",[89,141,142,159,174,191,208,215,232,248,263,279,284,301,317,332],{"__ignoreMap":76},[92,143,144,146,148,151,154,156],{"class":94,"line":95},[92,145,99],{"class":98},[92,147,103],{"class":102},[92,149,150],{"class":102}," pseudo-ethernet",[92,152,153],{"class":102}," peth0",[92,155,112],{"class":102},[92,157,158],{"class":102}," 192.168.0.2\u002F24\n",[92,160,161,163,165,167,169,171],{"class":94,"line":118},[92,162,99],{"class":98},[92,164,103],{"class":102},[92,166,150],{"class":102},[92,168,153],{"class":102},[92,170,129],{"class":102},[92,172,173],{"class":102}," lan1\n",[92,175,177,179,181,183,185,188],{"class":94,"line":176},3,[92,178,99],{"class":98},[92,180,103],{"class":102},[92,182,150],{"class":102},[92,184,153],{"class":102},[92,186,187],{"class":102}," link",[92,189,190],{"class":102}," eth0\n",[92,192,194,196,198,200,202,205],{"class":94,"line":193},4,[92,195,99],{"class":98},[92,197,103],{"class":102},[92,199,150],{"class":102},[92,201,153],{"class":102},[92,203,204],{"class":102}," mac",[92,206,207],{"class":102}," 00:15:C5:2d:AC:E6\n",[92,209,211],{"class":94,"line":210},5,[92,212,214],{"emptyLinePlaceholder":213},true,"\n",[92,216,218,220,222,224,227,229],{"class":94,"line":217},6,[92,219,99],{"class":98},[92,221,103],{"class":102},[92,223,150],{"class":102},[92,225,226],{"class":102}," peth1",[92,228,112],{"class":102},[92,230,231],{"class":102}," 192.168.0.3\u002F24\n",[92,233,235,237,239,241,243,245],{"class":94,"line":234},7,[92,236,99],{"class":98},[92,238,103],{"class":102},[92,240,150],{"class":102},[92,242,226],{"class":102},[92,244,129],{"class":102},[92,246,247],{"class":102}," serveur1\n",[92,249,251,253,255,257,259,261],{"class":94,"line":250},8,[92,252,99],{"class":98},[92,254,103],{"class":102},[92,256,150],{"class":102},[92,258,226],{"class":102},[92,260,187],{"class":102},[92,262,190],{"class":102},[92,264,266,268,270,272,274,276],{"class":94,"line":265},9,[92,267,99],{"class":98},[92,269,103],{"class":102},[92,271,150],{"class":102},[92,273,226],{"class":102},[92,275,204],{"class":102},[92,277,278],{"class":102}," 00:15:C5:2d:AC:E7\n",[92,280,282],{"class":94,"line":281},10,[92,283,214],{"emptyLinePlaceholder":213},[92,285,287,289,291,293,296,298],{"class":94,"line":286},11,[92,288,99],{"class":98},[92,290,103],{"class":102},[92,292,150],{"class":102},[92,294,295],{"class":102}," peth2",[92,297,112],{"class":102},[92,299,300],{"class":102}," 192.168.0.4\u002F24\n",[92,302,304,306,308,310,312,314],{"class":94,"line":303},12,[92,305,99],{"class":98},[92,307,103],{"class":102},[92,309,150],{"class":102},[92,311,295],{"class":102},[92,313,129],{"class":102},[92,315,316],{"class":102}," lan2\n",[92,318,320,322,324,326,328,330],{"class":94,"line":319},13,[92,321,99],{"class":98},[92,323,103],{"class":102},[92,325,150],{"class":102},[92,327,295],{"class":102},[92,329,187],{"class":102},[92,331,190],{"class":102},[92,333,335,337,339,341,343,345],{"class":94,"line":334},14,[92,336,99],{"class":98},[92,338,103],{"class":102},[92,340,150],{"class":102},[92,342,295],{"class":102},[92,344,204],{"class":102},[92,346,347],{"class":102}," 00:15:C5:2d:AC:E8\n",[15,349,350,351,65],{},"Nothing stops you from creating VLANs inside your Pseudo-Ethernet Interfaces.\nYou now know how to ",[26,352,353],{},"save and optimize a network interface on Vyatta",[10,355,357],{"id":356},"conclusion","Conclusion",[15,359,360],{},"Pseudo-Ethernet (peth) interfaces on Vyatta let you associate several virtual IP and MAC addresses with a single physical network card, up to 4095 IPs per interface. This technique avoids multiplying physical network cards while keeping a clear logical separation between uses (LAN, server, etc.). It can also be combined with VLANs to further refine network segmentation.",[362,363,364],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":76,"searchDepth":118,"depth":118,"links":366},[367,368,373],{"id":12,"depth":118,"text":13},{"id":20,"depth":118,"text":21,"children":369},[370,371,372],{"id":69,"depth":176,"text":70},{"id":80,"depth":176,"text":81},{"id":135,"depth":176,"text":136},{"id":356,"depth":118,"text":357},[375],"Réseau","\u002Fimages\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta\u002Fa44b82e35f.jpg",null,"2013-10-20","Add a MAC address to an interface with \"peth\". Vyatta optimizes interfaces with Pseudo-Ethernet.","md",{},"\u002Fen\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta",{"title":5,"description":379},"configuration-une-pseudo-ethernet-interface-avec-vyatta","en\u002Fblog\u002Fconfiguration-une-pseudo-ethernet-interface-avec-vyatta","rd9_D1PgyGdQ7NbXhHKql1gLE6c0qgFcRE-xPTM59UA",[388,394,400,406,413,420,427,433],{"title":389,"path":390,"stem":391,"date":392,"cover":393,"categories":377,"children":-1},"Lost root Password on VMware ESXi 5.x","\u002Fen\u002Fblog\u002Fmot-passe-root-perdu-sur-vmware-esxi","en\u002Fblog\u002Fmot-passe-root-perdu-sur-vmware-esxi","2013-11-02","\u002Fimages\u002Fblog\u002Fmot-passe-root-perdu-sur-vmware-esxi\u002Fd8c6089e77.png",{"title":395,"path":396,"stem":397,"date":398,"cover":399,"categories":377,"children":-1},"Installing a Firefox Sync Server","\u002Fen\u002Fblog\u002Finstallation-serveur-firefox-sync","en\u002Fblog\u002Finstallation-serveur-firefox-sync","2013-11-01","\u002Fimages\u002Fblog\u002Finstallation-serveur-firefox-sync\u002Feb09763184.jpg",{"title":401,"path":402,"stem":403,"date":404,"cover":405,"categories":377,"children":-1},"Installing Zimbra 8 Open Source Edition","\u002Fen\u002Fblog\u002Finstallation-zimbra-open-source-edition","en\u002Fblog\u002Finstallation-zimbra-open-source-edition","2013-10-24","\u002Fimages\u002Fblog\u002Finstallation-zimbra-open-source-edition\u002F1a88e8245b.jpg",{"title":407,"path":408,"stem":409,"date":410,"cover":411,"categories":412,"children":-1},"iSCSI RPN-SAN with VMware ESXi","\u002Fen\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi","en\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi","2013-10-23","\u002Fimages\u002Fblog\u002Fblog-iscsi-rpn-san-avec-vmware-esxi\u002Fd8c6089e77.png",[375],{"title":414,"path":415,"stem":416,"date":417,"cover":418,"categories":419,"children":-1},"Configuring VLANs with Vyatta","\u002Fen\u002Fblog\u002Fconfiguration-vlan-avec-vyatta","en\u002Fblog\u002Fconfiguration-vlan-avec-vyatta","2013-10-17","\u002Fimages\u002Fblog\u002Fconfiguration-vlan-avec-vyatta\u002Fa44b82e35f.jpg",[375],{"title":421,"path":422,"stem":423,"date":424,"cover":425,"categories":426,"children":-1},"Virtual Networking with VMware ESXi 5","\u002Fen\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi","en\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi","2013-10-10","\u002Fimages\u002Fblog\u002Fblog-mise-reseau-virtuelle-vmware-esxi\u002Fd8c6089e77.png",[375],{"title":428,"path":429,"stem":430,"date":431,"cover":432,"categories":377,"children":-1},"GhettoVCB, the Free Backup Solution for VMware ESXi","\u002Fen\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi","en\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi","2013-10-08","\u002Fimages\u002Fblog\u002Fghettovcb-sauvegarde-gratuite-vmware-esxi\u002Fd8c6089e77.png",{"title":434,"path":435,"stem":436,"date":437,"cover":438,"categories":439,"children":-1},"Configuring VPN Remote Access with Vyatta","\u002Fen\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta","en\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta","2013-10-03","\u002Fimages\u002Fblog\u002Fconfiguration-des-acces-distance-vpn-avec-vyatta\u002Fa44b82e35f.jpg",[375],[],1786644893221]