wireless is connected but no internet

i have a new installation of ubuntu (14.04), i installed it with internet via ethernet, and after restart tried using wireless but it says its connected and i cant connect to the internet. im a noob on linux, please help.

$ lspci -knn | grep Net -A2

02:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6235 [8086:088e] (rev 24)
    Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN [8086:4060]
    Kernel driver in use: iwlwifi

Run in terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1"

and reboot.