当前位置:网站首页>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 language learning notes - Gorm use - table addition, deletion, modification and query | web framework gin (VIII)
- Sqlserver query: when a.id is the same as b.id, and the A.P corresponding to a.id cannot be found in the B.P corresponding to b.id, the a.id and A.P will be displayed
- 近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧
- Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
- 【Hot100】19. 删除链表的倒数第 N 个结点
- How to use MySQL language for row and column devices?
- 投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
- [daily question] 1175 Prime permutation
- Guide for high-end programmers to fish at work
- [每日一氵]Latex 的通讯作者怎么搞
猜你喜欢
Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知
EndeavourOS移动硬盘安装
In the era of super video, what kind of technology will become the base?
There is a difference between u-standard contract and currency standard contract. Will u-standard contract explode
怎么用MySQL语言进行行列装置?
Pico,是要拯救还是带偏消费级VR?
Submission lottery - light application server essay solicitation activity (may) award announcement
接口测试框架中的鉴权处理
从大湾区“1小时生活圈”看我国智慧交通建设
DO280管理应用部署--pod调度控制
随机推荐
【Hot100】20. Valid parentheses
ABAP call restful API
Talking from mlperf: how to lead the next wave of AI accelerator
广东用电量大跌,说明高新技术产业替代高能耗产业已取得初步成果
In the past six months, it has been invested by five "giants", and this intelligent driving "dark horse" is sought after by capital
2022 Moonriver global hacker song winning project list
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Huawei issued hcsp-solution-5g security talent certification to help build 5g security talent ecosystem
实现数字永生还有多久?元宇宙全息真人分身#8i
How to adjust the size of computer photos to what you want
开机时小键盘灯不亮的解决方案
Pico,是要拯救还是带偏消费级VR?
There will be a gap bug when the search box and button are zoomed
Comment win11 définit - il les permissions de l'utilisateur? Win11 comment définir les permissions de l'utilisateur
Im instant messaging develops a message delivery scheme for 10000 people
SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
全面看待企业数字化转型的价值
Overview | slam of laser and vision fusion
Solution to the problem that the keypad light does not light up when starting up
近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