当前位置:网站首页>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
边栏推荐
- Go 语言怎么使用对称加密?
- ssm框架原理
- Example of vim user automatic command
- 高端程序员上班摸鱼指南
- 2022 Moonriver global hacker song winning project list
- EndeavourOS移动硬盘安装
- Idea start command line is too long problem handling
- Motion capture system for apple picking robot
- [observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting
- Principle of motion capture system
猜你喜欢
【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
实现数字永生还有多久?元宇宙全息真人分身#8i
芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
复杂度相关OJ题(LeetCode、C语言、复杂度、消失的数字、旋转数组)
接口测试框架中的鉴权处理
ATSs: automatically select samples to eliminate the difference between anchor based and anchor free object detection methods
程序员职业生涯真的很短吗?
运动捕捉系统原理
【Hot100】20. Valid parentheses
Five years after graduation, I became a test development engineer with an annual salary of 30w+
随机推荐
[SQL statement] Why do you select two Shanghai and query different counts here? I want it to become a Shanghai, and count only displays a sum
[daily news]what happened to the corresponding author of latex
复杂度相关OJ题(LeetCode、C语言、复杂度、消失的数字、旋转数组)
怎么用MySQL语言进行行列装置?
【Hot100】19. Delete the penultimate node of the linked list
Comment win11 définit - il les permissions de l'utilisateur? Win11 comment définir les permissions de l'utilisateur
FPN网络详解
Win11如何設置用戶權限?Win11設置用戶權限的方法
Talking from mlperf: how to lead the next wave of AI accelerator
Telecommuting experience? Let's introduce ourselves ~ | community essay solicitation
Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
How to adjust the size of computer photos to what you want
There will be a gap bug when the search box and button are zoomed
ADS算力芯片的多模型架构研究
The picgo shortcut is amazing. This person thinks exactly the same as me
[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes
高端程序员上班摸鱼指南
ssm框架原理
2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
2023届春招实习-个人面试过程和面经分享