• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

(SOLVED)no dhcp on the lan !!!

DHCP and DNS
3
15
2.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    major501
    last edited by major501 Feb 4, 2019, 6:44 PM Feb 3, 2019, 2:41 PM

    hello everyone I installed pfsense on vmware workstation
    I gave them 2 network cards
    wan in nat
    alt text

    lan in lan segment
    alt text
    here is the problem with a server ubuntu machine i am trying to have an ip automatically
    by doing a dhclient eth0 but it's not working
    I have active dhcp-server su pfsense on the map lan but it does not want market
    if you have an idea to help me

    K 1 Reply Last reply Feb 3, 2019, 2:57 PM Reply Quote 0
    • K
      Konstanti @major501
      last edited by Konstanti Feb 3, 2019, 3:19 PM Feb 3, 2019, 2:57 PM

      @major501
      Hey

      1. Check whether the DHCP service is running or not
        /status/services
        login-to-view

      and
      check if the pf receives a dhcp request and responds to it
      from cli
      tcpdump -nettti em1 "udp and (port 67 or port 68)"

      ethertype IPv4 (0x0800), length 364: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:be:3b:be:df:59, length 322
      ,ethertype IPv4 (0x0800), length 342: 192.168.1.1.67 > 192.168.1.42.68: BOOTP/DHCP, Reply, length 300
      ethertype IPv4 (0x0800), length 364: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:be:3b:be:df:59, length 322
      ethertype IPv4 (0x0800), length 342: 192.168.1.1.67 > 192.168.1.42.68: BOOTP/DHCP, Reply, length 300

      1 Reply Last reply Reply Quote 0
      • M
        major501
        last edited by Feb 3, 2019, 5:00 PM

        service dhcp is launch
        alt text

        sorry I entered the order but nothing is displayed !!
        alt text

        K 1 Reply Last reply Feb 3, 2019, 5:37 PM Reply Quote 0
        • K
          Konstanti @major501
          last edited by Feb 3, 2019, 5:37 PM

          @major501
          if you manually assign the ubuntu server ip address with the default gateway 192.168.12.1, will it be able to ping 192.168.12.1 ? for example, 192.168.12.2

          1 Reply Last reply Reply Quote 0
          • M
            major501
            last edited by Feb 3, 2019, 5:56 PM

            https://i.imgur.com/hBoz6zu.png
            i want to automatic assign ip with pfsense

            K 1 Reply Last reply Feb 3, 2019, 6:14 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Feb 3, 2019, 6:03 PM

              Well it shows dhcp server running... So if your client is not getting dhcp - more than likely its not on the correct network via your VM setup..

              Does the dhcp service pfsense show any discover in the logs? Does it show its trying to had out an offer?

              The point of setting static on the machines was to actually validate you have connectivity to pfsense where the dhcp server is running.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • K
                Konstanti @major501
                last edited by Feb 3, 2019, 6:14 PM

                @major501

                show the output of the command ifconfig -m
                the picture shows
                that interface em1 is down

                1 Reply Last reply Reply Quote 0
                • M
                  major501
                  last edited by Feb 4, 2019, 3:38 PM

                  I do not understand why the wan has a dhcp despite all my setting I would like the dhcp on the lan
                  alt text

                  here is the output of the command ifconfig -m em1
                  alt text

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by johnpoz Feb 4, 2019, 4:17 PM Feb 4, 2019, 4:14 PM

                    Your EM1 is not up - status = NO CARRIER. kind of hard for anything to talk to it when its not online. Or get a dhcp from it.

                    Did you setup your VM settings to enable that nic on power up?

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • M
                      major501
                      last edited by Feb 4, 2019, 4:30 PM

                      thank you for your answer i rule my problem with virtualbox i can make internet networks and on the configuration panel the 2 cards are in green c is vmware-workstation which refuses to connect the card to the internal lan

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by Feb 4, 2019, 4:41 PM

                        Not sure what your issue is, but I have run pfsense on pretty much every VM solution out there and not had any issues. VirtualBox, Vmware Workstation, Vmware sphere/esxi, Hyper-V, etc.

                        All I can tell you if pfsense doesn't see the interface up - then no its not going to be able to do anything with that nic.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • M
                          major501
                          last edited by Feb 4, 2019, 4:47 PM

                          it is a problem with vmware i am on fedora and vmware do not want to connect my network cards in lan internet but with virtualbox i optiend my ip address automatically

                          1 Reply Last reply Reply Quote 0
                          • M
                            major501
                            last edited by Feb 4, 2019, 4:52 PM

                            alt text

                            1 Reply Last reply Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz Feb 4, 2019, 5:09 PM Feb 4, 2019, 5:04 PM

                              And what does the log say? Did you actually enable the nic to be on in vmware? It looks like you have it enabled in your previous pic.. So what does the log say?

                              Lets see your lan segments tab.. Did you configure those - do you have any other vms on this lan segment? Did you actually create a lan segment for vms to connect to? What version of workstation are you running?

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                              1 Reply Last reply Reply Quote 0
                              • M
                                major501
                                last edited by Feb 4, 2019, 6:46 PM

                                i reinstall vmware workstation and now all work i can ping on internet Lan segment
                                alt text

                                1 Reply Last reply Reply Quote 0
                                3 out of 15
                                • First post
                                  3/15
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.