当前位置:网站首页>How to use phpipam to manage IP addresses and subnets
How to use phpipam to manage IP addresses and subnets
2022-07-01 16:20:00 【Brother Xing plays with the clouds】
Usually , Network or system administrators have the responsibility to manage one or more subnets under the network they manage . for example , When a network segment is allocated /24 subnet , Then the subnet has 254 individual IP Addresses can be used for different purposes . To track a IP Which host is assigned , It needs to be recorded in some way . The easiest way , Is to use a spreadsheet , Such as Excel To record IP Address assignment information . This method is for only one administrator , And it works better when the network is small . However , For multiple large networks , Relying on spreadsheets is not convenient , And it's very error prone . What's worse is , If there are multiple administrators involved in management , Updating spreadsheets is very troublesome , Because each administrator may generate various versions of document records .
A systematic management IP The way of address allocation is networked IP Address management tools . It's not just because networked management tools can be accessed and managed anywhere , And its back-end database can also ensure that all updates can be synchronized correctly and take effect in real time . Although there are many available networked application tools , But we will focus on how to install in this tutorial phpIPAM(IP Address Manager IP Address management tools ).phpIPAM It's open source 、 efficient IP Address management application , It has the following features .
- Support at the same time IPv4 and IPv6( Unlike other tools , It's right IPv6 Good support )
- The built-in IPv4 and IPv6 Calculator
- Support classless inter domain routing (CIDR) Mark
- Support MySQL database
- Subnet nesting
- Based on users / Group permission
- Visual reporting tool
- Use .xls File import / export
- Support device 、VRF and VLAN
- Powerful search engine
- Email tags
- Support based on AD/LDAP Validation of the
Accessible http://demo.phpipam.net see phpIPAM Demo site .
In this tutorial , We will stay Ubuntu Use in the environment Apache To configure the phpIPAM.
stay Ubuntu Installation on phpIPAM
First , Use apt-get To install the required software packages .
- # apt-get install apache2 mysql-server php5 php5-gmp php-pear php5-mysql php5-ldap wget
If MySQL This is the first installation , Please use the following command to set root password .
- # mysqladmin -u root password NEWPASSWORD
phpIPAM Can be installed in any Web The server Directory , We will install to Apache Web The server Under the root directory of /phpipam/ Subdirectory .
download phpIPAM software package .
- # wget http://kent.dl.sourceforge.net/project/phpipam/phpipam-1.0.tar
Unzip the package to Web The server Corresponding catalogue .
- # cp phpipam-1.0.tar /var/www/
- # cp /var/www/
- # tar xvf phpipam-1.0.tar
- # rm phpipam-1.0.tar
Now let's specify MySQL Username and password , Also specify the reference directory .
- # vim /var/www/phpipam/config.php
- $db['host']="localhost";
- ## MySQL user for ipam ##
- $db['user']="phpipam";
- ## password for the MySQL user ##
- $db['pass']="phpipamadmin";
- ## database for MySQL ##
- $db['name']="phpipam";
- ## base directory ##
- define('BASE',"/phpipam/");
Need to provide .htaccess Specify the reference directory in the file .
- # vim /var/www/phpipam/.htaccess
- RewriteBase/phpipam/
Get ready Apache Web The server
phpIPAM The operation of Apache Of Rewrite modular , This module can be used in Ubuntu or Debian Use the following command on the machine to enable .
- # a2enmod rewrite
Next , Need modification Apache Default configuration . Please add / Modify your configuration , Make it look like this .
- # vim /etc/apache2/sites-enabled/000-default
- <Directory/var/www/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride all
- Order allow,deny
- allow from all
- </Directory>
Last , restart Apache Web service .
- # service apache2 restart
Complete the installation
We can use the browser to complete phpIPAM Installation . Point the browser address to URL: http:///phpIPAM, The following... Will be displayed phpIPAM Installation page . We can start automated database installation .
Now? ,phpIPAM Should have been up , And is running , We can use the following default users to log in .
- URL: http:///phpipam
- User: Admin
- Pass: ipamadmin
边栏推荐
- 使用腾讯云搭建图床服务
- 韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
- Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!
- 从 MLPerf 谈起:如何引领 AI 加速器的下一波浪潮
- 怎么用MySQL语言进行行列装置?
- 德国iF多项大奖加冕,这副耳机有多强?音珀GTW 270 Hybrid深度评测
- Sales management system of lightweight enterprises based on PHP
- Zabbix2.2监控之系统及应用日志监控报警
- 毕业后5年,我成为了年薪30w+的测试开发工程师
- 揭秘慕思“智商税”:狂砸40亿搞营销,发明专利仅7项
猜你喜欢

Sweden announced its decision to exclude Huawei 5g equipment, but Huawei has successfully found a new way out

StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!

I'm a senior test engineer who has been outsourced by Alibaba and now has an annual salary of 40w+. My two-year career changing experience is sad

OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)

Share the daily work and welfare of DJI (Shenzhen headquarters) in Dajiang

使用腾讯云搭建图床服务

Do280 management application deployment - pod scheduling control

IM即時通訊開發實現心跳保活遇到的問題

Vscode find and replace the data of all files in a folder

【IDM】IDM下载器安装
随机推荐
When ABAP screen switching, refresh the previous screen
[nodemon] app crashed - waiting for file changes before starting...解决方法
Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
What is the digital transformation of manufacturing industry
Win11如何设置用户权限?Win11设置用户权限的方法
Use Tencent cloud to build a map bed service
ADS算力芯片的多模型架构研究
One revolution, two forces, three links: the "carbon reduction" roadmap behind the industrial energy efficiency improvement action plan
Pico, do you want to save or bring consumer VR?
Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!
接口测试框架中的鉴权处理
芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
Embedded development: five revision control best practices
Problems encountered in IM instant messaging development to maintain heartbeat
Go 语言错误处理为什么更推荐使用 pkg/errors 三方库?
Im instant messaging develops a message delivery scheme for 10000 people
从 MLPerf 谈起:如何引领 AI 加速器的下一波浪潮
How to adjust the color of the computer screen and how to change the color of the computer screen
Apple's self-developed baseband chip failed again, which shows Huawei Hisilicon's technological leadership
近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