panabit-系统安装配置和调试手册.doc
如有侵权,请联系网站删除,仅供学习与交流panabit-系统安装配置和调试手册【精品文档】第 7 页Panabit全攻略Panabit-领先的网络核心技术,最专业的流控引擎、应用识别、智能控速、提升宽带使用率、保证网络高效稳定运行! 打造不卡的公司或企业网络环境!还加入了路由功能,支持双线策略和负载。1) Panabit部署位置 2) Panabit硬件配置 Panabit流控系统定位于网络设备级OS,需要安装在一台独立硬件中,3) 硬件配置要求公司或企业Panabit-推荐硬件配置: CPU:INTEL酷睿 E2140或以上( 多核更能发挥PA的性能) 内存:1G或以上、 硬盘:1G以上电子盘或CF卡、硬盘均可网卡:单线 4张,双线是5张,可用双口或者4口网卡。必须是Intel的千M网卡,比如82540/1/2/3/4/5/6,82571/2/3/4, 建议PCI-E的网卡主板:随意按上面需求搭配特别注意:对于老CPU带 (HT)超线程一定要在BIOS里关闭,一定要注意这个,切记!4) Panabit一键安装镜像安装文件下载地址: 下载后,可以刻成光盘或使用U盘引导,menu.lst格式如下:title PA公司或企业版fallback 6find -set-root /iso/PanabitWB091128.isomap /iso/PanabitWB091128.iso (0xff) | map -mem /iso/PanabitWB091128.iso (0xff) map -hookchainloader (0xff) savedefault -wait=2使用光盘或U盘启动,启动之后在login:输入root用户名,口令root,即FreeBSD提示界面,输入Panabit# ./setup安装过程大约需要1分钟左右,时间视硬盘大小格式化时间,安装过程首先是自动查找盘,如果有多个盘,会自动安装在系统排序的第一个盘,建议仅安装一个盘,可以是硬盘、CF卡、U盘等(盘容量要大于256M,建议512M以上。其中主要运行自动分区、格式化文件系统、安装精简FreeBSD 7.2、安装Panabit。以下是运行交互提示:Welcome to Panabit system automatically install shell!The installation will delete all data on your hard disk and can not be restored!Please confirm whether or not to continue the installation!Do you want to continue(y/nn)? 输入y回车,否则退出。Following disks are detected: ad0 显示系统中检测到的盘。(有多盘要选对!)Please select one da0: 输入ad0回车安装。We begin to format the disk "ad0" and begin to install FreeBSD 7.2!Do you want to continue(y/ny)? 回车继续。* Working on device /dev/ad0 *cylinders=1024heads=64sectors/track=32此处可能显示一些磁盘分区调整扇区起始信息的警告提示,不用管。FreeBSD 7.2 Install OK!这期间主要格式化文件系统,复制光盘上FreeBSD精简系统文件和配置。Welcome installing panabit! * Congratulations *!You have successfully installed Panabit on your system! Following interfaces are installed in your system:em0 em1 em2 em3 em4 em5这里显示系统所有网卡,须选择一个做管理口的网卡,剩余的默认都作为数据接口。(注:可以在Live CD启动之后,使用FreeBSD命令ifconfig查看网卡,如果插上网线,显示网卡状态为Active,通过此方法确认物理接口对应关系。)Please choose one of above as your admin interface: em5 仅示例,根据实际情况选择网卡名称Please input ip address of admin interface: 192.168.1.226Please input network mask of admin interface: 255.255.252.0Please input default gateway: 192.168.0.1这里输入管理口网卡名称、IP地址、掩码、网关,则安装完毕!如果输入错误,等脚本运行完毕,重新做一遍!再次显示:Your interface configurations are: Admin interface : em5Admin ip address : 192.168.1.226Admin netmask : 255.255.252.0Default gateway : 192.168.0.1Data interfaces : em0 em1 em2 em3 em4Thank you for using panabit!Eject CDROM!Reboot system then the system automaticly start panabit at system startup!If you want to stop the currently running panabit, you can issue"/usr/panabit/bin/ipectrl stop" to stop it!You can issue "/usr/panabit/bin/ipectrl start" to start panabit!Panabit# 安装完毕之后取出光盘,重启机器,即可https登录管理界面https:/192.168.1.226,Web管理用户名admin,口令panabit。进入Web管理界面,第一件事选择 网络配置 -> 数据接口 配置网桥,如选择网桥1,则将其中一个网卡定义为接内网,将另一个网卡定义为接外网,分别点击提交即可,如下图:Panabit最多可以支持4路网桥,网桥配置完毕,测试网桥连通性,如果正常连通,即可上线实际使用。刚开始上线,主要观察网络流量分析,不必急于配置策略,根据流量分析的结果,制定下一步的流量调策略。到此为止,Panabit流控系统搭建完成,接下来参考管理配置手册,定义数据通道、配置策略组、进行策略组时间调度等,即可正常使用Panabit专业流控。5) Panabit的重装和系统升级,特征库升级1. 下载Panabit安装包Panabit下载地址见:2. 上传Panabit安装包当下载好PA安装包后,使用带sftp的ssh远程Shell客户端(推荐),将Panabit的安装包上传到FreeBSD系统;如文件上传到/usr/local目录下的SFTP参考下图。说明:如果您熟悉FreeBSD系统的话,同样,您也可以用其它方法,将从光盘Panabit的安装包上传到自己喜欢的目录进行安装。3. 卸载PanabitPanabit# /usr/panabit/bin/ipectrl stop 停止Panabit进程Panabit# cd /usrPanabit# rm -rf panabit 删除PA系统目录Panabit# rm -rf panaetc 删除配制目录Panabit# rm -rf panalog 删除PA日记目录Panabit# rm -rf /etc/PG.conf 删除PA配制文件Panabit# rm -rf PanabitXXXX* 删除旧版本安装包解压后生成的目录Panabit# rm -rf PanabitXXXX*.tar.gz 删除旧版本安装包 4. 重装Panabit步骤如下:Panabit# cd /usr/localPanabit# tar zxvf Panabitxxxx.tar.gz Panabitxxxx.tar.gz换成你下的文件名Panabit# cd PanabitxxxxPanabit# ./ipeinstall 键入此命令进入安装,安装过程只需12分钟即可安装完毕Welcome installing panabit! Please input the directory to install panabit /usr/panabit: 直接回车即使用默认目录Please input the directory to store log /usr/panalog: 直接回车即使用默认目录 Please input the directory to store configuration /usr/panaetc: 直接回车即使用默认目录 The last time to verify your choice: 陈列前面设置的安装目录,以便确认或修改 (1) The directory that you want to install is "/usr/panabit" (2) The directory that the log to be stored is "/usr/panalog" (3) The directory that the configuration to be stored is "/usr/panaetc"Above are right(y/ny)?yCreating directory "/usr/panabit" .okCreating directory "/usr/panalog" .okInstalling Panabit to "/usr/panabit" .okInitializing configurations .okSaving configuration to /etc/PG.conf . * Congratulations *!You have successfully installed Panabit on your system: 安装成功,并显示结构信息 (1) The installed path is: /usr/panabit (2) The log path is: /usr/panalog (3) The configuration path is: /usr/panaetcTo make your system more sutiable for panabit running, it'srecomended of tuning your system according your system memorysize and cpu frequence. Do you want to tune your system(y/n)y: y 是否让系统自动检测并调节内核优化参数Your kernel configuration has been tuned as the followings: #console="comconsole"autoboot_delay="2"beastie_disable="YES"if_em_load="YES"kern.ipc.nmbclusters=10240kern.maxdsiz=2000000000vm.pmap.pg_ps_enabled=1kern.hz=1000You should restart your system to make they take effects. (这些设置必须重启系统才能应用,注意安装完毕后记得reboot系统) Warning: your em driver has been compiled into kernel. To optimize panabit performance, we recommend you use the optimized driver panaos provides. To use the optimized driver, please remove em driver from your kernel. Following interfaces are installed in your system: (选择一个网络适配器,以便我们(管理员)能对Panabit进行管理与设置。) em0 em1 em2 em3 em4 em5Please choose one of above as your admin interface: em5 管理卡网络适配器Please input ip address of admin interface: 192.168.1.226 管理卡适配器的IPPlease input network mask of admin interface: 255.255.252.0 管理卡适配器的掩码Please input default gateway: 192.168.0.1 默认的网关The following interfaces are left for your data processing: (选择预作数据网路接口的两片网卡作桥联,以便Panabit能对数据流进行监控。) em0 em1 em2 em3 em4 Please select data interfaces: em0 em1 (监控用的网路数据接口,一般选择性能好的网卡作为数据网卡) Your interface configurations are: 当前设置的配制信息 Admin interface : em5 Admin ip address : 192.168.1.226 Admin netmask : 255.255.252.0 Default gateway : 192.168.0.1 Data interfaces : em0 em1Thank you for using panabit! You can issue "/usr/panabit/bin/ipectrl start" to start panabit! And you can also add the above command to /etc/rc.local fileto let the system automaticly start panabit at system startup! (使用"/usr/panabit/bin/ipectrl start"命令可以启动Panabit进程,如果您变更过目录,请注意改成你设定目录) If you want to stop the currently running panabit, you can issue"/usr/panabit/bin/ipectrl stop" to stop it! (使用"/usr/panabit/bin/ipectrl stop"命令可以停止Panabit 进程,如果您变更过目录,请注意改成你设定目录) 接下来reboot重启Panabit之后,可以使用ps ax查看Panabit是否启动,正常情况下应该有panaos、ipe_httpd、ipe_mgd进程。Panabit# reboot当Panabit正常启动后,现在就可以使用浏览器,进入Web界面配置管理:https:/192.168.0.8,输入用户名:admin,缺省口令:panabit,则登陆管理界面。进入管理界面后,选择网络配置>数据接口,配置网桥,网桥配置完成后,测试网桥的连通性,如果网桥正常,则安装成功了。至此,一台Panabit应用层流量管理系统安装完毕,即可上线运行,虽然还没有配置策略,但是已经可以分析流量了,一般是先空策略上线运行,待有流量分析数据之后,再进行策略设置和调整。在系统命令临时更改IP地址,参考如下命令:Panabit# ifconfig em5 192.168.1.225 netmask 255.255.252.0修改管理口IP地址,请使用Panabit的Web管理界面修改,配置自动保存。5. 升级Panabit进入Web界面配置管理:系统维护 -> 升级系统,如图所示。点击浏览,选择预升级的Panabit系统升级包,然后点上传升级包按钮上传。上传成功后,会提示您点击进行升级连接来升级系统。确认后,升级的过程需要20秒钟左右的时间,稍等片刻之后便可重新管理PA了。6. 升级特征裤进入Web界面配置管理:系统维护 -> 升级特征库,如图所示。点击浏览,选择预升级的Panabit特征库升级包,然后点上传特征库按钮上传。上传成功后,会提示您点击进行升级连接来升级系统。确认后,升级的过程需要15秒钟左右的时间,稍等片刻之后便可重新管理Panabit了。