I tried to make web server within the virtualbox using internet connection sharing from windowx.
It's already successful connecting from outside(the internet) by using software called port forwarding for windows.
I don't use iptables in the ubuntu, I just change the /etc/network/interfaces file to make it connect to the network.
The problem is the ethernet card in my ubuntu keeps changing after I restart ubuntu.
The first is named eth0, yesterday it's eth6, day before yesterday it's eth3, and now it's eth8.

I need to rewrite the /etc/network/interfaces file everytime and restart the network to make it works again.
I'm using host only adapter for the ubuntu guest and I make two VirtualBox Host-Only Network, the first one is created by default by the virtualbox(using dhcp), then I make the new one to test the internet connection sharing. I disabled and do not use the first one.


here's the /etc/network/interfaces setting

I already searched the google for two days but still haven't found solution so I decided to ask here, I'm really hoping someone can help me
I use the same setting for my windows xp guest but the ethernet card is not changing.
The ubuntu guest also has problem duplicate ping.
If possible I don't want to reinstall the ubuntu because I've downloaded and updated many packages, I don't want to lose my settings also.