Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Static IP with a DHCP port

  1. #11
    Join Date
    Feb 2019
    Location
    Virginia
    Beans
    394
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Static IP with a DHCP port

    Have you considered hanging a multiport dumb (unmanaged) switch off the port you want to use, you could have your desktop and server on the same subnet that way, if that is what you prefer.

    As mentioned, you can set a static IP on the server using your nteplan .yaml file. Some examples here: https://netplan.readthedocs.io/en/stable/examples/

    There are errors in your attempt as shown. You cannot assign the same IP address to your server interface as the router interface on the subnet. As TheFu said, 78.84.xxx.xx is wrong, not in the range of private IPv4 addresses, something wierd there.

    Is your ISP provided router also your modem? If so, and you wish to use your own router, you will likely need to put the ISP router/modem in bridge mode and then put your new router behind that. If you have a separate modem already, then yeah, you can probably ditch the ISP router and use a new one.

  2. #12
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Static IP with a DHCP port

    Quote Originally Posted by dabelort View Post
    I consulted with my ISP (they have made the routers basically unchangeable by the user and wont give me access to change anything myself) and seems like my best course of action is to get a new router with which to try again, so for now i wait till i get the new router and will try again, but thank you for the advice and help!
    I new router isn't needed and won't provide the necessary knowledge. Just setup the correct static IP on the system.

    If your understanding of IPv4 networking is weak, episode 25-29 (approx) of the Security Now! podcast will explain it.
    Last edited by TheFu; February 13th, 2024 at 03:11 AM.

  3. #13
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Static IP with a DHCP port

    Censored the public IPs after the OP asked.

    Having a /19 is a bit odd for sure. I've got a /30 at home and a /29 at work.

    What ISP do you have? Do you know the model of router did they provide? If you are trying to set up another device to act as a router, the other router should be set into passthrough mode if possible.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #14
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Static IP with a DHCP port

    What is even more odd, is that you are trying to set the IP via DHCP. Did you not pick up on that? That is not what people usually do or are set on as a requirement.

    The more normal/accepted method is to set the IP as Static, from the machine itself.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #15
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Static IP with a DHCP port

    Quote Originally Posted by MAFoElffen View Post
    What is even more odd, is that you are trying to set the IP via DHCP. Did you not pick up on that? That is not what people usually do or are set on as a requirement.

    The more normal/accepted method is to set the IP as Static, from the machine itself.
    Well, it is 50/50 - static assignment on the system or DHCP reservations. I've seen both used in corporate environments. I've also seen a corporate campus crashed because their redundant DHCP servers failed. 2000 systems and none worked.

    Definitely best to set static IPs on each system, provided that system doesn't move. For laptop, using DHCP reservations is probably smarter.
    Back in 2011, I thought using DHCP reservations was a great idea for home. https://blog.jdpfu.com/2011/07/18/us...ice-management even after seeing that massive failure around 2005 at a client.

    Then I messed up my DHCP settings at home and none of my system would get an IP. That's when I decided to add my caveat.
    • Servers/Desktops - static IP configured on the device.
    • Portable devices - DHCP Reserved IPs, configured in redundant DHCP servers.
    • Devices that don't allow setting static IPs - DHCP Reserved IPs, configured in redundant DHCP servers. Mainly IoT stuff.

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •