[SOLVED] Wireless won't pick up IP address or gateway
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Posts
    8

    Wireless won't pick up IP address or gateway

    Having just moved house I have re-located my router. It was wired using powerline adapters but the performance was awful so I installed a wireless card. My problem is that although the card connects to my wireless network OK, it just doesn't seem to pick up the IP address or the gateway from the configuration files. I basically renamed the the wired connection, from ifcfg-eno1 to ifcfg-wlp0s26u1u5, changed the obvious settings but after a reboot, the interface just has no IP address or default route configured. My configuration file which doesn't work is below (with the commented out entries showing what does work for the wired connection).

    IPV6INIT="yes"
    NAME="wlp0s26u1u5"
    #NAME="eno1"
    DEFROUTE="yes"
    IPV4_FAILURE_FATAL="no"
    BOOTPROTO=none
    IPV6_DEFROUTE="yes"
    IPV6_AUTOCONF="yes"
    IPV6_FAILURE_FATAL="no"
    TYPE="Wifi"
    #TYPE="Ethernet"
    ONBOOT="yes"
    IPADDR0=192.168.200.2
    PREFIX0=24
    GATEWAY0=192.168.200.254
    DNS1=192.168.200.254
    #HWADDR=50:3e:aa:39:cf:65
    HWADDR=10:60:4B:92:79C
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    ZONE=home
    #UUID=0e09c911-7c74-40d2-adfa-4dcebc85f3e7
    UUID=c84bfd36-2ed5-41bb-bac4-eef19849dcc8
    NM_CONTROLLED="yes"

    I have tried messing around with route configuration files as well. The odd thing is that when I reboot I can just type in the command manually (i.e. ifconfig wlps26u1u5 192.168.200.2 and route add default gw 192.168.200.2 ) and it works fine - until of course the next reboot.

    What am I missing? I have spend a few hours playing around but decided the finally ask for help!

    thanks
    Mark

  2. #2
    Join Date
    Apr 2009
    Location
    central NY, USA
    Posts
    1,161

    Re: Wireless won't pick up IP address or gateway

    Assuming you're using NetworkManager, what's in your /etc/resolv.conf ?
    Change - the only constant.

  3. #3
    Join Date
    Dec 2012
    Location
    santa barbara, CA
    Posts
    956

    Re: Wireless won't pick up IP address or gateway

    NM_CONTROLLED="yes"

    tells NetworkManager to take over with its own impossible to find settings, and nix whatever you put into your config files.

    If however the connection is successful with whatever you insert into your nm-connection-editor dialog box, your config file will get magically written/overwritten/merged/you-name-it , and it will all work.

    I miss the days of the simplicity of editting a config file, and it being a real config file.
    "monsters John ... monsters from the ID..."
    "ma vule teva maar gul nol naya"

  4. #4
    Join Date
    Dec 2008
    Posts
    8

    Re: Wireless won't pick up IP address or gateway

    Hmm, I tried to take inspiration from this and disabled network manager and the tweaks it seemed to have made. My config file now is slightly smaller but it still won't pick up the IP or the gateway:

    IPV6INIT="yes"
    NAME="wlp0s26u1u5"
    DEFROUTE="yes"
    IPV4_FAILURE_FATAL="no"
    BOOTPROTO=none
    IPV6_DEFROUTE="yes"
    IPV6_AUTOCONF="yes"
    IPV6_FAILURE_FATAL="no"
    TYPE="Wifi"
    ONBOOT="yes"
    IPADDR0=192.168.200.2
    PREFIX0=24
    GATEWAY0=192.168.200.254
    DNS1=192.168.200.254
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes

    So although my system may be nominally better off for not having NM configure zones for me (now removed), I am still at a loss as to why just the wireless won't pick up the IP/gateway.

    Frustrating.

    Quote Originally Posted by bobx001
    NM_CONTROLLED="yes"

    tells NetworkManager to take over with its own impossible to find settings, and nix whatever you put into your config files.

    If however the connection is successful with whatever you insert into your nm-connection-editor dialog box, your config file will get magically written/overwritten/merged/you-name-it , and it will all work.

    I miss the days of the simplicity of editting a config file, and it being a real config file.

  5. #5
    Join Date
    Dec 2008
    Posts
    8

    Re: Wireless won't pick up IP address or gateway

    I have also notice that interesting it does pick up an IPv6 IP address automatically. I guess I could as a point of interest reserve the fixed IP address in DHCP and see if it does get picked up through that. More to come.

  6. #6
    Join Date
    Dec 2008
    Posts
    8

    Re: Wireless won't pick up IP address or gateway

    The only way I could get this to work was to use NetworkManager. I setup a new connection, allowed it to create the configuration files and it works fine. Just changing NM_CONTROLLED to no and disabling NetworkManager and enabling network.service just didn't work. No idea why, I'll just stick with what's working!

Similar Threads

  1. Fedora 12 installation did not pick up my wireless card.
    By hatewindows in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 13th November 2010, 01:10 AM
  2. Chagne in gateway address
    By thbaig in forum Servers & Networking
    Replies: 4
    Last Post: 26th May 2009, 03:49 PM
  3. network stop/start won't change gateway address
    By myname77 in forum Servers & Networking
    Replies: 0
    Last Post: 25th September 2008, 09:59 PM
  4. Setting up default gateway address?
    By Nil Gnostica in forum Servers & Networking
    Replies: 4
    Last Post: 2nd August 2006, 05:39 PM
  5. dhcp does not deliver the gateway address
    By flonks in forum Servers & Networking
    Replies: 0
    Last Post: 23rd February 2006, 04:54 PM

Posting Permissions

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