DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default Network Printer Disappeared after 6.5 -> 6.6

After an upgrade 6.5->6.6, my Network printer with a Static IP is no longer seen.
Code:
PooBear$ ping 192.168.2.3
PING 192.168.2.3 (192.168.2.3): 56 data bytes
ping: sendmsg: Host is down
ping: wrote 192.168.2.3 64 chars, ret=-1
On an Arch Linux laptop, via dhcpcd wireless, I can successfully ping the same printer.

Code:
PooBear# route show
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            Shepnet            UGS        1        1     -     8 re0  
base-address.mcast localhost          URS        0        0 32768     8 lo0  
127/8              localhost          UGRS       0        0 32768     8 lo0  
localhost          localhost          UHhl       1        2 32768     1 lo0  
192.168.2/24       PooBear            UCn        2        0     -     4 re0  
Shepnet            d8:eb:97:23:bb:1b  UHLch      1        5     -     3 re0  
PooBear            70:4d:7b:26:b3:ed  UHLl       0        5     -     1 re0  
Brother            link#2             UHRLc      0        1     -     3 re0  
192.168.2.255      PooBear            UHb        0        0     -     1 re0  

Internet6:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
::/96              localhost          UGRS       0        0 32768     8 lo0  
localhost          localhost          UHhl      10       40 32768     1 lo0  
::ffff:0.0.0.0/96  localhost          UGRS       0        0 32768     8 lo0  
2002::/24          localhost          UGRS       0        0 32768     8 lo0  
2002:7f00::/24     localhost          UGRS       0        0 32768     8 lo0  
2002:e000::/20     localhost          UGRS       0        0 32768     8 lo0  
2002:ff00::/24     localhost          UGRS       0        0 32768     8 lo0  
fe80::/10          localhost          UGRS       0        0 32768     8 lo0  
fec0::/10          localhost          UGRS       0        0 32768     8 lo0  
fe80::1%lo0        fe80::1%lo0        UHl        0        0 32768     1 lo0  
ff01::/16          localhost          UGRS       0        0 32768     8 lo0  
ff01::%lo0/32      fe80::1%lo0        Um         0        1 32768     4 lo0  
ff02::/16          localhost          UGRS       0        0 32768     8 lo0  
ff02::%lo0/32      fe80::1%lo0        Um         0        1 32768     4 lo0
My /etc/hostname.re0
Code:
inet 192.168.2.2 255.255.255.0
I am using the default /etc/pf.conf and made no network changes during the upgrade. A quick MARC mail list search did not come up with any guidance.

Could this have something to do with IPV6? Can I disable IPV6 on my LAN? Any other thoughts?[/CODE]

I am using the default /etc/pf.conf and made no network changes during the upgrade. A quick MARC mail list search did not come up with any guidance.

Could this have something to do with IPV6? Can I disable IPV6 on my LAN? Any other thoughts?

Last edited by shep; 24th October 2019 at 03:52 PM. Reason: added /etc/hostname
Reply With Quote
  #2   (View Single Post)  
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

[QUOTE=shep;67745]Could this have something to do with IPV6? No, the ping failure is IPv4.
Quote:
Can I disable IPV6 on my LAN?
Yes, but it will have no impact on IPv4.
Quote:
Any other thoughts?
I perceive this being a network provisioning problem. You haven't shown ifconfig(8) output, so assuming that both this system and your Linux system are on your 192.168.2/24 network, check PF. I know you've stated you're using the default PF provisioning, which has not changed since release 6.3:
Code:
#	$OpenBSD: pf.conf,v 1.55 2017/12/03 20:40:04 sthen Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf

set skip on lo

block return	# block stateless traffic
pass		# establish keep-state

# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010

