This repository contains the design files for an 8-port 100Mbps switch based on the IP178G chip. Features include:
- 8-port 100BASE-TX switch
- 24V DC power input
- Complete Altium design files (schematic and PCB)
- Custom EEPROM configuration
LED_SEL = 3
: LED Mode 3SERIAL_LED_EN = 1
: Serial LED modeSERIAL_LED_MODE = 1
: Link LED onlySerial_upd_fast = 1
: 10ms update rate
Note: vlan.bin includes both the LED settings above and the following VLAN configuration.
VLAN_CLS = 0x80
: Port 7 (WAN) always uses PVID to search VLAN table, while other ports use VID for tagged packets and PVID for untagged packetsTAG_VLAN_EN = 0xFF
: 802.1Q VLAN tagging enabled across all portsREMOVE_TAG = 0x80
: Tag removal enabled for WAN port (P7)
VLAN_INFO_7 = 0x012C
: Port 7 (WAN) configured with VLAN ID 300 (0x12C)VID_1 = 0x12C
: VLAN ID 300 assigned to VLAN group 1VLAN_VALID = 0x3
: Activates VLAN groups 0 and 1
PBV_MEMBER_P0 = 0xFF
: Gateway port with full network visibilityPBV_MEMBER_P1 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P2 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P3 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P4 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P5 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P6 = 0x7F
: LAN port with internal network accessPBV_MEMBER_P7 = 0x81
: WAN port with gateway-only access
VLAN_MEMBER_0 = 0x7F
: Internal network group (P0-P6)VLAN_MEMBER_1 = 0x81
: WAN access group (P0 and P7)
This VLAN setup provides:
- Network segmentation through hardware VLAN
- Dedicated gateway port (P0) with WAN isolation
- Simple port-based traffic management
- Enhanced WAN isolation: Port 7 (WAN) traffic is forced to use PVID regardless of VLAN tags, ensuring packets cannot bypass port-based restrictions even with matching VLAN IDs
Typical uses:
- IoT device networks
- Small monitoring systems
- Basic home automation
- Legacy device connectivity