The most common cause of losing internet connection after installation of avast free - is a security program blocking avast - typically this is your firewall.
What is your operating system and firewall ?
Does it allow avastSvc.exe internet access ?
- If it does delete the entry for it and reconnect to the internet, this should force the firewall to ask permission again.