[mdlug] Static IP behind NAT with Xfinity
R KANNAN
rk111810 at gmail.com
Wed Aug 5 14:30:32 EDT 2020
This could be a debian twist. I did a search for the static IP address on
all files and found a file under ./NetworkManager/system-connections with
the same name as my old router SSID
According to this link.
https://wiki.debian.org/NetworkManager#:~:text=NetworkManager%20keeps%20connection%20information%20on,man%20nm%2Dsettings%20or%20online.
this file "NetworkManager will only handle interfaces not declared in
/etc/network/interfaces."
This file seems to have all information on the router and internet service
such as DNS etc.
I did not manually create this file. Looks like somehow it got created and
is working. I will investigate further tonight.
On 8/5/20 9:55 AM, R Kannan wrote:
Cannot find this file...
root at HP-DVR:~# cd /etc
root at HP-DVR:/etc# ls -l dhcpcd.conf
ls: cannot access dhcpcd.conf: No such file or directory
root at HP-DVR:/etc# ls -l /etc/dhcpcd.conf
ls: cannot access /etc/dhcpcd.conf: No such file or directory
root at HP-DVR:/etc# cd /etc
root at HP-DVR:/etc# find . -name dhcpcd.conf
root at HP-DVR:/etc#
Thanks
On 8/5/20 9:12 AM, Jay Nugent wrote:
Greetings,
On Wed, 5 Aug 2020, R KANNAN wrote:
Thanks. I did follow the instructions but as I said in my previous email, I
do not see static IP being set in the */etc/network/interfaces *file. There
is no reference to eth0 at all in the file. Only the loop back.
/etc/network/interfaces has been depricated and no longer used. Leave
it to the snot-nosed pimply-faced kids to mess up a good thing and make
changes that are unneccesary :(
Newer distros are now favoring /etc/dhcpcd.conf as the place to edit
static addresses. Also now some ding-dong decided that ETH0 was not a
"predictable" interface name and think that "enxb827ebe0583e" is *more*
predictable because it contains the MAC address of the interface. DUH!
On Rasperian that is easily changed back to ETH0 using the raspi-config
tool (from the command line, NOT the GUI). How you do it in other distros,
I'm not sure...
Here is my snippet of code in /etc/dhcpcd.conf where I set a statis IP
on my ethernet interface:
#
# sudo raspi-config
# N2 Network
# "Predictable Interface Names" should be set to NO
#
# Static IP configuration:
# Modified JJN 20200712
#
interface eth0
###interface enxb827ebe0583e
static ip_address=23.115.92.205/29
###static ip6_address=fd51:42f8:caae:d92e::ff/64 <--- static IPv6
static routers=23.115.92.206
static domain_name_servers=23.115.92.201
### .... 8.8.8.8 fd51:42f8:caae:d92e::1 <--- IPv6 DNS server
Hope this helps!
--- Jay Nugent WB8TKL
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list