I cannot stay away from Terminal. :| So I was setting up a debian box inside my Windows installation. I downloaded a net installation image of Debian 6.0.3 (debian-6.0.3-i386-netinst.iso) and booted into it in VirtualBox. Well, while installing it, VB was in NAT mode and I didn't notice that. So the installer configured the OS according to NAT mode and I had the network connection after I logged in. But as I wanted to run few server applications, I needed the OS to use a bridged connection. So I opened the network configuration of VB, changed it to Bridged Adapter mode, selected by adapter, hit Ok, then restarted the network service in the box and tried to ping google. But got error. The network wasn't working.
Fired up Google, but after few searches, I landed on the conclusion that it was the basic network configuration that I needed to follow. :|
i.e. Following commands -
sudo ifconfig eth0 10.0.0.5 netmask 255.255.255.0
sudo route add default gw 10.0.0.1 eth0
#Now restart networking
sudo /etc/init.d/networking restart
That did the trick.