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

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

ifconfig bad address

Discussion in 'Asuswrt-Merlin' started by rdy2, Jan 28, 2020.

  1. rdy2

    rdy2 Occasional Visitor

    Joined:
    Dec 24, 2014
    Messages:
    42
    I am getting a bad address error
    Code:
    # ifconfig wl0.1 192.168.51.1/24
    ifconfig: bad address '192.168.51.1/24'
    Is there a limitation as to what the address can be, related to the router IP address/netmask, which is 192.168.50.1 with 255.255.255.0 ?

    Just in case wondering what I am doing, I am trying to test this
    Code:
    ifconfig wl0.1 192.168.51.1/24
    
    ###/jffs/configs/dnsmasq.conf.add
    
    interface=wl0.1
    dhcp-range=wl0.1,192.168.51.2,192.168.51.254,255.255.255.0,86400s
    dhcp-option=wl0.1,3,192.168.50.1
    dhcp-option=wl0.1,15,athome
    dhcp-option=wl0.1,252,"\n"
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    10,674
    Location:
    UK
    That is syntactically incorrect. The correct format is:
    Code:
    ifconfig wl0.1 192.168.51.1 netmask 255.255.255.0
     
    L&LD likes this.
  3. rdy2

    rdy2 Occasional Visitor

    Joined:
    Dec 24, 2014
    Messages:
    42
    That did it!. Odd that the incorrect format is all over (or so it looks to me)

    Thank you
     
  4. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    10,674
    Location:
    UK
    I think the format you used is only acceptable on more recent Linux kernels.