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

Compatible USB 2.0 Ethernet Adapter?

Scheduled Pinned Locked Moved Hardware
17 Posts 4 Posters 16.7k 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.
  • F
    fizix
    last edited by Oct 12, 2009, 8:10 PM

    @wolrah:

    @fizix:

    Thanks for your detailed reply. Unfortunately I can't use VLANs in this case because I need the device for my WAN connection (I'm using a laptop with one onboard NIC).

    You can in fact use VLANs, as long as your WAN <-> LAN bandwidth needs don't approach/exceed half the capacity of your one interface.  This is sometimes referred to as a "router-on-a-stick" configuration.  Set up two VLANs on your laptop's network interface, then set up the switch port it hangs off of to handle both of those VLANs.  Attach your WAN VLAN to one of the remaining ports and connect your modem there, then attach the LAN VLAN to all the other ports.  Done, you now have a functioning router with a single ethernet port.

    This is actually how many home routers work.  My Linksys WRT54GS has a single ethernet interface to its CPU and a six port switch which is configured out of the box with two VLANs.  Port 0 is internal only and connects to the CPU with both VLANs, port 1 is on vlan0 for WAN, ports 2-5 are on the vlan1 for LAN, and both vlan1 and eth1 (wireless) are bridged in to br0 as the "real" LAN interface as far as Linux is concerned.  All we're doing here is the same thing, but with standalone components.

    That said, I have plugged a number of USB NICs in to my pfSense boxes over the years and they've all just worked.  I could be lucky, but when building a 6-WAN 1-LAN machine in college I had all four USB NICs I could round up between my roommates and I plus two PCI units and the onboard all working under one of the 1.0.x builds without any hacking.  This is probably easier

    Great idea! I'm gonna try this when I get home.

    1 Reply Last reply Reply Quote 0
    • F
      fizix
      last edited by Oct 14, 2009, 2:15 AM

      @fizix:

      @wolrah:

      @fizix:

      Thanks for your detailed reply. Unfortunately I can't use VLANs in this case because I need the device for my WAN connection (I'm using a laptop with one onboard NIC).

      You can in fact use VLANs, as long as your WAN <-> LAN bandwidth needs don't approach/exceed half the capacity of your one interface.  This is sometimes referred to as a "router-on-a-stick" configuration.  Set up two VLANs on your laptop's network interface, then set up the switch port it hangs off of to handle both of those VLANs.  Attach your WAN VLAN to one of the remaining ports and connect your modem there, then attach the LAN VLAN to all the other ports.  Done, you now have a functioning router with a single ethernet port.

      This is actually how many home routers work.  My Linksys WRT54GS has a single ethernet interface to its CPU and a six port switch which is configured out of the box with two VLANs.  Port 0 is internal only and connects to the CPU with both VLANs, port 1 is on vlan0 for WAN, ports 2-5 are on the vlan1 for LAN, and both vlan1 and eth1 (wireless) are bridged in to br0 as the "real" LAN interface as far as Linux is concerned.  All we're doing here is the same thing, but with standalone components.

      That said, I have plugged a number of USB NICs in to my pfSense boxes over the years and they've all just worked.  I could be lucky, but when building a 6-WAN 1-LAN machine in college I had all four USB NICs I could round up between my roommates and I plus two PCI units and the onboard all working under one of the 1.0.x builds without any hacking.  This is probably easier

      Great idea! I'm gonna try this when I get home.

      I tried it but can't figure out a way to make it work since I don't have a static IP from my ISP :(

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by Oct 14, 2009, 3:46 AM

        @fizix:

        I tried it but can't figure out a way to make it work since I don't have a static IP from my ISP :(

        It = "using USB nics"?
        It = "using VLANs"?

        In either case, I don't understand why you think a static IP on WAN is required. (I don't use VLANs but I do have a USB NIC as my WAN interface and it gets it's IP address by DHCP.)

        1 Reply Last reply Reply Quote 0
        • F
          fizix
          last edited by Oct 14, 2009, 12:28 PM

          @wallabybob:

          @fizix:

          I tried it but can't figure out a way to make it work since I don't have a static IP from my ISP :(

          It = "using USB nics"?
          It = "using VLANs"?

          In either case, I don't understand why you think a static IP on WAN is required. (I don't use VLANs but I do have a USB NIC as my WAN interface and it gets it's IP address by DHCP.)

          Sorry, I should have been more specific. I tried to set up VLANs but was unable to because everything I read indicated that I would need a static IP from my ISP. Please correct me if this is wrong.

          1 Reply Last reply Reply Quote 0
          • D
            dotdash
            last edited by Oct 14, 2009, 2:32 PM

            VLANs behave like physical NICs. You can use DHCP, etc. on a VLAN interface. All you need is a VLAN capable switch and the proper configuration. If you don't have a VLAN capable switch, getting a USB ethernet adapter would be cheaper/easier.

            1 Reply Last reply Reply Quote 0
            • F
              fizix
              last edited by Oct 14, 2009, 5:49 PM

              @dotdash:

              VLANs behave like physical NICs. You can use DHCP, etc. on a VLAN interface. All you need is a VLAN capable switch and the proper configuration. If you don't have a VLAN capable switch, getting a USB ethernet adapter would be cheaper/easier.

              Yes, I'm using DD-WRT on my router. However, when I assign a VLAN don't I need to assign a gateway IP to that VLAN? If so, I don't know what I'd use since my ISP is assigning me an IP via DHCP. I know very little about VLANs so I could be wrong…

              1 Reply Last reply Reply Quote 0
              • D
                dotdash
                last edited by Oct 14, 2009, 6:46 PM

                I have never tried to use DDWRT as a VLAN switch. I think I remember a post where someone was doing that. If I recall correctly, it didn't work. Anyway, that's between you and DDWRT. I know that if you configure a switch correctly, and add a vlan interface to pfsense correctly, you can configure it like any other interface- static, dhcp…

                1 Reply Last reply Reply Quote 0
                • F
                  fizix
                  last edited by Oct 14, 2009, 8:46 PM

                  Ok, I'm going to rephrase my question: What IP address would I assign to my VLAN if my cable modem is assigning the interface it's IP address via DHCP?

                  1 Reply Last reply Reply Quote 0
                  • W
                    wallabybob
                    last edited by Oct 14, 2009, 9:00 PM

                    @fizix:

                    Ok, I'm going to rephrase my question: What IP address would I assign to my VLAN if my cable modem is assigning the interface it's IP address via DHCP?

                    If you specify the interface type as "DHCP" you shouldn't be required to supply an IP address.

                    1 Reply Last reply Reply Quote 0
                    • F
                      fizix
                      last edited by Oct 15, 2009, 1:32 PM

                      @wallabybob:

                      @fizix:

                      Ok, I'm going to rephrase my question: What IP address would I assign to my VLAN if my cable modem is assigning the interface it's IP address via DHCP?

                      If you specify the interface type as "DHCP" you shouldn't be required to supply an IP address.

                      Yup, you were right, somehow I missed that. I got my 'router on a stick' working last night but for some reason my VLAN changes in pfSense only seemed to take effect when I rebooted. It took me a while to figure out why my changes didn't seem to work.

                      1 Reply Last reply Reply Quote 0
                      17 out of 17
                      • First post
                        17/17
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received