Keyboard Shortcuts
Likes
- RaspberryPi-4-HamRadio
- Messages
Search
Re: Finding /dev/serial/by-id
开云体育Hello Don, That patch file doesn't give a lot of context to the changes as it seems to be very PCI specific.? Is there another URL that talks about the issue and then points to this patch as the fix??? Beyond that, is there any specific line in that patch file for the udev configuration file that solved your issue?? --David KI6ZHD On 07/27/2023 06:30 AM, Don - kx9q
wrote:
|
Re: Setup static IP address
The dhcpcd.conf was created using eth0 and it would also setup wifi with wlan0.? When I right clicked on the network icon in the upper right corner. and then to Wireless & Wired Network Settings all that was given was eth0 and wlan0.? Here is what I see when I enter ip addr:
$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ? ? link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 ? ? inet 127.0.0.1/8 scope host lo ?? ? ? valid_lft forever preferred_lft forever ? ? inet6 ::1/128 scope host? ?? ? ? valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 ? ? link/ether d8:3a:dd:12:ab:a7 brd ff:ff:ff:ff:ff:ff ? ? inet 192.168.1.194/24 brd 192.168.1.255 scope global noprefixroute eth0 ?? ? ? valid_lft forever preferred_lft forever ? ? inet6 fe80::c1e3:8a87:c79:9f5d/64 scope link? ?? ? ? valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 ? ? link/ether d8:3a:dd:12:ab:a8 brd ff:ff:ff:ff:ff:ff |
Re: Finding /dev/serial/by-id
开云体育Hello Don, Can you point us to this "fix" so we understand what it's doing? --David KI6ZHD On 07/26/2023 08:46 AM, Don - kx9q
wrote:
I have created this new subject as a split off from the original subject "Setup static IP address".?? |
Finding /dev/serial/by-id
I have created this new subject as a split off from the original subject "Setup static IP address".??
Apparently when I created a new pi os image I lost the "by-id".? I searched around and finally found a fix.? Not being linux.debian user I did not know how to merge so I ended up doing a cut and paste to the following file: /usr/lib/udev/rules.d/60-serial.rules which resolved my problem, however, I understand that if there is another update to the os this file gets overwritten unless the update has implemented this patch. Don - kx9q |
Re: Setup static IP address
I found a patch file but I am not very familiar with linux/debian commands I did not know how to import it into the /usr/lib/udev/rules.d/60-serial.rules file so I went about by copying code and # code that needed to be deleted.? My understanding is if there is an update this file will get overwritten unless this patch is put into the next release.? I would agree about creating a new thread.? I will call it Finding /dev/serial/by-id? how does that sound?
with the fix I get the following: $ ls -la /dev/serial/by-id total 0 drwxr-xr-x 2 root root 60 Jul 26 10:33 . drwxr-xr-x 4 root root 80 Jul 26 10:33 .. lrwxrwxrwx 1 root root 13 Jul 26 10:33 usb-FTDI_FT232R_USB_UART_AH071YSW-if00-port0 -> ../../ttyUSB0 |
Re: Setup static IP address
开云体育Hey Don, One thing that dawned on me... are you using Predictable interface names?? If you are using them, your interfaces won't be named "eth0" but would be named something like "enxb827eb5f05".? As such, the changes to /etc/dhcpcd.conf should be using that name and NOT say "eth0".? Run the command "ip addr" to see the interface names on your system. --David KI6ZHD On 07/24/2023 03:58 PM, Ray Wells
wrote:
I bow to David's superior networking knowledge but throw in my thoughts regardless ;-) |
Re: Setup static IP address
开云体育Hello Don, I should add that after I setup the ip address through Wireless & Wired Setting and rebooted the pi that is what I had in the dhcpcd.conf file.? ?I had not seen the "inform" command before.? If you're curious, monitor the network transaction between this client computer and the DHCP server with tcpdump or wireshark.? That said, the DHCPINFORM packet is not about getting an IP address but instead, getting more information from the DHCP server about everything else: ?? Ultimately, the "inform" dhcp client attribute tells the DHCP server that the client currently has that IP address and it would like to keep using it.? If the DHCP server agrees, it will ACK (acknowledge) the request.? If it disagrees, it will NAK (not acknoledge) the request.? ?? ?? -- ?? DHCPINFORM?? -? Client to server, asking only for local configuration ?????????????????? parameters; client already has externally configured ?????????????????? network address. ?? -- Bottom line I was able to use the ip address I wanted which was in the range of the static ip addresses that I setup in the router/firewall -a Cisco ASA 5306-X which is plugged into an Arris SURFboard SB-8200 DOCSIS 3.1 cable modem (no sense paying xfinity a monthly bill to provide the modem).? So I am basically running wifi throughout the house, however, since I use flex equipment I still need wired enet which I get from the netgear orbi running a mesh wifi network. Each unit of the mesh also supports enet which allows me to connect to a switch for my Flex equipment. It's good to hear you got it working but it's still very strange to me that the usual (and stupid way) to configure a static IP address through the /etc/dhcpcd.conf file isn't working for you.? As a second item has anyone experienced the loss of /dev/serial/by-id?? I lost the by-id though the by-path still exists. I would create a new thread for this topic but I use it quite a bit (that and udev rules).? What does "ls -la /dev/serial/by-id/" show you -- $ ls -la /dev/serial/by-id/ total 0 drwxr-xr-x 2 root root 180 Jul? 7 12:43 . drwxr-xr-x 4 root root? 80 Jun 20 20:36 .. lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if00-port0 -> ../../ttyUSB2 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if01-port0 -> ../../ttyUSB3 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__RS232___Config__00000002-if00-port0 -> ../../ttyUSB6 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__RS232___Config__00000002-if01-port0 -> ../../ttyUSB7 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__WKey___FSK__00000001-if00-port0 -> ../../ttyUSB4 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-FTDI_Navigator__WKey___FSK__00000001-if01-port0 -> ../../ttyUSB5 lrwxrwxrwx 1 root root? 13 Jul? 7 12:43 usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 -> ../../ttyUSB0 -- --David KI6ZHD |
Re: Setup static IP address
I should add that after I setup the ip address through Wireless & Wired Setting and rebooted the pi that is what I had in the dhcpcd.conf file.? ?I had not seen the "inform" command before.? Bottom line I was able to use the ip address I wanted which was in the range of the static ip addresses that I setup in the router/firewall -a Cisco ASA 5306-X which is plugged into an Arris SURFboard SB-8200 DOCSIS 3.1 cable modem (no sense paying xfinity a monthly bill to provide the modem).? So I am basically running wifi throughout the house, however, since I use flex equipment I still need wired enet which I get from the netgear orbi running a mesh wifi network. Each unit of the mesh also supports enet which allows me to connect to a switch for my Flex equipment.
As a second item has anyone experienced the loss of /dev/serial/by-id?? I lost the by-id though the by-path still exists. Don - kx9q |
Re: Setup static IP address
开云体育I bow to David's superior networking knowledge but throw in my thoughts regardless ;-)The use of "inform" is strange to me so I looked up the manpage for dhcpcd.conf and it left me wondering if its use is "wrong" for Don's circumstances??? This from the manpage about inform: "This does not get a lease as such, just notifies the DHCP server of the address in use." Does that mean the information only tells the router the address in use, so don't allocate it? Does it also mean the router otherwise ignores the configured IP address? All "normal" (whatever that is) examples of setting a static address in dhcpcd.conf that I've seen use "static ip_address=" and there is an example of this in the manpage. This is one of numerous examples in use here on original Pi B (x2), RPi4B (x3), and an Odroid C1+. #static IP interface eth0 static ip_address=192.168.1.144 static routers=192.168.1.254 static domain_name_servers=192.168.1.134 1.1.1.1 HTH Ray vk2tv On 25/7/23 01:55, David Ranch wrote:
|
Re: Setup static IP address
开云体育This is all very strange and something I've never seen.? I'm curious, if you connect up the Raspberry Pi to a isolated switch just to give the Rpi's ethernet port a link, will it assign 192.168.1.194 to the port even though no DHCP server is reachable? --David KI6ZHD On 07/23/2023 09:44 AM, Don - kx9q
wrote:
I tried both ways - 192.168.1.194 and 192.168.1.194/24.? Did not make a difference.? What I did find was when I installed the pi os on the sd card I was asked if I wanted to install the wireless.? Up to the last time I generated the os I always created the wireless.? This time I did not create the wireless and when I went to install the os on the pi I found that when I right clicked on the network icon in the upper right corner I was then able to seeWireless & Wired Network Settings.. and I was then able to enter the eth0 and I could also enter the wlan0 if I wanted to use wireless. |
Re: Setup static IP address
I tried both ways - 192.168.1.194 and 192.168.1.194/24.? Did not make a difference.? What I did find was when I installed the pi os on the sd card I was asked if I wanted to install the wireless.? Up to the last time I generated the os I always created the wireless.? This time I did not create the wireless and when I went to install the os on the pi I found that when I right clicked on the network icon in the upper right corner I was then able to seeWireless & Wired Network Settings.. and I was then able to enter the eth0 and I could also enter the wlan0 if I wanted to use wireless.
The /etc/dhcpcd.conf contained the following: interface eth0 inform 192.168.1.194 static routers=192.168.1.254 static domain_name_servers=1.1.1.1 8.8.8.8 I believe the "inform" tells the dhcp server to use this ip address rather than a dhcp available ip address in the dhcpcd.conf file. Don - kx9q |
Re: Setup static IP address
开云体育On a working Raspberry Pi OS (Debian 11 / Bullseye) setup here, I have the following but notice I have a CIDR slash-style netmask behind the IP: -- interface eth0 static ip_address=192.168.0.10/29 static routers=192.168.0.1 static domain_name_servers=75.75.75.75 75.75.76.76 -- --David KI6ZHD On 07/21/2023 02:02 PM, Don - kx9q
wrote:
My router/firewall has a set of IP addresses reserved for static - 192.168.1.190-199. |
Re: Setup static IP address
I found out why I could not set the static routes and have them maintained.? When I installed the pi os on the sd card I was asked if I wanted to configure the wireless which I usually did.? This time I decided to forgo that step.? When I booted up the pi from the sd card, I was able to go in and set the eth0 and wlan0 by right clicking on the icon in the upper right hand corner of the screen representing the type of network interface.? Prior to this the wired and wireless was always greyed out.? It is confusing as to why the changes made to the dhcpcd.conf? file would not work.? There must be some lock implemented if you configure the wifi during the generation of the os.
Don - kx9q |
Re: Setup static IP address
My router/firewall has a set of IP addresses reserved for static - 192.168.1.190-199.
I have only modified the /etc/dhcpcd.conf file by adding the following lines.? ? interface wlan0
?static ip_address=192.168.1.194
?
interface eth0
?static ip_address=192.168.1.193
?
?static routers=192.168.1.254
?static domain_name_servers=1.1.1.1 8.8.8.8
?
ifconfig: drspock@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>? mtu 1500
? ? ? ? inet 192.168.1.220? netmask 255.255.255.0? broadcast 192.168.1.255
? ? ? ? inet6 fe80::da51:e339:25a0:e28f? prefixlen 64? scopeid 0x20<link>
? ? ? ? ether d8:3a:dd:12:ab:a7? txqueuelen 1000? (Ethernet)
? ? ? ? RX packets 4689? bytes 1717138 (1.6 MiB)
? ? ? ? RX errors 0? dropped 41? overruns 0? frame 0
? ? ? ? TX packets 4415? bytes 513969 (501.9 KiB)
? ? ? ? TX errors 0? dropped 0 overruns 0? carrier 0? collisions 0
?
lo: flags=73<UP,LOOPBACK,RUNNING>? mtu 65536
? ? ? ? inet 127.0.0.1? netmask 255.0.0.0
? ? ? ? inet6 ::1? prefixlen 128? scopeid 0x10<host>
? ? ? ? loop? txqueuelen 1000? (Local Loopback)
? ? ? ? RX packets 186? bytes 16770 (16.3 KiB)
? ? ? ? RX errors 0? dropped 0? overruns 0? frame 0
? ? ? ? TX packets 186? bytes 16770 (16.3 KiB)
? ? ? ? TX errors 0? dropped 0 overruns 0? carrier 0? collisions 0
?
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>? mtu 1500
? ? ? ? inet 192.168.1.227? netmask 255.255.255.0? broadcast 192.168.1.255
? ? ? ? inet6 fe80::74ad:26c1:7b44:72fd? prefixlen 64? scopeid 0x20<link>
? ? ? ? ether d8:3a:dd:12:ab:a8? txqueuelen 1000? (Ethernet)
? ? ? ? RX packets 1041? bytes 154046 (150.4 KiB)
? ? ? ? RX errors 0? dropped 38? overruns 0? frame 0
? ? ? ? TX packets 51? bytes 6815 (6.6 KiB)
? ? ? ? TX errors 0? dropped 0 overruns 0? carrier 0? collisions 0
?
route -ne Kernel IP routing table
Destination? ? ?Gateway? ? ? ? ?Genmask? ? ? ? ?Flags? ?MSS Window? irtt Iface
0.0.0.0? ? ? ? ?192.168.1.254? ?0.0.0.0? ? ? ? ?UG? ? ? ? 0 0? ? ? ? ? 0 eth0
0.0.0.0? ? ? ? ?192.168.1.254? ?0.0.0.0? ? ? ? ?UG? ? ? ? 0 0? ? ? ? ? 0 wlan0
192.168.1.0? ? ?0.0.0.0? ? ? ? ?255.255.255.0? ?U? ? ? ? ?0 0? ? ? ? ? 0 eth0
192.168.1.0? ? ?0.0.0.0? ? ? ? ?255.255.255.0? ?U? ? ? ? ?0 0? ? ? ? ? 0 wlan0
?
Bottom line when I rebooted dhcp assigned two different ip addresses which where not the ones I used -eth0: 192.168.1.220. and wlan0: 192.168.1.227.? ?I am not sure what i am doing wrong here.
Don - kx9q |
Re: Misc RPi4B & CM108 Questions
开云体育Hello Scott, Many of your questions are Allstar centric.? Why wouldn't you post this on the HamVoIP list? For a graceful shutdown button, I do believe that Raspberry Pi image includes one.? See the HamVoIP documentation.? If not, it's easy to add one.?? Finally, I think you can run HamVoIP a receive only device using the onboard audio out only sound jack but it might take some minor configuration changes to make that work.? --David KI6ZHD On 07/22/2023 08:33 AM, Scott Eckert
via groups.io wrote:
Still working on my Allstar node using a RPi4B, CM108 audio fob and BF-888S. Assume I'm running HamVoip. I have a couple more questions for the group. |
Misc RPi4B & CM108 Questions
Still working on my Allstar node using a RPi4B, CM108 audio fob and BF-888S. Assume I'm running HamVoip. I have a couple more questions for the group.
1) Does CM108 Pin 48 (VOLDN) require an active low or high from the Baofeng COS? I measure a 0V to 2.4V transition when the Baofeng receives, which implies a normally LOW condition at Pin 48 with a HIGH signal when COS is active. 2) Does CM108 pin 13 (GPIO3) go HIGH when audio ready to go to the Baofeng PTT? 3) Most mod approaches seem to tap the Baofeng received audio from the top of the volume pot and then feed the CM108 Pin 27 (MICIN) through a 10K resistor or a pot. Why not just use the volume control wiper output to feed CM108 Pin 27 and have a variable input to Pin 27? 4) Does HamVoip provide for gracefull shutdown using a SPST switch? How about the RPi4B while not runninh HamVoip - is there a simple way to shut it down without changing any software? 5) Can I run HamVoip on the Pi without an Audio fob or radio to test the HamVoip operation? It seems like I should be able to. Thanks. Scott Eckert/KK6DZ ? |
Slighly OT - Raspberry Pi as a scanner
开云体育Anyone built a Pi to use as a scanner? ? I was thinking of one as a standalone setup with a screen to work as a scanner maybe with options like ? Close Call Waterfall Memories for favourite channels etc? ? ? Open to advice/suggestions. ? Cheers John ? |
Re: Setup static IP address
David Donaldson KC30SG / WRCB627
Don, Or you may have edited?/etc/network/interfaces? Anyway post it here. And yes, it might be better if you set a "reservation" address in your router. Especially if you ever take your 400 to a different location and expect it to work there. dave... David B. Donaldson dave@... 443-618-2454 cell WRCB627 / KC3OSG ------------------------------------------------------- The only good in this world is what we bring. The only bad, is what we allow. - dbd On Thu, Jul 20, 2023 at 5:52?PM Don - kx9q <don@...> wrote: I have tried unsuccessfully to setup a static ip address for the pi 400 modifying dhcpcd.conf.? I am successful in updating the conf file, however, I feel like the system is not really looking at this file.? In fact I turned off the pi last night and when I powered on it picked up a new dhcp address.? Any thoughts. |