Results 1 to 3 of 3

Thread: Wired / Wireless Connection Problem

  1. #1
    Join Date
    Feb 2014
    Beans
    12

    Wired / Wireless Connection Problem

    Hi all,

    Im on the learning process of Linux and ive come to an issue im not fully able to understand or ts.

    I have 2 connection, a wired and a wireless connection.

    By Default both connections work fine. Following a lab of adding a static ip address i changed it on eth0 to a static ip and it works ok and i was able to browse internet fine. Now, i disconnected the wired network to move the computer and connected the wlan0 to my wireless network and it connects fine but im not able to browse and im not even able to to ping the router. Anyways, im pretty sure im missing something that might be simple but im kinda stuck on it. Im adding some info that i think might be useful.

    /etc/network/interfaces
    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet static
            address 192.168.0.111
            netmask 255.255.255.0
            gateway 192.168.0.1
            dns-nameservers 192.168.0.1 200.194.232.200 200.194.234.200
    /etc/resolv.conf
    Code:
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 192.168.0.1
    nameserver 200.194.232.200
    nameserver 200.194.234.200

    ifconfig
    Code:
    eth0      Link encap:Ethernet  HWaddr e0:db:55:b0:f4:09  
              inet addr:192.168.0.111  Bcast:192.168.0.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1862 errors:0 dropped:1 overruns:0 frame:0
              TX packets:999 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:865852 (865.8 KB)  TX bytes:207331 (207.3 KB)
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:49 errors:0 dropped:0 overruns:0 frame:0
              TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:4208 (4.2 KB)  TX bytes:4208 (4.2 KB)
    
    wlan0     Link encap:Ethernet  HWaddr 64:5a:04:80:7f:7c  
              inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::665a:4ff:fe80:7f7c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:353 errors:0 dropped:0 overruns:0 frame:0
              TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:29114 (29.1 KB)  TX bytes:33715 (33.7 KB)
    route -n
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
    0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 eth0
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
    192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.168.0.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
    ping with wireless connected (and wired connected)
    Code:
    PING google.com (74.125.224.72) 56(84) bytes of data.
    
    --- google.com ping statistics ---
    10 packets transmitted, 0 received, 100% packet loss, time 9072ms
    ping with wireless disconnected
    Code:
    PING google.com (201.227.61.31) 56(84) bytes of data.
    64 bytes from 201.227.61.31: icmp_req=1 ttl=60 time=11.0 ms
    64 bytes from 201.227.61.31: icmp_req=2 ttl=60 time=22.1 ms
    64 bytes from 201.227.61.31: icmp_req=3 ttl=60 time=15.0 ms
    64 bytes from 201.227.61.31: icmp_req=4 ttl=60 time=10.6 ms
    
    --- google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 15786ms
    rtt min/avg/max/mdev = 10.670/14.730/22.154/4.610 ms
    Anyways i hope you could help me understand whats going on, what its wrong and how can i fix it.

    Thanks

    J

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    5,253
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Wired / Wireless Connection Problem

    Change "false" to "true" in the file /etc/NetworkManager/NetworkManager.conf and reboot. Otherwise the network-manager can not handle the manual settings in your "interfaces" and the automatic settings of itself.

  3. #3
    Join Date
    Feb 2014
    Beans
    12

    Re: Wired / Wireless Connection Problem

    That made the trick. Thank you very much

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •