Debian Cannot Access Internet Despite Being "Connected"

568

The wifi being "connected" only gives you the physical layer.

Are your IP settings plausable? Did you set static IP because DHCP didn't work at home?

ifconfig wlan0 (or name of wifi interface)

Check routing

route -n

Do you have a default gateway? If not, set the correct one

route add default gw <ip of gateway>

Can you ping an internal address (The router?)

ping <router address>

Can you ping externally?

ping 8.8.8.8

Is DNS set correctly?

nslookup google.com

No? Then set it manually for now:

nano -w /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
Share:
568

Related videos on Youtube

walter
Author by

walter

Updated on September 18, 2022

Comments

  • walter
    walter over 1 year

    I've built a pagination class that works well for a specific data type, but now I need to make the type dynamic

    here is my code

    public class Pagination {
        public IQueryable<Character> Items { get; set; }
    
        public int PageSize { get; set; }
    
        public int TotalPages {
            get {
                if (this.Items.Count() % this.PageSize == 0)
                    return this.Items.Count() / this.PageSize;
                else
                    return (this.Items.Count() / this.PageSize) + 1;
            }
        }
    
        public Pagination(IQueryable<Character> items, int pageSize) {
            this.PageSize = pageSize;
            this.Items = items;
        }
    
        public IQueryable<Character> GetPage(int pageNumber) {
            pageNumber = pageNumber - 1;
            return this.Items.Skip(this.PageSize * pageNumber).Take(this.PageSize);
        }
    }
    

    as you can see, this pagination class works only for 'Character', is it possible to create anonymous data type and invoke generic methods such as Skip and Take?

    • Justin Morgan
      Justin Morgan about 13 years
      Looks like a lot of us noticed this at the same time.
    • walter
      walter about 13 years
      Wow, Exactly. Most of your answers are valid!Thanks a lot, but I can only tick 1...
    • Admin
      Admin over 11 years
      Are your gateway and nameserver correct? Can you ping your router / access point or another host in your local network? Can you ping an Internet host (e.g. 173.194.69.139 or 193.99.144.80)?
    • Admin
      Admin over 11 years
      The only way I can "connect" is by selecting WEP (Hex [0-9/A-F]). I can ping the router. However the dns seems messed up. The rest of the computers on the network are having no trouble at all.
  • Scott Baker
    Scott Baker about 13 years
    Should have the qualification "where T : class"
  • Bala R
    Bala R about 13 years
    @ScottSEA why? I don't think that constraint is absolutely required.