Skip to content

Hardware design (schematic/PCB) and EEPROM configuration for an IP178G-based 8-port 100Mbps switch

Notifications You must be signed in to change notification settings

cck56/IP178G-HW

Repository files navigation

IP178G

Project Description

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

PCB 3D Render

Default EEPROM Configuration Details (led.bin)

LED Control Register

  • LED_SEL = 3: LED Mode 3
  • SERIAL_LED_EN = 1: Serial LED mode
  • SERIAL_LED_MODE = 1: Link LED only
  • Serial_upd_fast = 1: 10ms update rate

VLAN Configuration Details (vlan.bin)

Note: vlan.bin includes both the LED settings above and the following VLAN configuration.

Core VLAN Settings

  • 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 packets
  • TAG_VLAN_EN = 0xFF: 802.1Q VLAN tagging enabled across all ports
  • REMOVE_TAG = 0x80: Tag removal enabled for WAN port (P7)

VLAN ID Settings

  • VLAN_INFO_7 = 0x012C: Port 7 (WAN) configured with VLAN ID 300 (0x12C)
  • VID_1 = 0x12C: VLAN ID 300 assigned to VLAN group 1
  • VLAN_VALID = 0x3: Activates VLAN groups 0 and 1

Port-Based VLAN Configuration

Port Membership Settings

  • PBV_MEMBER_P0 = 0xFF: Gateway port with full network visibility
  • PBV_MEMBER_P1 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P2 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P3 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P4 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P5 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P6 = 0x7F: LAN port with internal network access
  • PBV_MEMBER_P7 = 0x81: WAN port with gateway-only access

VLAN Groups

  • VLAN_MEMBER_0 = 0x7F: Internal network group (P0-P6)
  • VLAN_MEMBER_1 = 0x81: WAN access group (P0 and P7)

Configuration Features

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

About

Hardware design (schematic/PCB) and EEPROM configuration for an IP178G-based 8-port 100Mbps switch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published