1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wrt54gs internet connection problem

Discussion in 'Networking Issues' started by ajdoakwood, Sep 24, 2006.

  1. ajdoakwood

    ajdoakwood LI Guru Member

    I have linux (ubuntu) on my laptop and connect to the outside world using a
    linksys adsl2mue modem and wrt54gs router.
    I'm having some problem with connections: due mainly to gross ignorance,
    and any help anyone can give would be much appreciated.

    The modem IP is 192.168.1.1 and the router is 192.168.2.1

    Everything works when the laptop is
    running windows xp, but I don't usually want to do that.

    Running linux I can ping succesfully but many other programs, ssh, scp,
    mozilla, netscape, will not work
    unless I find a specific ip number (using ping) and then
    use that instead of a domain name. I've tried editing
    resolv.conf, with dns servers supplied by my ISP
    but so far to no effect.

    Any suggestions as to what to do?
    I should emphasis that everything is fine under windows xp
    and that the laptop connects perfectly well to other wireless networks.

    ifconfig returns the following:
    %%%%%%%%%%%%%%%%%%%%%%%%%%%
    eth0 Link encap:Ethernet HWaddr 00:11:43:CC:7F:78
    inet6 addr: fe80::211:43ff:fecc:7f78/64 Scope:Link
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:11

    eth1 Link encap:UNSPEC HWaddr
    00-11-43-80-00-CC-7F-78-00-00-00-00-00-00-00-00
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:12 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:840 (840.0 b) TX bytes:840 (840.0 b)

    sit0 Link encap:IPv6-in-IPv4
    inet6 addr: ::127.0.0.1/96 Scope:Unknown
    inet6 addr: ::192.168.2.3/96 Scope:Compat
    UP RUNNING NOARP MTU:1480 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    wlan0 Link encap:Ethernet HWaddr 00:0E:35:A5:1A:2C
    inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
    inet6 addr: fe80::20e:35ff:fea5:1a2c/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:69 errors:0 dropped:0 overruns:0 frame:0
    TX packets:30 errors:0 dropped:0 overruns:0 carrier:1
    collisions:0 txqueuelen:1000
    RX bytes:3669 (3.5 KiB) TX bytes:2550 (2.4 KiB)
    Interrupt:5 Base address:0x5000 Memory:e0210000-e0210fff

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    resolv.conf is:
    search
    nameserver 192.168.1.1
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    route -n returns

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use
    Iface
    192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
    wlan0
    0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0
    wlan0

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    Under windows xp ipconfig /all gives
    %%%%%%%%%%%%%%%%%%%%%%%
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : SNITCH
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Broadcast
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No

    Ethernet adapter Wireless Network Connection:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Intel(R) PRO/Wireless 2200BG
    Network Connection
    Physical Address. . . . . . . . . : 00-0E-35-A5-1A-2C
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.2.3
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.2.1
    DHCP Server . . . . . . . . . . . : 192.168.2.1
    DNS Servers . . . . . . . . . . . : 192.168.1.1
    Lease Obtained. . . . . . . . . . : 28 March 2006 12:44:07
    Lease Expires . . . . . . . . . . : 29 March 2006 12:44:07
    Ethernet adapter Local Area Connection:

    Media State . . . . . . . . . . . : Media disconnected

    Description . . . . . . . . . . . : Broadcom 570x Gigabit
    Integrated
    Controller

    Physical Address. . . . . . . . . : 00-11-43-CC-7F-78
     
  2. HennieM

    HennieM Network Guru Member

    Not sure if this is the root cause, but your resolv.conf has an empty "search" line, which probably means you don't assign a local DNS domain name. Remove/delete the "search" line from resolv.conf.

    Alternatively, assign a local DNS domain name via DHCP (assuming that you use DHCP), which will then probably result in resolv.conf looking something like

    search ajdoakwood.net
    nameserver 192.168.1.1
     
  3. ajdoakwood

    ajdoakwood LI Guru Member

    still no internet

    I'm not sure if I understood you correctly but I've tried deleting the search line, and it made no difference as far as I could tell, and I've tried
    various names on the search line, also to little effect: except that if I add
    google.co.uk, for example, I can then browse google, but not much else, and so on.

    I'm not sure how to find out what I shoud use in lieu of "ajdoakwood.net". Did you mean that DHCP would somehow decide what
    to search itself? If so I'm sorry to say I don't know how to get it to do so.
     
  4. HennieM

    HennieM Network Guru Member

    Run, in a shell, the following commands:

    hostname -s
    hostname -f

    The first should give you something like "ubuntuboxname" (whatever you named the machine),
    while the second shoud give you "ubuntuboxname.something.something"

    That ".something.something" is your internal DNS domain name. If there are no dots in the returned value from "hostname -f", then your Linux box don't know its own DNS domain. You can assign a domain manually by doing

    "hostname ubuntuboxname.ajdoakwood.net"

    but ideally, your DHCP server should be supplying the domain name part ("ajdoakwood.net" in the example above) to clients, as all clients on your network should have the same domain name.
    Again, I'm not saying this is definitely your problem, but it could be.
     
  5. ajdoakwood

    ajdoakwood LI Guru Member

    progress?

    Thanks for your suggestions. I tried and maybe there are some clues
    as to what is going on here.

    hostname -s returns "localhost"

    which seems ok as
    hostname -a gives "localhost ajdoakwood"

    Also /etc/hostname contains one line:
    ajdoakwood


    hostname -f returns "localhost.localdomain"

    I'm not so sure this is good.
    There doesn't appear to be an alias for localdomain. I'm also not sure how
    to tell what localdomain should be otherwise. Can I somehow find the
    equivalent thing under windows?

    One thing I have noticed is that if I go to the router web page > Status >
    Local Network > and open the "DHCP Clients Table" then
    a) if I'm in windows it has Client Host Name = ajdoakwood but
    b) if I'm in linux it has Client Host Name blank.
     
  6. jward

    jward Guest

    You need to update the file /etc/dhcp3/dhclient.conf

    Uncomment the following line, and add your host name

    send host-name "yourhostname"

    This will update the DHCP lease table on your router, as for ping working correctly I can't that. I'm trying to get a similar config working with my WRT54GS router.

    I did notice your dns servers is configured to be your router ip. This should be configured as the DNS servers provided by your ISP for external addresses.
     

Share This Page