Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 418  / 1 Year ago, sun, april 30, 2023, 10:10:10

I have a laptop which is usually on Ethernet and has a static IP. Sometimes I need to take it away from my desk and use the wifi. How can I make the Ethernet and Wi-Fi use the same private IP address?


More From » 12.04

 Answers
6

You could configure both interfaces with the same IP, but only one can be active at a time. To switch from the ethernet connection to the wifi, you could use the following commands. Someone else may have a much more elegant solution than this.



sudo ifdown eth0
sudo ifup wlan0


reversing this of course to get back to your ethernet:



sudo ifdown wlan0
sudo ifup eth0

[#24284] Monday, May 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
edseager

Total Points: 185
Total Questions: 105
Total Answers: 102

Location: Angola
Member since Wed, Apr 13, 2022
2 Years ago
;