This configuration sets up a LACP bonded interface bond10 using ethernet interfaces eth2 and eth3. It creates VLAN 40 on the bond with IP 10.0.40.1, sets up NAT and DHCP for the VLAN subnet, and configures DNS forwarding and the DHCP server to serve clients on the VLAN.
This configuration sets up a LACP bonded interface bond10 using ethernet interfaces eth2 and eth3. It creates VLAN 40 on the bond with IP 10.0.40.1, sets up NAT and DHCP for the VLAN subnet, and configures DNS forwarding and the DHCP server to serve clients on the VLAN.
This configuration sets up a LACP bonded interface bond10 using ethernet interfaces eth2 and eth3. It creates VLAN 40 on the bond with IP 10.0.40.1, sets up NAT and DHCP for the VLAN subnet, and configures DNS forwarding and the DHCP server to serve clients on the VLAN.
set interfaces bonding bond10 description 'LACP-VMWARE'
set interfaces bonding bond10 hash-policy 'layer2'
set interfaces bonding bond10 mode 802.3ad set interfaces ethernet eth2 bond-group bond10 set interfaces ethernet eth2 description 'member of bond10' set interfaces ethernet eth3 bond-group 'bond10' set interfaces ethernet eth3 description 'member of bond10'
set interfaces bonding bond10 vif 40 address 10.0.40.1/24
set interfaces bonding bond10 vif 40 description 'VLAN 40'
set nat source rule 40 outbound-interface 'eth0'
set nat source rule 40 source address '10.0.40.0/24' set nat source rule 40 translation address 'masquerade'
set service dns forwarding listen-on 'bond10.40'
set service dhcp-server shared-network-name LAG-40 authoritative 'disable'
set service dhcp-server shared-network-name LAG-40 subnet 10.0.40.0/24 start 10.0.40.110 stop 10.0.40.160 set service dhcp-server shared-network-name LAG-40 subnet 10.0.40.0/24 default- router 10.0.40.1 set service dhcp-server shared-network-name LAG-40 subnet 10.0.40.0/24 dns-server 8.8.8.8 set service dhcp-server shared-network-name LAG-40 subnet 10.0.40.0/24 lease 86400