How do I add a second IP address in Linux?

How do I add a second IP address in Linux?
Answer
Add a secondary IP to Linux
  1. Using ifconfig. If you want to add a secondary IP address to a NIC already in use in Linux, and have that change only temporary. …
  2. Using ip command. If you prefer to use the ip command instead of ifconfig ip address add [ip]/[mask-digits] dev [nic] …
  3. Ubuntu.
 

Tìm kiếm

Back
Top