Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # DESCRIPTION
- # "setmtu" script for Asus wl500g router.
- #
- # Set recommended MTU value for WAN
- #
- #
- # INSTRUCTIONS
- # Put script in "/usr/local/sbin"
- # Save flashfs:
- # flashfs save && flashfs commit && flashfs enable
- # Reboot device
- # reboot
- # WAN intarface name
- WAN_INTERFACE="vlan1"
- # MTU value
- MTU="1400"
- # Log to stderr as well as the system log
- LOGGER_OPTIONS=-s
- logger $LOGGER_OPTIONS "Set MTU=$MTU on $WAN_INTERFACE interface"
- ifconfig $WAN_INTERFACE mtu $MTU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement