diff options
Diffstat (limited to 'notes/projects/radius/sql/README.ippool.md')
| -rw-r--r-- | notes/projects/radius/sql/README.ippool.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/notes/projects/radius/sql/README.ippool.md b/notes/projects/radius/sql/README.ippool.md new file mode 100644 index 0000000..871889a --- /dev/null +++ b/notes/projects/radius/sql/README.ippool.md | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | |||
| 2 | IP Engineering RADIUS IP Pool Database | ||
| 3 | ====================================== | ||
| 4 | |||
| 5 | Objectives | ||
| 6 | ---------- | ||
| 7 | |||
| 8 | * Psuedo static IP addresses | ||
| 9 | * Per NAS Preference for geographic regions | ||
| 10 | * Ability to deavtivate/busy out specific netblocks | ||
| 11 | |||
| 12 | Files | ||
| 13 | ---- | ||
| 14 | |||
| 15 | * README.ippool.md - This file | ||
| 16 | * ippool-database.sql - Creates database | ||
| 17 | * ippool-schema.sql - Creates database schema (tables, indexes, etc) | ||
| 18 | * ippool-functions.sql - Creates end-user/end-application functions | ||
| 19 | * ippool-demo.sql - Loads demo data | ||
| 20 | * ippool-queries.sql - Common or useful queries | ||
| 21 | * radius-roles.sql - Common database roles for RADIUS | ||
| 22 | |||
| 23 | |||
| 24 | Initializing New Database | ||
| 25 | ------------------------- | ||
| 26 | |||
| 27 | * Create base database roles for RADIUS, not not already created: | ||
| 28 | |||
| 29 | psql -h raddbtest.prv.acsalaska.net -f radius-roles.sql | ||
| 30 | |||
| 31 | * Create database and load schema: | ||
| 32 | |||
| 33 | psql -h raddbtest.prv.acsalaska.net -f ippool-database.sql | ||
| 34 | psql -h raddbtest.prv.acsalaska.net -f ippool-schema.sql radius_ippool | ||
| 35 | psql -h raddbtest.prv.acsalaska.net -f ippool-functions.sql radius_ippool | ||
| 36 | |||
| 37 | * Create RADIUS pools using `pool_add()`. | ||
| 38 | * Create RADIUS regions using `region_add()`. | ||
| 39 | * Create RADIUS NAS clients using `nas_add()`. | ||
| 40 | * Create network blocks using `netblock_add()`. | ||
| 41 | * Add IP addresses with `ip_add_network()` if `netblock_add()` was not called | ||
| 42 | with `addIpEntries := TRUE`. | ||
| 43 | |||
| 44 | For examples of using the above functions, please read `ippool-demo.sql`. | ||
| 45 | |||
| 46 | |||
| 47 | Network Block Management | ||
| 48 | ------------------------ | ||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | IP Address Assignments | ||
| 53 | ---------------------- | ||
