Documentation

Static IP & Custom Routes

Configure static IP addresses and custom routes for customers to meet advanced networking requirements.

Overview

NettPortal supports assigning static IP addresses and custom routing rules to customers. This is useful for:

  • Business customers requiring fixed IP addresses
  • VPN setups requiring specific routing
  • Network segregation
  • Custom network topologies

Static IP Assignment

PPPoE Static IP

For PPPoE customers, static IP is set via the remote-address parameter.

  1. When creating/editing a customer, expand Advanced RouterOS Settings
  2. Enter the static IP in Static IP Address field
  3. Format: IPv4 address (e.g., 192.168.1.100)
  4. Leave empty for dynamic IP assignment
/ppp secret
set [find name="username"] remote-address=192.168.1.100

Hotspot Static IP

For Hotspot customers, static IP is set via the static-ip parameter.

  1. Expand Advanced RouterOS Settings
  2. Enter the static IP in Static IP Address field
  3. Format: IPv4 address (e.g., 192.168.1.100)
  4. Leave empty for dynamic IP assignment
/ip hotspot user
set [find name="username"] static-ip=192.168.1.100

Custom Routes

Custom routes allow you to define specific routing rules for customer connections.

PPPoE Routes

PPPoE supports direct route configuration via the routes parameter.

  1. Expand Advanced RouterOS Settings
  2. Enter routes in Custom Routes field
  3. Format: Comma or space separated
  4. Example: 192.168.1.0/24, 10.0.0.0/8
/ppp secret
set [find name="username"] routes=192.168.1.0/24,10.0.0.0/8

Configuration Examples

Example 1: Business Customer with Static IP

Requirement: Business customer needs static IP 192.168.100.50 for their VPN.

Steps:

  1. Create customer with PPPoE service type
  2. In Advanced Settings:
    • Static IP Address: 192.168.100.50
    • Leave routes empty
  3. Assign package
  4. Router user is created with static IP

Result: Customer always gets IP 192.168.100.50 when connecting.

Best Practices

  • Reserve IP Ranges: Keep a list of assigned static IPs
  • Avoid Conflicts: Don't assign IPs in DHCP ranges
  • Document Assignments: Use comments to note IP assignments
  • Plan Ahead: Allocate IP ranges for static assignments
  • Monitor Usage: Regularly review static IP assignments

Related Documentation

Static Ip Routes - Documentation - NettPortal