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

    No IP address displayed

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    93 Posts 4 Posters 19.6k Views
    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.
    • S
      satimis
      last edited by

      Hi all,

      No IP address displayed, only an arrow (->) after em0 on the same line.
      (please refers to picture attached)

      Host - Ubuntu 12.04 64bit
      VM - pfSense
      Virtualizer - VirtualBox

      eth0 connected to cable modem, interface pppoe.  Host can connect Internet

      Ran "sudo ifconfig" to find ethernet MAC address of network interface.

      [check] Enable Network Adapter
      Bridge Adapter
      Name : eth0
      -> Advanced
      Promiscuous Mode: Deny
      MAC Address (change it to the MAC found as described above)
      [uncheck] Cable Modem

      Please help.  Thanks

      Rgds
      satimis

      Screenshot_options_20140302.png
      Screenshot_options_20140302.png_thumb

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        So where do you have the PPPoE session setup, in the host or pfSense? Hard to see how the host can connect top the internet if pfSense is running the PPPoE.
        You have spoofed the MAC in pfSense or in VirtualBox? Which interface?

        What are the settings on the em0 interface in pfSense? What IP address do you expect it to be?

        Steve

        1 Reply Last reply Reply Quote 0
        • S
          satimis
          last edited by

          @stephenw10:

          So where do you have the PPPoE session setup, in the host or pfSense? Hard to see how the host can connect top the internet if pfSense is running the PPPoE.

          Hi,

          PPPoE session is setup on Host.  Before when I ran the connection of Host via -> Cable modem -> router
          There was address displayed

          You have spoofed the MAC in pfSense or in VirtualBox? Which interface?

          in pfSense.  Bridge Adapter/eth0

          What are the settings on the em0 interface in pfSense?

          Where can I find them?

          What IP address do you expect it to be?

          192.168.0.10/24

          Thanks

          Rgds
          satimis

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            So you've bridged the NIC in the host machine to the pfSense VM? And that's the same NIC that the host machine is running PPPoE over?

            How is the pfSense VM supposed to get an IP address in that range? Static IP? Are you running DHCP somewhere?

            Steve

            1 Reply Last reply Reply Quote 0
            • S
              satimis
              last edited by

              @stephenw10:

              So you've bridged the NIC in the host machine to the pfSense VM? And that's the same NIC that the host machine is running PPPoE over?

              Not yet on Host

              $ cat /etc/network/interfaces```

              auto lo
              iface lo inet loopback

              auto eth0

              auto dsl-provider
              iface dsl-provider inet ppp
              pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
              provider dsl-provider

              iface eth0 inet manual

              
              > How is the pfSense VM supposed to get an IP address in that range? Static IP? Are you running DHCP somewhere?
              
              Static IP
              
              satimis
              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                If the interface is set as static IP it should appear as:

                 WAN (wan)      -> em0        -> v4: 192.168.0.10/24
                

                Did you set it as such in the initial setup?

                Steve

                1 Reply Last reply Reply Quote 0
                • S
                  satimis
                  last edited by

                  @stephenw10:

                  If the interface is set as static IP it should appear as:

                   WAN (wan)      -> em0        -> v4: 192.168.0.10/24
                  

                  Did you set it as such in the initial setup?

                  Sorry, I couldn't recall correctly.

                  When the connection on PC;
                  ISP -> Cable Modem -> Router -> PC

                  WAN (wan)  -> em0  -> v4/DHCP: 192.168.0.12/24
                  (pls see attached img)

                  Now
                  ISP -> Cable Modem -> PC
                  No IP address displayed

                  satimis

                  pfsense_option.png_thumb
                  pfsense_option.png

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Ah, so the WAN interface is set to DHCP not static. The router gives it an IP when it's connected. When it isn't there the pfSense VM must establish the PPPoE connection. It's going to be difficult to set that up without an internal interface of some sort. You could do by using the host machine and an additional virtual NIC. Alternatively you could use an addtional VM connected internally to pfSense.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • S
                      satimis
                      last edited by

                      @stephenw10:

                      Ah, so the WAN interface is set to DHCP not static. The router gives it an IP when it's connected. When it isn't there the pfSense VM must establish the PPPoE connection. It's going to be difficult to set that up without an internal interface of some sort. You could do by using the host machine and an additional virtual NIC.

                      I have 2 physical NIC installed

                      -> Network

                      Adapter 1
                      [check] Enable Network Adapter
                      Attached to: Bridge Adapter
                      Neme: eth0) (I'm only allowed selecting eth0 or eth1 here, unable creating a name)
                      Advanced
                      Adapter Type: Intel PRO/1000MT Desktop (8254OEM)
                      Promiscuous Mode: Allow All
                      MAC Address: xxxxxxxxx
                      [check] Cable Connected
                      [Port Forwarding] (greyout)

                      Adapter 2
                      [check] Enable Network Adapter
                      Attached to: Internal Network
                      Neme: intnet
                      Advanced
                      Adapter Type: Intel PRO/1000MT Desktop (8254OEM)
                      Promiscuous Mode: Deny
                      MAC Address: xxxxxxxxx
                      [check] Cable Connected
                      [Port Forwarding] (greyout)

                      Alternatively you could use an addtional VM connected internally to pfSense.

                      Please advise how to do it.  Pointer would be appreciated.

                      Thanks

                      satimis

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        What is the setup you're hoping to achieve with this in the end?

                        The two NICs you listed above are they both real physical NICs? I'll assume they are.

                        So technically I believe you could use the one NIC to be both the LAN and carry the PPPoE session that is the WAN but it will be complex to set up and hugely open to error!  ;)

                        The should also the able to use the host machine to connect configure pfSense. I'm unfamiliar with virtualbox so I'll just outline what you would do. Create a virtual NIC in VB and add it to the pfSense VM. In pfSense assign that as the LAN interface. Do whatever is required in VB to make that NIC accessible by the host box and configure the host to use it as its default connection. The host should then receive an IP address from pfSense and you'll be able to connect the the webgui and configure the PPPoE connection.

                        An alternative would be to add an additional VM, anything with a web browser. Then add a virtual switch in VB and add virtual NICs to connect the new VM to it as well is the pfSense VM. In pfSense add the new NIC as LAN. Now the new VM should receive an IP from pfSense in the default range. Open the VM and open a browser, go to the webgui at 192.168.1.1 and configure pfSense. Setup the PPPoE connection.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • S
                          satimis
                          last edited by

                          @stephenw10:

                          What is the setup you're hoping to achieve with this in the end?

                          Hi,

                          My goal is to run pfSense as router (virtual) without the physical router.  I don't expect touching the Host, keeping it clean.  I have only 2 PCs, each with VirtualBox installed having 10 VMs running on each of them.  The network will be as follow:-

                          ISP -> Cable Modem -> eth0 of PC-1

                          eth1 of PC-1 -> eth0 of PC-2 (only one physical NIC on PC-2)

                          All VMs on both PC use the Virtual router for routing

                          The two NICs you listed above are they both real physical NICs? I'll assume they are.

                          Yes.  2 physical NICs.

                          Open the VM and open a browser, go to the webgui at 192.168.1.1 and configure pfSense. Setup the PPPoE connection.

                          I couldn't browse the webgui of pfSense on Host browser nor on another VM browser..  This is very strange to me.  I have installed another pfSense by importing pfSense.ova download.  Please see my new posting re "Unable to browse pfSense".  pfSense.ova was download on;
                          http://files.nyi.pfsense.org/mirror/downloads/old/

                          Now I have another image "pfSense-2.0.3-RELEASE-4g-amd64-nanobsd.img.gz" download.  I'll install another pfSense to check what will happen..

                          satimis

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            This is probably now a Virtual Box config problem. I'm no VB expert but please post some network config for your VMs. I'm not sure how that will work since a quick google seems to show that VirtualBox doesn't have a convenient network map.

                            Steve

                            1 Reply Last reply Reply Quote 0
                            • S
                              satimis
                              last edited by

                              @stephenw10:

                              This is probably now a Virtual Box config problem. I'm no VB expert but please post some network config for your VMs. I'm not sure how that will work since a quick google seems to show that VirtualBox doesn't have a convenient network map.

                              $ cat /etc/network/interfaces```

                              auto lo
                              iface lo inet loopback

                              VM1 and VM2 the same.
                              
                              Host:
                              $ cat /etc/network/interfaces```
                              
                              auto lo
                              iface lo inet loopback
                              
                              auto eth0
                              
                              auto dsl-provider
                              iface dsl-provider inet ppp
                              pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
                              provider dsl-provider
                              
                              iface eth0 inet manual
                              
                              

                              satimis

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                What are VM1 and VM2?
                                Th host configuration is not important either. We need to see how VirtualBox's internal virtual network is configured. For example see the attached screenshot that I've shamelessly borrowed from Jonpoz. That's how ESXi shows it's network config.

                                Steve

                                physical.png
                                physical.png_thumb

                                1 Reply Last reply Reply Quote 0
                                • S
                                  satimis
                                  last edited by

                                  @stephenw10:

                                  What are VM1 and VM2?

                                  VM1 - Ubuntu 12.04 desktop
                                  VM2 - LinuxMint desktop

                                  Th host configuration is not important either. We need to see how VirtualBox's internal virtual network is configured. For example see the attached screenshot that I've shamelessly borrowed from Jonpoz. That's how ESXi shows it's network config.

                                  How to find it?  Thanks

                                  satimis

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Hmm, Ok some reading later. It appears, and correct me if I'm wrong here, that there is no real concept of a switch in Virtual Box at least not by default. You can add various things like openvswitch to do it but it's not standard. There's also no easy way to view the whole network config as there is in ESXi so we have to go through it step by step. There are at least two internal networks that can be used to separate VMs and we can use for pfSense. There are also a ton of tutorials out there like this one: http://pc-addicts.com/how-to-install-pfsense-in-virtualbox/

                                    Edit: Just watch that linked video. In fact you have as many independent internal networks as you want, the switches are implied.

                                    So the pfSense VM should have two network adapters enabled. The first should be a bridge adapter, that will be the pfSense WAN. The second should be an internal adapter, that will be the pfSense LAN.
                                    The VM you are suing to configure pfSense should have one network adapter and it should be the internal type.
                                    The internal adapters of both VMs MUST have the same name otherwise they will be isolated.

                                    I'm unsure about adding an adapter to allow the host to access the internet through pfSense though.  :-\

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      satimis
                                      last edited by

                                      @stephenw10:

                                      Hmm, Ok some reading later. It appears, and correct me if I'm wrong here, that there is no real concept of a switch in Virtual Box at least not by default. You can add various things like openvswitch to do it but it's not standard. There's also no easy way to view the whole network config as there is in ESXi so we have to go through it step by step. There are at least two internal networks that can be used to separate VMs and we can use for pfSense. There are also a ton of tutorials out there like this one: http://pc-addicts.com/how-to-install-pfsense-in-virtualbox/

                                      • snip-

                                      Thanks for your link.

                                      I have no problem to install pfSense but unable making it to work.  I have tried importing .ova and .vdi download on Internet.  pfSense can start without probem.  But I couldn't browse it on VM and Host.

                                      em0 -> (not pointing to device/IP address)
                                      (see image attached)

                                      It can't connect ISP even after filling in the MAC address.

                                      I watched following video;
                                      Setup Virtual Lab | Networking and Virtualbox
                                      http://www.youtube.com/watch?v=3W9QTm-l1ck

                                      The physical setup is behind a physical router
                                      ISP (pppoe/ethernet) -> Router -> PC

                                      What I expect to achieve is without a physical route.  If it is a MUST behind a physical router that is NOT what I expect to do.

                                      satimis

                                      Screenshot_01.png
                                      Screenshot_01.png_thumb

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        satimis
                                        last edited by

                                        Hi stephenw10,

                                        Further to my late posting I found following article:
                                        Virtualize your router using pfSense and Virtualbox
                                        http://www.area536.com/projects/virtualize-your-router-using-pfsense-and-virtualbox/

                                        It seems to me possible to replace the physical router with pfSense as virtual router.

                                        I made another round download pfSense-2.0.3-RELEASE-amd64.ova and import it to VirtualBox.  Thereafter started it without problem.  Both em0 and em1 are connected.
                                        (see attached image)

                                        Adapter-1
                                        Bridge Adapter
                                        eth0

                                        Adapter-2
                                        Bridge Adapter
                                        eth1

                                        WAN (wan)  -> em1  -> 192.168.0.11 (DHCP)
                                        LAN (lan)  -> em0  -> 192.168.1.1

                                        But still I couldn't browse it on Host browser running;
                                        http://192.168.1.1
                                        or
                                        https://192.168.1.1

                                        It is quite strange to me.

                                        satimis

                                        Screenshot_pfsense_a.png_thumb
                                        Screenshot_pfsense_a.png

                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          You will have to browse to the pfSense webgui from the internal VM and make sure they both connected to the same internal network name.
                                          What OS are you using for the other VM? Does it receive an IP from the pfSense DHCP server?

                                          Steve

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            satimis
                                            last edited by

                                            @stephenw10:

                                            You will have to browse to the pfSense webgui from the internal VM and make sure they both connected to the same internal network name.

                                            I got it, thanks

                                            VM - Ubuntu 12.04 desktop 64bit
                                            On browser ran;
                                            192.168.1.1

                                            -> Add Exception
                                            Get Certificate
                                            [check] Permanently store this exception
                                            -> Confirm Security Exception

                                            Pls see attached images.

                                            Adapter-1 same as pfSense
                                            Adapter-2 same as pfSense

                                            What will be the login and password ?

                                            Where can I find tutorial using the webgui pfSense to configure ?

                                            $ cat /etc/network/interfaces```

                                            auto lo
                                            iface lo inet loopback

                                            
                                            sudo ifconfig
                                            

                                            eth0      Link encap:Ethernet  HWaddr 08:00:27:10:8c:3d 
                                                      inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
                                                      inet6 addr: fe80::a00:27ff:fe10:8c3d/64 Scope:Link
                                                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                                                      RX packets:4549 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:3824 errors:0 dropped:0 overruns:0 carrier:0
                                                      collisions:0 txqueuelen:1000
                                                      RX bytes:4787482 (4.7 MB)  TX bytes:630362 (630.3 KB)

                                            eth1      Link encap:Ethernet  HWaddr 08:00:27:e6:ca:14 
                                                      inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
                                                      inet6 addr: fe80::a00:27ff:fee6:ca14/64 Scope:Link
                                                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                                                      RX packets:267 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:268 errors:0 dropped:0 overruns:0 carrier:0
                                                      collisions:0 txqueuelen:1000
                                                      RX bytes:176246 (176.2 KB)  TX bytes:37546 (37.5 KB)

                                            lo        Link encap:Local Loopback 
                                                      inet addr:127.0.0.1  Mask:255.0.0.0
                                                      inet6 addr: ::1/128 Scope:Host
                                                      UP LOOPBACK RUNNING  MTU:65536  Metric:1
                                                      RX packets:254 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
                                                      collisions:0 txqueuelen:0
                                                      RX bytes:44773 (44.7 KB)  TX bytes:44773 (44.7 KB)

                                            
                                            I don't think Ubuntu 12.04 receive IP from pfSense routing?
                                            
                                            On Host
                                            $ sudo ifconfig```
                                            
                                            eth0      Link encap:Ethernet  HWaddr 00:26:18:44:b6:1a  
                                                      inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
                                                      inet6 addr: fe80::226:18ff:fe44:b61a/64 Scope:Link
                                                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                                                      RX packets:14177 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:12287 errors:0 dropped:0 overruns:0 carrier:4
                                                      collisions:0 txqueuelen:1000 
                                                      RX bytes:15365450 (14.6 MiB)  TX bytes:1973191 (1.8 MiB)
                                                      Interrupt:18 
                                            
                                            eth1      Link encap:Ethernet  HWaddr 90:f6:52:03:57:86  
                                                      UP BROADCAST MULTICAST  MTU:1500  Metric:1
                                                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                                                      collisions:0 txqueuelen:1000 
                                                      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                                                      Interrupt:43 Base address:0xe000 
                                            
                                            lo        Link encap:Local Loopback  
                                                      inet addr:127.0.0.1  Mask:255.0.0.0
                                                      inet6 addr: ::1/128 Scope:Host
                                                      UP LOOPBACK RUNNING  MTU:16436  Metric:1
                                                      RX packets:8 errors:0 dropped:0 overruns:0 frame:0
                                                      TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
                                                      collisions:0 txqueuelen:0 
                                                      RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)
                                            
                                            

                                            What OS are you using for the other VM?

                                            I have Ubuntu/LinuxMint/OpenSUSE running here.

                                            Does it receive an IP from the pfSense DHCP server?

                                            I don't think so.  It receive IP from the physical router

                                            Connection;
                                            ISP -> Cable Modem -> Router -> PC eth0 (built-in NIC of motherboard)

                                            After making sure it works I'll change back to;
                                            ISP -> Cable Modem -> PC eth0 (built-in NIC of motherboard)

                                            Screenshot_ub1204_a.png
                                            Screenshot_ub1204_a.png_thumb
                                            Screenshot_ub1204_b.png
                                            Screenshot_ub1204_b.png_thumb
                                            Screenshot_ub1204_c.png
                                            Screenshot_ub1204_c.png_thumb

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