I only Configured Router on Windows, Then I switched to Ubuntu without doing anything Internet is working on Ubuntu

Just like when i used Ubuntu inside virtual Box as you said me ones, Internet is working in Both

I wonder Why I have to do those You said above? You got your Valuable time to Explain Me Such valuable things but I am not clear why I have to do it,
Can you explain me Bit If you have Time?

Thanks