官术网_书友最值得收藏!

  • pfSense 2.x Cookbook
  • David Zientara
  • 611字
  • 2021-06-10 18:30:17

How to do it...

  1. From the console menu, type 1 and press Enter.
  2. pfSense will ask if VLANs should be created now. Type y and press Enter.
  3. pfSense will next warn you that if you proceed, all existing VLANs will be cleared. Type y and press Enter:

  1. pfSense will list all the VLAN-capable interfaces. Although, technically, you can make a previously-assigned interface into the parent interface of a VLAN, it is not recommended. Type the name of one of the unassigned interfaces (for example, eth0, eth1, em0, or em1) and press Enter.
  2. pfSense will next prompt you for the VLAN tag. Type the VLAN tag and press Enter.
  3. Repeat steps 4 and 5 for as many VLANs as you wish to create. When you are done, press Enter.
  4. pfSense will prompt you for the name of the WAN interface; type in the name and press Enter.
  5. pfSense will prompt you for the name of the LAN interface; type in the name and press Enter.
  6. pfSense will prompt you for the name of the Optional 1 interface. You can create a VLAN by using the name of the VLAN interface(s) assigned in steps 4 and 5. The name of the interface will have two numbers separated by a period. The first number will be the device number of the interface; the second number (after the period) will be the VLAN tag. Thus if the device name is em, and em2 is the parent interface of a VLAN tag of 3, the interface name will be em2.3. Type the interface name and press Enter.
  7. When you are done assigning interfaces, press Enter.
  8. pfSense will ask you whether you want to proceed. Type y and press Enter. Take note of the name of the newly created VLAN (for example, OPT1).
  9. You now have assigned a VLAN, but the VLAN doesn’t have an IP address. To set the VLAN’s IP address, type 2 and press Enter.
  10. Find the newly created VLAN in the list of interfaces and type the appropriate number and press Enter.
  11. pfSense will prompt you for the VLAN’s IPv4 address. Type in the address and press Enter.
  12. pfSense will prompt you for the subnet bit count (CIDR) of the address. Type in the bit count and press Enter.
  13. pfSense will prompt you for the IPv4 upstream gateway address. Since you don't need one, press Enter.
  14. PfSense will prompt you for the VLAN’s IPv6 address. You can type in an IPv6 address or just press Enter.
  15. If you entered an IPv6 address, pfSense will prompt you for the subnet bit count (CIDR). Enter the bit count and press Enter. If you didn’t enter an IPv6 address, skip to step 20.
  1. If you entered an IPv6 address, pfSense will prompt you for the IPv6 upstream gateway address. Since you don't need one, press Enter.
  2. pfSense will ask you whether you want to enable the DHCP server on the VLAN. Type y if you want to enable the DHCP server, and then type the range of available addresses. Otherwise, type n and press Enter.
  3. If you entered an IPv6 address pfSense will ask you whether you want to enable the DHCP6 server on the VLAN. Type y if you want to enable the DHCP6 server, and then type the range of available addresses. Otherwise, type n and press Enter.
  4. pfSense will ask you whether you want to revert to HTTP for the webConfigurator protocol. Unless you have a reason for not using HTTPS for the web GUI, type n and press Enter.
  5. pfSense will save the changes, and reload them. VLAN configuration is now complete.
主站蜘蛛池模板: 台州市| 宁明县| 通江县| 浮梁县| 漾濞| 太仆寺旗| 清丰县| 会泽县| 重庆市| 镇坪县| 赤峰市| 东至县| 昌乐县| 晋江市| 沾化县| 威海市| 鄂州市| 龙泉市| 霸州市| 东丽区| 云林县| 澳门| 台北市| 沁水县| 沁水县| 武威市| 蒲江县| 宜兴市| 平乡县| 资源县| 闽清县| 凤山市| 松溪县| 育儿| 保德县| 德格县| 阳城县| 郸城县| 昌黎县| 惠东县| 融水|