Jonathan Caicedo via plug on 7 Nov 2024 16:50:47 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Static IP on Xfinity X1 network, cont'd


I haven’t been following the earlier version of the threads for this topic so there’s context I’m probably (definitely) missing - but what you’re probably going to what to do instead is DHCP Reservations on the XFi side - I know they’re configurable - I did that back when I had Xfinity and their provided gateway - but it’s been a while so I don’t remember the exact steps. 

DHCP Reservations are effectively a static IP based on MAC address, and the client device performs DHCP like normal - I’d say go that route, *especially* since you’re headless - if anything goes wrong, your NAS still uses DHCP like normal and it’s much easier to recover from. 

Google “XFi DHCP Reservations” and you’ll see a few threads - I remember it being a little obtuse to configure. 

Something critical to remember - your static IP needs to be on the same subnet as your DHCP server - if you try to do the “non-overlapping” thing (which doesn’t matter here) - make sure your subnet masks are correct. 

— Jonathan

On Nov 7, 2024, at 17:40, Adam Zion via plug <plug@lists.phillylinux.org> wrote:


Before I begin, I don't think I noted that this device is a headless NAS. Meaning, if the IP really goes agly, I'll have a bit of a challenge re-entering the configuration. So, I need to either get this bang on the first try, or be assured that it will fall back to a bog standard DHCP address, allowing me to discover it using the Xfinity router admin tool.

As recommended, I entered the configuration for my desired static IP using the nmtui utility. Unfortunately, after I entered the configuration the utility hardly made obvious the simple act of selecting "OK" rather than backing out using the escape key. And, after I backed out using escape, as you might expect, poof, there it went.

So.

I took the most direct approach: edited the dhcpcd.conf file and added what seems to be the correct information. As follows:

# Static wlan0 configuration:
interface wlan0
static ip_address=10.0.0.2/8
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=10.0.0.1
static domain_name_servers=10.0.0.1 75.75.75.75 76.76.76.76  fd51:42f8:caae:d92e::1

# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1

# fallback to static profile on eth0
#interface eth0
#fallback static_eth0

So, 2 questions: does this look right? And, if it's not right, will it fall back to the previous DHCP configuration and grab an IP so that I can ssh back into it?

Thx again,
-Z

--
Lord* Adam Zion, MSIS
Registered Linux User #471910
http://www.adamzion.com

* Yes, really
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug