No internet access, connected to both wifi and ethernet, internet is accessible through wifi but cant access it

What have you tried : changing metric no. in ip route, and it worked but its not efficient as once i restart my system its gone(not persistent) another is that i set the metric no. or what for the ip so if connect to another wifi it wont work probably

What is the error: cant access the internet, i dont know much so i used chat gpt and it suggested a couple of ways but the only way worked was by changing the values in ip route and deleteing ip routes and all that and finally it works, its goes off once i restart the system, im connected to a router which has no internet access and i use wifi for internet access but in ip route metric value of eth is low so i cant access internet if im connected to both until i change the ip route values and its a pain to do it every time i boot my laptop, and i dont even know the exact cmds i just keep changing and deleting ip routes till i can access internet

What device is this on:

If your router has no internet access then any devices connected to that router will also have no access, your router is your gateway.

Do you mean you have no internal network access? i.e. your router side of the network device to device on the private network address?

1 Like

Im connected to a windows device and a linux device from the router, i use it for file sharing and all, for internet i use my mobiles hotspot and connect to it frok wifi, the windows system works fine, but in the kali device i cant access the internet from wifi until i disconnect the ethernet or change the ip route everytime i boot it

1 Like

If you boot it without an ethernet cable in, it wont default to that network connection. That is typical behaviour in any Unix like OS

get a wifi adapter like ralink
it will automaticaly connect

1 Like

oh, is there a permanent solution instead of changing ip routes each time i boot my system to prioritize the wifi connection

1 Like

it still connects to the wifi connection but i cant access internet through it as the system tries to connect to the internet using the wired connection which doesnt have internet access

2 Likes