Switching between ethernet and WiFi
I am using m3 pro with mac OS Sonoma 14.5 and I am facing a weird issue when switching between ethernet and WiFi, it is really frustrating...
This happens in my institute and I understand it is completely a problem related to the specific network, but I appreciate if someone can suggest a solution for this. This doesn't happens with my desktop (Ubuntu 22.04) or with my old laptop (windows 11). I can brief the issue with appropriate title for better understanding. !!
1. The Network:
Okay, so there is a login portal where we have to enter our credentials to access the internet at my institute and we have both ethernet and WiFi with two different IPs. The time limit for a login is 24hours. Now, when I enter the institute the mac automatically gets connected to the WiFi and it stays connected all the time, so to access the internet I can login with my credentials one time a day. Simple. !!
2. The Problem:
The problem comes when I have to connect to ethernet. This is required to access to other local systems such as HPC, workstation and my own desktop etc.
3. Expected Scenario
When I connect the ethernet, the IP should change and I should be able to login to the network access portal with my credentials again, but for a new IP this time. This is how it works in Ubuntu and Windows. Once I disconnect the ethernet, the system will continue use the WiFi and there will be internet access to the IP corresponding to wifi and I will be able to use the internet for the rest of time of my login. Now, Once I login to the portal from WiFi and Ethernet once in a day, I should be able to use internet irrespective of whether I am connected to ethernet or WiFi.
4. Issue with mac
But this isn't the case with mac. When I login for WiFi and then connect the ethernet, I wont be able to access internet, but the login page will remain logged in. !! Then I will be forced to logout from WiFi IP and then login again for ethernet IP. So, basically I will have login to the internet access portal every time I switch between ethernet and WiFi.
First of all, I don't understand the network details shown when executing command 'ifconfig'. Its too complicated and there is lot more inactive networks shown (lo0, gif0, stf0, anpi0, anpi1, en 0 - 5, bridge0, ap1, awdl0, llw0, utun 0-3, en7 ). when connected with the ethernet en0, awdl0 and en7 are active and when disconnected from the ethernet, en0 and awdl0 are active. Also, I noticed something different in the network settings of mac. It seems that they prefer WiFi over any other network !!
Since its not happening with windows and ubuntu, am sure there should be some solution that i can do at my mac side.
Thank you so much for your time.
regards,
musaid
MacBook Pro 14″, macOS 14.5