# Port build user does not need network
block return out log proto {tcp udp} user _pbuild
Check the ruleset with # pfctl -sr, because if there was a problem with loading that file for any reason, you get an emergency PF configuration from rc(8) which you might not expect:
Code:
# Set initial temporary pf rule set.
if [[ $pf != NO ]]; then
	RULES="
	block all
	pass on lo0
	pass in proto tcp from any to any port ssh keep state
	pass out proto { tcp, udp } from any to any port domain keep state
	pass out inet proto icmp all icmp-type echoreq keep state
	pass out inet proto udp from any port bootpc to any port bootps
	pass in inet proto udp from any port bootps to any port bootpc"

	if ifconfig lo0 inet6 >/dev/null 2>&1; then
		RULES="$RULES
		pass out inet6 proto icmp6 all icmp6-type neighbrsol
		pass in inet6 proto icmp6 all icmp6-type neighbradv
		pass out inet6 proto icmp6 all icmp6-type routersol
		pass in inet6 proto icmp6 all icmp6-type routeradv
		pass out inet6 proto udp from any port dhcpv6-client to any port dhcpv6-server
		pass in inet6 proto udp from any port dhcpv6-server to any port dhcpv6-client"
	fi

	RULES="$RULES
	pass in proto carp keep state (no-sync)
	pass out proto carp !received-on any keep state (no-sync)"

	if (($(sysctl -n vfs.mounts.nfs 2>/dev/null) > 0)); then
		# Don't kill NFS.
		RULES="set reassemble yes no-df
		$RULES
		pass in proto { tcp, udp } from any port { sunrpc, nfsd } to any
		pass out proto { tcp, udp } from any to any port { sunrpc, nfsd } !received-on any"
	fi

	print -- "$RULES" | pfctl -f -
	pfctl -e
fi
Reply With Quote
  #3   (View Single Post)  
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

My /etc/pf.conf matches yours.

My ifconfig re0
Code:
PooBear# ifconfig re0 
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        lladdr 70:4d:7b:26:b3:ed
        index 2 priority 0 llprio 3
        groups: egress
        media: Ethernet 100baseTX full-duplex (100baseTX full-duplex,rxpause,txpause)
        status: active
        inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
I tried substituted /etc/examples/pf.conf, rebooted and still could not ping.

On another OpenBSD 6.6 amd64 system, using wireless dhcp, I can ping the printer. I am going to set my main system (with the static ethernet to dhcp) and will report back.

Edit: Changing my static interface to dhcp did not allow the ping.
my /etc/hostname.re0
Code:
PooBear$ cat /etc/hostname.re0  
inet 192.168.2.2 255.255.255.0 192.168.2.254 media 100baseTX mediaopt full-duplex
mtu 1492

Last edited by shep; 24th October 2019 at 05:55 PM. Reason: added more into
Reply With Quote
  #4   (View Single Post)  
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Two questions:
  • Did you check the output of pfctl(8)? You didn't mention it, only that the file contents matched.
  • Do you have multiple NICs provisioned for that subnet on this platform? If so, this is an error except in special cases such as carp(4).
Reply With Quote
  #5   (View Single Post)  
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

pfctl -sr
Code:
PooBear# pfctl -sr
block return all
pass all flags S/SA
block return in on ! lo0 proto tcp from any to any port 6000:6010
block return out log proto tcp all user = 55
block return out log proto udp all user = 55
I think the printer sends a message that it is ready. Would that be blocked with the .... return out .... lines?
Reply With Quote
  #6   (View Single Post)  
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

What you've posted is that the default PF configuration is running. You are unable to receive a response to a ping. You've posted that another host on the same subnet can receive a ping
Quote:
I think the printer sends a message that it is ready.
Before we trouble with SNMP and higher level protocol issues, let's confirm what's going on here.
To rule out PF as the problem, disable it and try to ping again:
Code:
# pfctl -d
# ping 192.168.2.3
To rule out multiple NICs provisioned on the same subnet:
Code:
$ ifconfig | grep 'inet 192.168.2.' | wc -l
The response should be '1'. And, if you have multiple NICs provisioned within the 192/8 range, I'd double check netmasks to ensure no overlaid subnets.

Last edited by jggimi; 24th October 2019 at 07:34 PM. Reason: clarity and a typo. then edited again for another typo
Reply With Quote
  #7   (View Single Post)  
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
PooBear# pfctl -d
pf disabled
PooBear# ping 192.168.2.3
PING 192.168.2.3 (192.168.2.3): 56 data bytes
ping: sendmsg: Host is down
ping: wrote 192.168.2.3 64 chars, ret=-1
ping: sendmsg: Host is down
ping: wrote 192.168.2.3 64 chars, ret=-1
^C
--- 192.168.2.3 ping statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
PooBear# ifconfig | grep 'inet ' | grep inet 192.168.2 | wc -l
grep: 192.168.2: No such file or directory
       0
