Closed wangg12 closed 7 years ago
The original script works well for me on most distributions, including Ubuntu 16.04. I guess the problem might be that you have multiple addresses on your default interface.
Your script also works well in most cases. However, as ifconfig
is deprecated to some extent, I suggest we keep the iproute2
version on the web page.
On ubuntu 16.04, the original script does not work. I made some changes as follows (now it works well on my machine):