• OpenBSD
  • openbsd internet setup correct ?

is my setup correct ?
i know you might need more info but is this correct ?
i find it ok but...
it says in the boot:

starting network daemons: sshd dhcpd (failed) smtpd sndiod

  • Jay replied to this.
  • Jay likes this.

    rhtoras you should check your router settings as well.

    “Only the paranoid survive.”

    ― Harold Finch
    NetBSD VPS , NetBSD , OS108

    are you able to ping openbsd.org?

    Looking at you ifconfig output, it's worth noting that re0 was only assigned a IPv6 address.

      JuvenalUrbino are you able to ping openbsd.org?

      Looking at you ifconfig output, it's worth noting that re0 was only assigned a IPv6 address.

      i am not able to ping this address
      re0 is assigned a ipv6 address but at the installation i assigned an ipv4 too...

      • rvp replied to this.

        rhtoras Check your router's DHCP settings for IPv4 as @Jay suggested.
        Also, post the output of this command:

        tail -n+1 /etc/myname /etc/mygate /etc/hostname.re0 /etc/rc.conf.local

          rhtoras OK. So a DHCP server is running instead of a client. Can you change that dhcpd_flags=re0 line to:

          dhcpleased_flags=

          then reboot.

            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.