I have an un-provisioned Realtek PCI-E 8188CE wifi card in this system. I was planning to migrate to a Ryzen system that I have been testing in -current with a rtwn0 card. Put the wifi card in my older system with the idea that I would transfer my files to the new system with sftp. The Ryzen motherboard failed so I just left the realtek card in without an /etc/hostname.rtwn0.

With
Code:
ifconfig rtwn0 down
, I can ping the printer. Have to figure out if I need to physically remove, or disable the rtwn code at boot or otherwise disable.

Last edited by shep; 24th October 2019 at 07:55 PM. Reason: more info
Reply With Quote
  #8   (View Single Post)  
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You have confirmed that PF is not the problem. Please post the entire contents of $ ifconfig as I now believe you have a provisioning problem.
Reply With Quote
  #9   (View Single Post)  
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I added this to a prior post but @jggimi replied in the interim.

I have an un-provisioned Realtek PCI-E 8188CE wifi card in this system. I was planning to migrate to a Ryzen system that I have been testing in -current with a rtwn0 card. Put the wifi card in my older system with the idea that I would transfer my files to the new system with sftp. The Ryzen motherboard failed so I just left the realtek card in without an /etc/hostname.rtwn0.

With

Code:
ifconfig rtwn0 down
, I can ping the printer. Have to figure out if I need to physically remove, or disable the rtwn code at boot or otherwise disable.
Reply With Quote
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Do you have a /etc/hostname.rtwn0 file? If so, its contents provision your second NIC. "dhcp" will provision an address, so I will guess that you had two NICs, one subnet, a network architecture no-no.

You *can* share a wired and wireless NIC on the same subnet, using a trunk(4). But they share a single IP address. See https://www.openbsd.org/faq/faq6.html#Wireless and the section Trunking Your Wireless Adapter for guidance on setting up a trunk(4) device that owns the single IP address, which will use wired and automatically switch to wireless when unplugged.
Reply With Quote
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I do not have an /etc/hostname.rtwn0. I did try adding one either containing "down" or "delete" but it did not allow ping'ing the printer. I could probably run
Code:
ifconfig rtwn0 down
in /etc/rc.local unless there is a more elegant way to disable.

Last edited by shep; 24th October 2019 at 08:16 PM.
Reply With Quote
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You could disable rtwn(4) in your kernel with config(8) but that would also disable the use of KARL and therefore any kernel syspatch(8).

I'm still hopeful that ifconfig(8) will show a problem that can be resolved.

You may also have kernel messages about NIC problems in /var/log/messages.
Reply With Quote
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
        index 4 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
rtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 24:0a:64:0e:76:f3
        index 1 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect
        status: no network
        ieee80211: nwid ""
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        lladdr 70:4d:7b:26:b3:ed
        index 2 priority 0 llprio 3
        groups: egress
        media: Ethernet 100baseTX full-duplex (100baseTX full-duplex,rxpause,txpause)
        status: active
        inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
enc0: flags=0<>
        index 3 priority 0 llprio 3
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 5 priority 0 llprio 3
        groups: pflog
cat /var/log/messages | grep rtwn
Code:
Oct 24 14:43:38 PooBear /bsd: rtwn0 at pci2 dev 0 function 0 "Realtek 8188CE" rev 0x01: msi
Oct 24 14:43:38 PooBear /bsd: rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R, address 24:0a:64:0e:76:f3

Last edited by shep; 24th October 2019 at 09:51 PM. Reason: added /var/log/messages
Reply With Quote
Old 24th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I don't see any issues. Sorry I can't help further.
Reply With Quote
Old 24th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Thanks, you helped immensely.Name:  1f37a.png
Views: 131
Size:  3.2 KB

Last edited by shep; 24th October 2019 at 10:28 PM.
Reply With Quote
Old 25th October 2019
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Some follow-up. Turned out to be a mangled perDNS line in my router.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Death by 3D printer comet--berkeley General Hardware 2 29th January 2017 08:30 PM
What's happening here? USB and SSD's connections disappeared suddenly betweendayandnight OpenBSD Installation and Upgrading 29 9th March 2016 04:49 PM
/var/log disappeared after upgrade acampbell OpenBSD Installation and Upgrading 6 25th November 2015 09:14 AM
lpr printer setup shep OpenBSD Installation and Upgrading 11 3rd March 2011 07:11 AM
IP Printer Setup kjemison FreeBSD General 4 2nd June 2008 02:35 PM


All times are GMT. The time now is 10:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick