当前位置:网站首页>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
边栏推荐
- 如何使用phpIPAM来管理IP地址和子网
- 【Hot100】20. Valid parentheses
- 用手机在同花顺上开户靠谱吗?这样有没有什么安全隐患
- 投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
- Talking from mlperf: how to lead the next wave of AI accelerator
- What is the forkjoin framework in the concurrent programming series?
- ADS算力芯片的多模型架构研究
- Principle of motion capture system
- Factory high-precision positioning management system, digital safety production management
- 开机时小键盘灯不亮的解决方案
猜你喜欢

Pico,是要拯救还是带偏消费级VR?

芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
![[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](/img/a4/58b942d1389834069e9a6ec9f8ee0a.png)
[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

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

德国iF多项大奖加冕,这副耳机有多强?音珀GTW 270 Hybrid深度评测
![[PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system](/img/04/11f24f12c52fb1f69e3d6f513d896b.png)
[PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system

近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧

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

Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知

分享在大疆DJI(深圳总部)工作的日常和福利
随机推荐
picgo快捷键 绝了这人和我的想法 一模一样
C#/VB. Net merge PDF document
全面看待企业数字化转型的价值
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
高端程序员上班摸鱼指南
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
vim用户自动命令示例
【Hot100】19. Delete the penultimate node of the linked list
投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
Im instant messaging develops a message delivery scheme for 10000 people
Principle of SSM framework
ABAP call restful API
【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
圈铁发音,动感与无噪强强出彩,魔浪HIFIair蓝牙耳机测评
Does 1.5.1 in Seata support mysql8?
红队第8篇:盲猜包体对上传漏洞的艰难利用过程
IM即時通訊開發實現心跳保活遇到的問題
Idea start command line is too long problem handling
One revolution, two forces, three links: the "carbon reduction" roadmap behind the industrial energy efficiency improvement action plan
ssm框架原理