Sorry in english. Turn pnet9 to be a NAT cloud for external NAT access and supply DHCP to internal management interfaces like in pro.
Edit /etc/network/interfaces for pnet9 change to
iface eth9 inet manual auto pnet9 iface pnet9 inet static bridge_ports eth9 bridge_stp off bridge_hw 00:00:00:00:00:01 #required to ensure bridge is selected address 192.168.255.1 #must match with DHCP server netmask 255.255.255.0 network 192.168.255.0
Save file
Install DHCP server
$> sudo apt-get install isc-dhcp-server
Configure the DHCP server to be attached to Cloud9.
$>sudo vi /etc/default/isc-dhcp-server
Scroll to the bottom and edit the line below: $> INTERFACES=”pnet9”
Configure the DHCP by $> sudo vi /etc/dhcp/dhcpd.conf Comment out or delete the existing lines and create the following: Authoritative; # EVE-NG NAT Interface subnet 192.168.255.0 netmask 255.255.255.0 { range 192.168.255.10 192.168.255.240; interface pnet9; default-lease-time 600; max-lease-time 7200; option domain-name "eve-ng.com"; option domain-name-servers 8.8.8.8; option broadcast-address 192.168.255.255; option subnet-mask 255.255.255.0; option routers 192.168.255.1; }
Attach devices to pnet for NAT address in 192.168.255.10-240 range with DHCP enabled.
|