{"id":1364,"date":"2021-12-22T22:49:02","date_gmt":"2021-12-22T13:49:02","guid":{"rendered":"http:\/\/192.168.20.1\/?p=1364"},"modified":"2021-12-22T22:49:02","modified_gmt":"2021-12-22T13:49:02","slug":"eve-ng-interfaces","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=1364","title":{"rendered":"EVE-NG Interfaces"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Network Emulation Tool EVE-NG \u306e OS(Ubuntu 16.04) \u306e Interface \u8a2d\u5b9a\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<h2>Network Diagram<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/12\/eve-ng-bridge_cloud-847x598.png\" alt=\"\" width=\"847\" height=\"598\" \/><\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.eve-ng.net\/\">EVE-NG<\/a><\/li>\n<\/ul>\n<h2>Environment<\/h2>\n<p>OS<\/p>\n<pre>root@eve-ng:~# cat \/etc\/os-release\r\nNAME=\"Ubuntu\"\r\nVERSION=\"16.04.7 LTS (Xenial Xerus)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 16.04.7 LTS\"\r\nVERSION_ID=\"16.04\"\r\nHOME_URL=\"http:\/\/www.ubuntu.com\/\"\r\nSUPPORT_URL=\"http:\/\/help.ubuntu.com\/\"\r\nBUG_REPORT_URL=\"http:\/\/bugs.launchpad.net\/ubuntu\/\"\r\nVERSION_CODENAME=xenial\r\nUBUNTU_CODENAME=xenial\r\nroot@eve-ng:~# \r\n<\/pre>\n<h2>Interfaces<\/h2>\n<pre>root@eve-ng:~# ifconfig\r\neth0      Link encap:Ethernet  HWaddr 08:00:27:a1:24:34  \r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:113849 errors:0 dropped:76 overruns:0 frame:0\r\n          TX packets:32883 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:133466582 (133.4 MB)  TX bytes:6845422 (6.8 MB)\r\n\r\nlo        Link encap:Local Loopback  \r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          inet6 addr: ::1\/128 Scope:Host\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:23348 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:23348 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:2342429 (2.3 MB)  TX bytes:2342429 (2.3 MB)\r\n\r\npnet0     Link encap:Ethernet  HWaddr 08:00:27:a1:24:34  \r\n          inet addr:192.168.1.161  Bcast:192.168.1.255  Mask:255.255.255.0\r\n          inet6 addr: 2408:211:540:ca00:a00:27ff:fea1:2434\/64 Scope:Global\r\n          inet6 addr: 2408:211:540:ca00:b8e5:93cd:297a:aced\/64 Scope:Global\r\n          inet6 addr: fe80::a00:27ff:fea1:2434\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:49331 errors:0 dropped:2444 overruns:0 frame:0\r\n          TX packets:31495 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:125112680 (125.1 MB)  TX bytes:6392270 (6.3 MB)\r\n\r\npnet1     Link encap:Ethernet  HWaddr 56:81:54:05:71:de  \r\n          inet6 addr: fe80::5481:54ff:fe05:71de\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1076 (1.0 KB)\r\n\r\npnet2     Link encap:Ethernet  HWaddr 86:3f:de:0b:3b:40  \r\n          inet6 addr: fe80::843f:deff:fe0b:3b40\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet3     Link encap:Ethernet  HWaddr ee:ef:d7:10:0f:df  \r\n          inet6 addr: fe80::ecef:d7ff:fe10:fdf\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet4     Link encap:Ethernet  HWaddr 4a:6f:5a:f0:ba:9a  \r\n          inet6 addr: fe80::486f:5aff:fef0:ba9a\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet5     Link encap:Ethernet  HWaddr 12:50:b8:9f:af:22  \r\n          inet6 addr: fe80::1050:b8ff:fe9f:af22\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet6     Link encap:Ethernet  HWaddr 36:e6:5a:36:5b:f5  \r\n          inet6 addr: fe80::34e6:5aff:fe36:5bf5\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1076 (1.0 KB)\r\n\r\npnet7     Link encap:Ethernet  HWaddr 4a:7f:5b:a5:b8:5c  \r\n          inet6 addr: fe80::487f:5bff:fea5:b85c\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet8     Link encap:Ethernet  HWaddr ca:ee:90:ff:6f:94  \r\n          inet6 addr: fe80::c8ee:90ff:feff:6f94\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\npnet9     Link encap:Ethernet  HWaddr c6:2c:2d:97:3e:49  \r\n          inet6 addr: fe80::c42c:2dff:fe97:3e49\/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KB)\r\n\r\nroot@eve-ng:~# \r\n<\/pre>\n<pre>root@eve-ng:\/opt# cat \/etc\/network\/interfaces\r\n# This file describes the network interfaces available on your system\r\n# and how to activate them. For more information, see interfaces(5).\r\n\r\n# The loopback network interface\r\nauto lo\r\niface lo inet loopback\r\n\r\n# The primary network interface\r\niface eth0 inet manual\r\nauto pnet0\r\niface pnet0 inet static\r\n    address 192.168.1.161\r\n    netmask 255.255.255.0\r\n    gateway 192.168.1.1\r\n    dns-domain example.com\r\n    dns-nameservers 192.168.1.1 192.168.1.10\r\n    bridge_ports eth0\r\n    bridge_stp off\r\n\r\n# Cloud devices\r\niface eth1 inet manual\r\nauto pnet1\r\niface pnet1 inet manual\r\n    bridge_ports eth1\r\n    bridge_stp off\r\n\r\niface eth2 inet manual\r\nauto pnet2\r\niface pnet2 inet manual\r\n    bridge_ports eth2\r\n    bridge_stp off\r\n\r\niface eth3 inet manual\r\nauto pnet3\r\niface pnet3 inet manual\r\n    bridge_ports eth3\r\n    bridge_stp off\r\n\r\niface eth4 inet manual\r\nauto pnet4\r\niface pnet4 inet manual\r\n    bridge_ports eth4\r\n    bridge_stp off\r\n\r\niface eth5 inet manual\r\nauto pnet5\r\niface pnet5 inet manual\r\n    bridge_ports eth5\r\n    bridge_stp off\r\n\r\niface eth6 inet manual\r\nauto pnet6\r\niface pnet6 inet manual\r\n    bridge_ports eth6\r\n    bridge_stp off\r\n\r\niface eth7 inet manual\r\nauto pnet7\r\niface pnet7 inet manual\r\n    bridge_ports eth7\r\n    bridge_stp off\r\n\r\niface eth8 inet manual\r\nauto pnet8\r\niface pnet8 inet manual\r\n    bridge_ports eth8\r\n    bridge_stp off\r\n\r\niface eth9 inet manual\r\nauto pnet9\r\niface pnet9 inet manual\r\n    bridge_ports eth9\r\n    bridge_stp off\r\nroot@eve-ng:\/opt# \r\n<\/pre>\n<h2>EVE-NG Bridge and Cloud<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/12\/eve-ng-add-net-847x598.png\" alt=\"\" width=\"847\" height=\"598\" \/><\/p>\n<p>EVE-NG \u306e Network \u306b\u306f<\/p>\n<ul>\n<li>Bridge<\/li>\n<li>Cloud<\/li>\n<\/ul>\n<p>\u304c\u3042\u308b\u3002<\/p>\n<p>Bridge \u306f\u305d\u306e\u540d\u306e\u901a\u308a Bridge \u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3082\u306e\u3067 EVE-NG \u5185\u306e Device \u3092 L2 \u3067\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n<p>Cloud \u306f \/etc\/network\/interfaces \u306e pnet0\u301cpnet9 \u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>pnet \u306fbridge interface\u3067 pnet0\u301cpnet9 \u304c\u7269\u7406Interface\u3068\u95a2\u9023\u4ed8\u3051\u3089\u308c\u308b\u3002<\/p>\n<p>pnet0 \u306f EVE-NG \u306e Management Interface \u3068\u95a2\u9023\u4ed8\u3051\u3089\u308c\u308b\u3002\u307e\u305f \u7269\u7406Interface\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306fpnet X \u304c eth X \u3068\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3001\u5916\u90e8\u306e\u30c7\u30d0\u30a4\u30b9\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Network Emulation Tool EVE-NG \u306e OS(Ubuntu 16.04) \u306e Interface \u8a2d\u5b9a\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002 Network Diagram Reference EV [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-1364","post","type-post","status-publish","format-standard","hentry","category-network-emulation"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1364"}],"version-history":[{"count":1,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions"}],"predecessor-version":[{"id":1367,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions\/1367"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}