Skip to content

Commit

Permalink
stp="off"
Browse files Browse the repository at this point in the history
  • Loading branch information
goffinet committed Jan 4, 2021
1 parent 580f6da commit 4503090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions add-bridge-l2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ cat << EOF > ${path}/${name}.xml
<forward mode="bridge">
<interface dev="${interface}"/>
</forward>
<bridge name="${bridge}" stp="off"/>
</network>
EOF
}
Expand Down
6 changes: 4 additions & 2 deletions add-bridge-l3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ cat << EOF > ${path}/${name}.xml
<name>${name}</name>
<forward mode="route"/>
<interface dev="${interface// /}"/>
<bridge name="${bridge}" stp="on" delay="0"/>
</forward>
<bridge name="${bridge}" stp="off"/>
<ip address="${ip4_router_address}" netmask="${ip4_router_address}">
</ip>
</network>
Expand All @@ -58,7 +59,8 @@ cat << EOF > ${path}/${name}.xml
<name>${name}</name>
<forward mode="route"/>
<interface dev="${interface// /}"/>
<bridge name="${bridge}" stp="on" delay="0"/>
</forward>
<bridge name="${bridge}" stp="off"/>
<ip address="${ip4_router_address}" netmask="${ip4_netmask}">
<dhcp>
<range start="${ip4_first_address}" end="${ip4_router_address}"/>
Expand Down

0 comments on commit 4503090

Please sign in to comment.