|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 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 Code:
inet 192.168.2.2 255.255.255.0 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 |
|
|||
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 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 |
|
||||
Two questions:
|
|
|||
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 |
|
||||
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:
To rule out PF as the problem, disable it and try to ping again: Code:
# pfctl -d # ping 192.168.2.3 Code:
$ ifconfig | grep 'inet 192.168.2.' | wc -l Last edited by jggimi; 24th October 2019 at 07:34 PM. Reason: clarity and a typo. then edited again for another typo |
|
|||
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 With Code:
ifconfig rtwn0 down Last edited by shep; 24th October 2019 at 07:55 PM. Reason: more info |
|
|||
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 |
|
||||
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. |
|
|||
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 Last edited by shep; 24th October 2019 at 08:16 PM. |
|
||||
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. |
|
|||
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 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 |
|
|||
Thanks, you helped immensely.
Last edited by shep; 24th October 2019 at 10:28 PM. |
|
|||
Some follow-up. Turned out to be a mangled perDNS line in my router.
|
Thread Tools | |
Display Modes | |
|
|
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 |