• OpenBSD
  • openbsd internet setup correct ?

rvp
I did that (edited with vi on /etc/ rc.conf.local)but nothing really changed...
Do you want any screenshot?
As i see it, it seems i have to use an external usb wifi dongle by tp link and install its firmware off line so i can have at least a proper connection...

  • rvp replied to this.

    rhtoras Do you want any screenshot?

    Output of:

    fgrep dhcpleased /var/log/daemon /var/log/messages

      rhtoras What hasn't dhcpleaded started? Can you start it manually and see if you get an IP address?

      /sbin/dhcpleased -d -v -v -v 2>&1 | tee /tmp/dhcpleased.log

      Post the dhcpleased.log

        rhtoras That command-line is wrong--the log-file path is missing the leading /

        Anyway, since it looks like dhcpleased is already running, what's the output of these commands:

        dhcpleasectl log verbose
        dhcpleasectl show interface re0
        dhcpleasectl send request re0
        sleep 15
        dhcpleasectl show interface re0
        fgrep dhcpleased /var/log/daemon

          rvp
          You were right...
          Btq i wonder why all this hassle in a simpl
          e installation. What could have gone wrong?
          Anyways:

          • rvp replied to this.

            Sorry, looks like dhcpleasectl has changed a lot between 6.9 and 7.2 and those commands just don't exist in the new version anymore. Please try, and show the output of:

            dhcpleasectl -l
            rcctl stop dhcpleased
            /sbin/dhcpleased -d -v -v

            The last command will stay in the foreground, so if you want to do ifconfig re0 etc, you'll have to open another xterm window.

            rhtoras i wonder why all this hassle in a simple installation. What could have gone wrong?

            Well, this has to be some local issue because probably thousands of people are using OpenBSD + DHCP everyday and it works for them all--incl. me. Some things to check:

            1. Restrictive local firewall rules. Temporarily set pf=NO in /etc/rc.conf.local and reboot. Check if an IP address is assigned.

            2. Firewall rules on the gateway/router. Check these too.

            3. Any Accept-Only list on the gateway/router. You can setup a DHCP server on a router to only serve certain ethernet addresses (typically for wireless nodes). Check such a list if present.

            4. Reject-Addresses list on the gateway/router. If your ethernet address is in some sort of a reject-addresses list, then you'll never get an IP address. Some routers have both Accept and Reject lists.

            5. Intermittently faulty cable (unlikely because your ifconfig re0 says active, so it was up during the command, at least.)

              rvp
              I suspect it has to do with my router .

              • rvp replied to this.
              • Jay likes this.

                rhtoras I suspect it has to do with my router.

                If dhcpleased is timing out, then yeah...

                  rvp That was what i said too. To be honest i thought it was thwe router from the first time because i had made an installation on openbsd in the past on hard drive and everything wasn't working with this router. Thing is i do not know if a solution can work. So openbad in thiw particular machine wont work right ? I wknder though why netbsd worked just fine with this particular modem. So as i see it, the installation might work only with a wifi dongle...

                    rhtoras because i had made an installation on openbsd in the past on hard drive and everything wasn't working with this router.

                    When I ran dhcpleased -d -v on my OpenBSD 6.9 I noticed that it initially output some binary junk before it printed the rest of the debug messages. I don't know if the dhcpleased in 7.2 has this, or other, bugs. So, try the other (older) DHCP client available in OpenBSD:

                    rcctl stop dhcpleased		# stop any running clients
                    dhclient -d re0			# get lease using dhclient

                    See if you get an IP address this way.

                    rhtoras unfortunately nothing happened...
                    I wonder why other bsds and linix works...
                    Nebermind i will try fuguita and if it does the same i will swithc to freebsd...

                    p.s i have a serrcom h300s router used by vodafone

                    • rvp replied to this.

                      rhtoras unfortunately nothing happened...

                      Power-off your system for 30 seconds, then try again.

                      My laptop has a weird issue where if you reboot from Linux into FreeBSD, then the NIC doesn't transmit any packets even though the NIC is detected OK. The same thing happens if I reboot from OpenBSD with a DHCP-acquired IP address into NetBSD or FreeBSD with configured for static addresses. I've learnt to power-off the laptop when I switch OSes like this.

                        rvp
                        i powered off pc and changed port and now evetyrhing works just fine...
                        Thanks a lot for the help...
                        I will be here to help more the unix community since i am coming from apple unix back in the 90's.
                        Cheers!

                        • Jay likes this.