Skip to content

Commit

Permalink
Add VLAN interfaces only for relay or gateway nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
benhylau committed Jul 15, 2019
1 parent 55c213b commit 1a6152f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prodnet/espressobin/install
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ iface wan:0 inet static
END

# Configure VLANs for nodes with multiple point-to-point mesh links (require pre-tagged packets into wan)
if [[ "$NODE_TYPE" == 'relay' ]] || [[ "$NODE_TYPE" == 'gateway' ]]; then

for vlan in 1 2 3 4; do
sudo tee /etc/network/interfaces.d/wan.$vlan << END
auto wan.$vlan
Expand All @@ -149,6 +151,8 @@ iface wan.$vlan:0 inet static
END
done

fi

# Configure wan.4 interface and routes for gateway node
if [[ "$NODE_TYPE" == 'gateway' ]]; then

Expand Down

0 comments on commit 1a6152f

Please sign in to comment.