|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 |
|
|||
I would start by disabling one of the network interfaces. Move the /etc/hostname.* file to another name.
|
|
|||
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 |
|
|||
Quote:
No good. |
|
|||
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` |
|
|||
ifconfig tells ne 192.168.1.167
I have never touched pf. rcctl ls failed returns nothing. |
|
|||
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' |
|
|||
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. |
|
|||
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. |
|
|||
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 |
|
|||
|
|
|||
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? |
|
|||
Quote:
I had a similar problem yesterday, and also today. : Code:
OpenBSD ml310e.utp.xnet 6.9 GENERIC.MP#457 amd64 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 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 - 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 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; 8th April 2021 at 05:10 AM. |
|
|||
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.
|
|
|||
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 |
|
|||
Code:
Last edited by J65nko; 10th April 2021 at 02:07 AM. Reason: fixed cmd tag ;) |
|
|||
Quote:
I have the same version/kernel: Code:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
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 |