Static ip setting fails

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm trying to set up a fresh install of ubuntu server as a home server.
The static ip setting fails somehow, it's still getting a dynamic ip from my router.
I'm trying to use an usb ethernet device (enx00909e9aa057).



Output from ip link show:



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d0:50:99:9a:0d:f3 brd ff:ff:ff:ff:ff:ff
3: enx00909e9aa057: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:90:9e:9a:a0:57 brd ff:ff:ff:ff:ff:ff


Here is my /etc/network/interfaces file:



# The loopback interface
auto lo
iface lo inet loopback

#usb ethernet
auto enx00909e9aa057
iface enx00909e9aa057 inet static
address 192.168.0.26
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 1.1.1.1 1.0.0.1


What could be the cause?



edit: if I set my router's DHCP pool start address to something higher, like 192.168.0.150 (it was 192.168.0.10...), the sever will get that address (192.168.0.150). So the problem is not, that the address which I'm setting in the server, is inside the DHCP pool of the router.







share|improve this question


















  • 1




    Is this server 17.10? Netplan covers networking by default in 17.10 and later.
    – chili555
    Apr 26 at 21:50














up vote
0
down vote

favorite












I'm trying to set up a fresh install of ubuntu server as a home server.
The static ip setting fails somehow, it's still getting a dynamic ip from my router.
I'm trying to use an usb ethernet device (enx00909e9aa057).



Output from ip link show:



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d0:50:99:9a:0d:f3 brd ff:ff:ff:ff:ff:ff
3: enx00909e9aa057: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:90:9e:9a:a0:57 brd ff:ff:ff:ff:ff:ff


Here is my /etc/network/interfaces file:



# The loopback interface
auto lo
iface lo inet loopback

#usb ethernet
auto enx00909e9aa057
iface enx00909e9aa057 inet static
address 192.168.0.26
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 1.1.1.1 1.0.0.1


What could be the cause?



edit: if I set my router's DHCP pool start address to something higher, like 192.168.0.150 (it was 192.168.0.10...), the sever will get that address (192.168.0.150). So the problem is not, that the address which I'm setting in the server, is inside the DHCP pool of the router.







share|improve this question


















  • 1




    Is this server 17.10? Netplan covers networking by default in 17.10 and later.
    – chili555
    Apr 26 at 21:50












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to set up a fresh install of ubuntu server as a home server.
The static ip setting fails somehow, it's still getting a dynamic ip from my router.
I'm trying to use an usb ethernet device (enx00909e9aa057).



Output from ip link show:



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d0:50:99:9a:0d:f3 brd ff:ff:ff:ff:ff:ff
3: enx00909e9aa057: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:90:9e:9a:a0:57 brd ff:ff:ff:ff:ff:ff


Here is my /etc/network/interfaces file:



# The loopback interface
auto lo
iface lo inet loopback

#usb ethernet
auto enx00909e9aa057
iface enx00909e9aa057 inet static
address 192.168.0.26
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 1.1.1.1 1.0.0.1


What could be the cause?



edit: if I set my router's DHCP pool start address to something higher, like 192.168.0.150 (it was 192.168.0.10...), the sever will get that address (192.168.0.150). So the problem is not, that the address which I'm setting in the server, is inside the DHCP pool of the router.







share|improve this question














I'm trying to set up a fresh install of ubuntu server as a home server.
The static ip setting fails somehow, it's still getting a dynamic ip from my router.
I'm trying to use an usb ethernet device (enx00909e9aa057).



Output from ip link show:



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d0:50:99:9a:0d:f3 brd ff:ff:ff:ff:ff:ff
3: enx00909e9aa057: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:90:9e:9a:a0:57 brd ff:ff:ff:ff:ff:ff


Here is my /etc/network/interfaces file:



# The loopback interface
auto lo
iface lo inet loopback

#usb ethernet
auto enx00909e9aa057
iface enx00909e9aa057 inet static
address 192.168.0.26
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 1.1.1.1 1.0.0.1


What could be the cause?



edit: if I set my router's DHCP pool start address to something higher, like 192.168.0.150 (it was 192.168.0.10...), the sever will get that address (192.168.0.150). So the problem is not, that the address which I'm setting in the server, is inside the DHCP pool of the router.









share|improve this question













share|improve this question




share|improve this question








edited Apr 26 at 19:24

























asked Apr 26 at 19:18









Tamas

1012




1012







  • 1




    Is this server 17.10? Netplan covers networking by default in 17.10 and later.
    – chili555
    Apr 26 at 21:50












  • 1




    Is this server 17.10? Netplan covers networking by default in 17.10 and later.
    – chili555
    Apr 26 at 21:50







1




1




Is this server 17.10? Netplan covers networking by default in 17.10 and later.
– chili555
Apr 26 at 21:50




Is this server 17.10? Netplan covers networking by default in 17.10 and later.
– chili555
Apr 26 at 21:50










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










chili555 gave a very good hint (thanks!), netplan was overriding all my settings.
I've followed this tutorial to set it up, and now it works.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028514%2fstatic-ip-setting-fails%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    chili555 gave a very good hint (thanks!), netplan was overriding all my settings.
    I've followed this tutorial to set it up, and now it works.






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      chili555 gave a very good hint (thanks!), netplan was overriding all my settings.
      I've followed this tutorial to set it up, and now it works.






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        chili555 gave a very good hint (thanks!), netplan was overriding all my settings.
        I've followed this tutorial to set it up, and now it works.






        share|improve this answer












        chili555 gave a very good hint (thanks!), netplan was overriding all my settings.
        I've followed this tutorial to set it up, and now it works.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 1 at 14:33









        Tamas

        1012




        1012



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028514%2fstatic-ip-setting-fails%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491