The WiMAX ASN Gateway, called boc-asn is a minimalist ASN Gateway capable of communicating with Base Stations. It interfaces with a RADIUS server to perform authentication and a DHCP server to allocate IP addresses to the Mobile Stations.

RADIUS setup

You need to install a RADIUS server such as  FreeRADIUS, for instance on the same machine as the ASN Gateway.

DHCP setup

The ASN gateway needs to be connect by some kind of tunnel to the DHCP server, for instance an IPIP tunnel. Let us assume the following configuration:

  • DHCP server:
    • real IP: 192.168.95.1
    • tunnel IP: 10.20.30.1
  • ASN gateway:
    • real IP: 192.168.95.233
    • tunnel IP: 10.20.30.2

On the DHCP server

You must be running a DHCP server such as  dnsmasq. You need to make sure it is listening on 10.20.30.1 and has some addresses for this pool:

interface=asn0
dhcp-range=10.20.30.10,10.20.30.199,255.255.255.0,1h

Set up the tunnel to the ASN gateway:

ip tun add asn0 mode ipip local 192.168.95.1 remote 192.168.233
ifconfig asn0 10.20.30.1 netmask 255.255.255.0 up

On the ASN gateway

Set up the tunnel to the DHCP server:

ip tun add dhcp0 mode ipip local 192.168.95.233 remote 192.168.95.1
ifconfig dhcp0 10.20.30.2 netmask 255.255.255.0 up