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 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default No internet connection

Uname -a tells me I'm running 6.9 GENERIC#449 amd64 on a ThinkPad X220.

On Monday past I used my laptop with no problems.
On Tuesday I didn't even touch it.
Today, Wednesday I have no internet connection and I have no idea why.

When I boot up I see the message for both em0 and iwn0 got link, lease accepted but there is no connection to the internet.

The problem has to be with OpenBSD as I also have a MacBook Air which is connecting with no problem.

If anyone can suggest where I might look or what steps I might take I would appreciate it.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 269
Default

I would start by disabling one of the network interfaces. Move the /etc/hostname.* file to another name.
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Further to my original post:
I looked in /var/log/messages and saw:
reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC/relink.log

Looking at that log file:
(SHA256) /bsd: OK
make: don't know how to make netbsd
Stop in /usr/share/relink/kernel/GENERIC

There is also a GENERIC.MP directory. Since I have a multi-processor machine
shouldn't it be looking in there?

Thanks
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Quote:
Originally Posted by TronDD View Post
I would start by disabling one of the network interfaces. Move the /etc/hostname.* file to another name.
I've tried with only a wifi connection and only an ethernet connection.
No good.
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 269
Default

Ok, you got an IP on the ethernet connection?

Are you running pf? What are you rules?

Ddid any services fail at start up?
`rcctl ls failed`
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

ifconfig tells ne 192.168.1.167

I have never touched pf.

rcctl ls failed returns nothing.
Reply With Quote
  #7   (View Single Post)  
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 269
Default

Just saw you're earlier follow up.

You are running the single processor kernel. What do you have in /?

`ls -al /bsd*`

Do you have a bsd.mp? If yes trying booting that. When you reboot, at the boot> prompt type 'boot bsd.mp'
Reply With Quote
  #8   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

The only files in /bsd* are:
/bsd
/bsd.booted/
/bsd.rd
/bsd.sp

I do know that every time I have run sys upgrade it has relinked to bsd.mp but apparently not this time.
Reply With Quote
  #9   (View Single Post)  
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 269
Default

Are bsd, bsd.booted and bsd.sp the same size? Usually the MP is a little bigger.

Other thing to try is to boot the bsd.rd, and if that gets a network connection, run through the upgrade to get a fresh kernel.

If none of these kernels work, I'd go back to looking at the networking.
Reply With Quote
Old 1 Week Ago
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 956
Default

Quote:
Originally Posted by stanl View Post
make: don't know how to make netbsd
netbsd ... I that just a typo?
Reply With Quote
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Yes all bed's are about the same size. I tried booting with bsd.rd but it doesn't get a network connection.

Can you point me to where in networking I should look?

Thanks
Reply With Quote
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Quote:
Originally Posted by IdOp View Post
netbsd ... I that just a typo?
Yes, should be newbsd.
Reply With Quote
Old 1 Week Ago
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 269
Default

Can you get an MP kernel on there with some external media?

For the networking, make sure you have an IP and netmask you expect for your network with ifconfig.

Does 'netstat -rn' show a default gateway with the IP of your router and the correct network interface?

Can you ping the gateway IP?
Reply With Quote
Old 1 Week Ago
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,652
Default

Quote:
Originally Posted by stanl View Post
Uname -a tells me I'm running 6.9 GENERIC#449 amd64 on a ThinkPad X220.
So you installed a 6.9-Beta snapshot?

I had a similar problem yesterday, and also today. :
Code:
OpenBSD ml310e.utp.xnet 6.9 GENERIC.MP#457 amd64
As you can see this not 6.9-beta, but also not quite 6.9 release.
When booting up my box syspatch failed:
Code:
# syspatch
syspatch: Error retrieving https://cloudflare.cdn.openbsd.org/pub/OpenBSD/syspatch/6.9/amd64/SHA256.sig: 404 Not Found
The contents of the syspatch directory:
Code:
Index of /pub/OpenBSD/syspatch/

../                                                07-Apr-2021 22:17                   -
6.1/                                               06-Mar-2017 11:33                   -
6.2/                                               20-Apr-2018 02:04                   -
6.3/                                               27-Oct-2018 05:30                   -
6.4/                                               27-May-2019 07:10                   -
6.5/                                               29-Oct-2019 23:01                   -
6.6/                                               20-May-2020 10:16                   -
6.7/                                               27-Oct-2020 08:13                   -
6.8/                                               18-Oct-2020 01:31                   -
As you can see there is no 6.9 yet.
My guess is that you need firmware for your network card(s) to function and that that failed because your kernel is in the twilight zone between "snapshots" and "release".

The 6.9 snapshot installation directory structure is still there, but the 6.9 release structure (including the firmware directory) does not exist yet.

Just now I could not install firefox-esr:
Code:
# pkg_add firefox-esr-78.9.0.tgz^M
Redirected to https://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages-stable/amd64/
http://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages-stable/amd64/: Requesting https://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages-stable/amd64/
Redirected to https://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages/amd64/
http://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages/amd64/: Requesting https://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages/amd64/
http://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.9/packages/amd64/: no such dir
As you can see it is searching in OpenBSD/6.9/packages/amd64 directory when it has not yet been created.
I had to use the -D snap option to pkg_add to force searching the snapshot directories:
Code:
#  pkg_add -D snap firefox-esr
Redirected to https://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/
http://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/:
Requesting https://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/
quirks-3.630 signed on 2021-04-07T15:23:52Z
quirks-3.630 (extracting [snip]
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 1 Week Ago at 05:10 AM.
Reply With Quote
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Thanks to TronDD and J65nko for taking the time to comment on my problem and offer suggestions. In the end I decided this was all beyond my capabilities and went with a full reinstall. As I have backups with rsnapshot it wasn't as bad as I feared.
Reply With Quote
Old 1 Week Ago
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,652
Default

I understand you prefer reinstalling. But it would be interesting, when after the reinstall you have internet access, to post the $ uname -a output.
That way we would know whether you are really running 6.9
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 6 Days Ago
stanl stanl is offline
Real Name: Stan
Fdisk Soldier
 
Join Date: Jun 2019
Posts: 81
Default

Code:
% uname -a
OpenBSD cadfael.fios-router.home 6.9 GENERIC.MP#457 amd64

Last edited by J65nko; 6 Days Ago at 02:07 AM. Reason: fixed cmd tag ;)
Reply With Quote
Old 6 Days Ago
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,652
Default

Quote:
Originally Posted by stanl View Post
Code:
% uname -a
OpenBSD cadfael.fios-router.home 6.9 GENERIC.MP#457 amd64
OK, so like me you are running the latest 6.9 snapshot / release candidate, although that version has not been released officially

I have the same version/kernel:
Code:
$ uname -a
OpenBSD ml310e.utp.xnet 6.9 GENERIC.MP#457 amd64
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
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
Strange internet connection issue schh OpenBSD General 11 6th June 2011 11:02 PM
Huawei E169 (e220) Internet connection on NetBSD Peiteros NetBSD General 11 19th December 2009 11:18 PM
pppoe internet connection on another lladdr enaqx General software and network 3 4th July 2009 12:07 AM
finding packages denpendencies with no internet connection roddierod OpenBSD Packages and Ports 1 13th November 2008 03:17 PM
no internet connection inside jail...? bgobs FreeBSD General 11 17th June 2008 04:36 PM


All times are GMT. The time now is 07:05 AM.


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