How can I switch between IP addresses on Ubuntu 18.4. My network card has several IP addresses. How can I, for example, change my IP address automatically every 10 seconds?

  • You may not have to do anything. You can see the valid_lft and preferred_lft count down in the output of ip address list, setting up reasonable values is the job of the mechanism that assigned the IP addresses (your router, probably).
    – anx
    Sep 15 at 13:32
  • Valid lifetime and preferred lifetime of each is forever Sep 15 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.