当前位置:网站首页>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
边栏推荐
- 【Hot100】19. 删除链表的倒数第 N 个结点
- The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips
- idea启动Command line is too long问题处理
- 虚拟串口模拟器和串口调试助手使用教程「建议收藏」
- 【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
- 【php毕业设计】基于php+mysql+apache的教材管理系统设计与实现(毕业论文+程序源码)——教材管理系统
- Authentication processing in interface testing framework
- Learn selenium to simulate mouse operation, and you can be lazy a little bit
- ATSs: automatically select samples to eliminate the difference between anchor based and anchor free object detection methods
- [PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system
猜你喜欢

瑞典公布决定排除华为5G设备,但是华为已成功找到新出路

Comment utiliser le langage MySQL pour les appareils de ligne et de ligne?

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

Huawei issued hcsp-solution-5g security talent certification to help build 5g security talent ecosystem

Principle of motion capture system

Do280 management application deployment - pod scheduling control

周少剑,很少见

Win11如何设置用户权限?Win11设置用户权限的方法

Malaysia's Star: Sun Yuchen is still adhering to the dream of digital economy in WTO MC12

【Hot100】19. 删除链表的倒数第 N 个结点
随机推荐
The sharp drop in electricity consumption in Guangdong shows that the substitution of high-tech industries for high-energy consumption industries has achieved preliminary results
[PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system
红队第8篇:盲猜包体对上传漏洞的艰难利用过程
【Hot100】20. Valid parentheses
Zhou Shaojian, rare
ADS算力芯片的多模型架构研究
接口测试框架中的鉴权处理
Analysis of PostgreSQL storage structure
Principle of SSM framework
laravel的模型删除后动作
How to adjust the color of the computer screen and how to change the color of the computer screen
Sales management system of lightweight enterprises based on PHP
【LeetCode】43. 字符串相乘
德国iF多项大奖加冕,这副耳机有多强?音珀GTW 270 Hybrid深度评测
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
2022 Moonriver global hacker song winning project list
Learn selenium to simulate mouse operation, and you can be lazy a little bit
Origin2018安装与使用(整理中)
实现数字永生还有多久?元宇宙全息真人分身#8i
Win11如何設置用戶權限?Win11設置用戶權限的方法