Skip to content

Commit

Permalink
Self assembling zones must set their own MTU (#458)
Browse files Browse the repository at this point in the history
Nexus is currently setting the MTU inside self-assembling zones, but
this goes against the idea that self-assembling zones perform their own
configuration. This will change shortly, so set the MTU of $DATALINK in
the method script for propolis.
  • Loading branch information
jmpesp authored Jul 7, 2023
1 parent 25111a8 commit 9e12522
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packaging/smf/method_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ if [[ $DATALINK == unknown ]] || [[ $GATEWAY == unknown ]]; then
exit "$SMF_EXIT_ERR_CONFIG"
fi

# TODO remove when https://github.com/oxidecomputer/stlouis/issues/435 is addressed
ipadm delete-if "$DATALINK" || true
ipadm create-if -t "$DATALINK"

ipadm set-ifprop -t -p mtu=9000 -m ipv4 "$DATALINK"
ipadm set-ifprop -t -p mtu=9000 -m ipv6 "$DATALINK"

ipadm show-addr "$DATALINK/ll" || ipadm create-addr -t -T addrconf "$DATALINK/ll"
ipadm show-addr "$DATALINK/omicron6" || ipadm create-addr -t -T static -a "$LISTEN_ADDR" "$DATALINK/omicron6"
route get -inet6 default -inet6 "$GATEWAY" || route add -inet6 default -inet6 "$GATEWAY"
Expand Down

0 comments on commit 9e12522

Please sign in to comment.