I dual booted Android x86 8.1 iso in PC. Everything went nice but when I set it up it was not getting network. I am using USB device for internet connection. Can anyone please tell how to fix it?
What do you mean by USB device for internet connection? Are you using a dongle with a SIM card? If so then those dongles need their respective software to connect to PC which are (in most cases) only available for Windows.
If that is not the case, try these steps.
In a terminal, type:
sudo vi /etc/init.sh
add 4 lines below to init.sh
netcfg eth0 dhcp echo nameserver <ip> > /etc/resolv.conf dnsmasq setprop net.dns1 188.8.131.52
You will need linux drivers for it to work check for drivers on your manufacturer's page