Skip to content

Commit

Permalink
added default gateway for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-guong committed Dec 10, 2021
1 parent e28096c commit 895d971
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions device-generator.bash
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ touch $device_name.startup
# clean if startup file exists
echo > $device_name.startup

# ===============================================================================================================================================
# IF CLIENT
if [ -z "$rip$ospf$bgp$zone$is_server" ]; then
echo "route add default gw <GATEWAY_IP>" >> $device_name.startup
fi

# ===============================================================================================================================================
# INTERFACES
echo "$interfaces_count interfaces required, configuring them..."
Expand Down

0 comments on commit 895d971

Please sign in to comment.