I'm looking for a way to use at the same time wired and wireless interfaces.
My situation:
- 1 Gbit ethernet interface (10.100.x.x)
- 1 WiFi 802.11 b/g/n interface (192.168.x.x)
- The PC is part of a domain (10.100.x.x) and I logon using a LDAP user.
I want to use the Ethernet interface to connect to the domain and navigate through LAN, but every time I need to access the internet, I want to use the WiFi.
The Ethernet interface is configured for the domain, so there's a DHCP that assigns every setting, from PC IP address to default gateway IP and DNS.
I tried almost everything…
- "Advanced settings" on "Network Connection Panel" to change the
interfaces order. - Route table to adjust interfaces and gateways metrics.
- "Network Adapter Advanced Settings" to uncheck the automatic metric
and set a manual value.
When both my interfaces are activated this is my Route table
:
IPv4 Tabella route
===========================================================================
Route attive:
Indirizzo rete Mask Gateway Interfaccia Metrica
0.0.0.0 0.0.0.0 10.100.1.1 10.100.1.55 276
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.208 281
10.100.1.0 255.255.255.0 On-link 10.100.1.55 276
10.100.1.55 255.255.255.255 On-link 10.100.1.55 276
10.100.1.255 255.255.255.255 On-link 10.100.1.55 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.10.0 255.255.255.0 On-link 192.168.10.208 281
192.168.10.208 255.255.255.255 On-link 192.168.10.208 281
192.168.10.255 255.255.255.255 On-link 192.168.10.208 281
192.168.184.0 255.255.255.0 On-link 192.168.184.1 276
192.168.184.1 255.255.255.255 On-link 192.168.184.1 276
192.168.184.255 255.255.255.255 On-link 192.168.184.1 276
192.168.222.0 255.255.255.0 On-link 192.168.222.1 276
192.168.222.1 255.255.255.255 On-link 192.168.222.1 276
192.168.222.255 255.255.255.255 On-link 192.168.222.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.222.1 276
224.0.0.0 240.0.0.0 On-link 192.168.184.1 276
224.0.0.0 240.0.0.0 On-link 10.100.1.55 276
224.0.0.0 240.0.0.0 On-link 192.168.10.208 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.222.1 276
255.255.255.255 255.255.255.255 On-link 192.168.184.1 276
255.255.255.255 255.255.255.255 On-link 10.100.1.55 276
255.255.255.255 255.255.255.255 On-link 192.168.10.208 281
===========================================================================
Route permanenti:
Nessuna
The best I was able to obtain was to set a manual metric value to the Ethernet interface so the metric of gateway increased till a value greater than the WiFi gateway. This way lead me to gain access to the Internet by the WiFi gateway (as I wanted) BUT I loose my network connections access so I cannot access my domain resources (server, shares, printers…).
Using the procedure described above I finally have this Route table
:
IPv4 Tabella route
===========================================================================
Route attive:
Indirizzo rete Mask Gateway Interfaccia Metrica
0.0.0.0 0.0.0.0 10.100.1.1 10.100.1.55 356
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.208 281
10.100.1.0 255.255.255.0 On-link 10.100.1.55 356
10.100.1.55 255.255.255.255 On-link 10.100.1.55 356
10.100.1.255 255.255.255.255 On-link 10.100.1.55 356
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.10.0 255.255.255.0 On-link 192.168.10.208 281
192.168.10.208 255.255.255.255 On-link 192.168.10.208 281
192.168.10.255 255.255.255.255 On-link 192.168.10.208 281
192.168.184.0 255.255.255.0 On-link 192.168.184.1 276
192.168.184.1 255.255.255.255 On-link 192.168.184.1 276
192.168.184.255 255.255.255.255 On-link 192.168.184.1 276
192.168.222.0 255.255.255.0 On-link 192.168.222.1 276
192.168.222.1 255.255.255.255 On-link 192.168.222.1 276
192.168.222.255 255.255.255.255 On-link 192.168.222.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.222.1 276
224.0.0.0 240.0.0.0 On-link 192.168.184.1 276
224.0.0.0 240.0.0.0 On-link 10.100.1.55 356
224.0.0.0 240.0.0.0 On-link 192.168.10.208 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.222.1 276
255.255.255.255 255.255.255.255 On-link 192.168.184.1 276
255.255.255.255 255.255.255.255 On-link 10.100.1.55 356
255.255.255.255 255.255.255.255 On-link 192.168.10.208 281
===========================================================================
Route permanenti:
Nessuna
Here the WiFi gateway (192.168.x.x) has lower metrics than ethernet one, so I can go to the WAN with that but I cannot access my network resources anymore.
It seems that with that route table, every LAN connection tries to pass through WiFi interface.
I tried to change and delete the 0.0.0.0 0.0.0.0 10.100.1.1 10.100.1.55 276
route but nothing appened…
Best Answer
Try these two commands:
route delete 0.0.0.0 10.100.1.1
route add 10.0.0.0 mask 255.0.0.0 10.100.1.1
If that works, put them in a batch file in your StartUp folder to automatically run every time you log in. This should do the job.