分类 网络 下的文章

cisco ap2702i胖ap关闭led指示灯

ap指示灯对家用来说有点多余,而且亮度不低,正常状态下又是蓝光,晚上影响睡眠,所以决定关闭。搜索到的方法大部分是针对ac的,要不就是设置led状态的,没有说胖ap怎么关的,试了一下成功了,记录下来。
方法:
telnet管理员登陆ap

config
led display off


User Access Verification

Username: admin
Password:
ap#?
Exec commands:
  <1-99>           Session number to resume
  access-enable    Create a temporary Access-List entry
  access-profile   Apply user-profile to interface
  access-template  Create a temporary Access-List entry
  archive          manage archive files
  cd               Change current directory
  clear            Reset functions
  clock            Manage the system clock
  configure        Enter configuration mode
  connect          Open a terminal connection
  copy             Copy from one file to another
  crypto           Encryption related commands.
  debug            Debugging functions (see also 'undebug')
  delete           Delete a file
  dir              List files on a filesystem
  disable          Turn off privileged commands
  disconnect       Disconnect an existing network connection
  do-exec          Mode-independent "do-exec" prefix support
  dot11            IEEE 802.11 commands
  dot1x            IEEE 802.1X Exec Commands
  eap              EAP Exec Commands
  enable           Turn on privileged commands
  erase            Erase a filesystem
  exit             Exit from the EXEC
  format           Format a filesystem
  fsck             Fsck a filesystem
  help             Description of the interactive help system
  if-mgr           IF-MGR operations
  ip               Exec commands for IP features
  led              LED functions
  lock             Lock the terminal
  logging          Handles logging operations
  login            Log in as a particular user
  logout           Exit from the EXEC
  mkdir            Create new directory
  monitor          Monitoring different system events
  more             Display the contents of a file
  name-connection  Name an existing network connection
  no               Disable debugging functions
  ping             Send echo messages
  pwd              Display current working directory
  radius           radius exec commands
  release          Release a resource
  reload           Halt and perform a cold restart
  rename           Rename a file
  renew            Renew a resource
  resume           Resume an active network connection
  rmdir            Remove existing directory
  routing-context  Routing Context
  rsh              Execute a remote command
  save             Start to save raise_interrupt_level stack
  send             Send a message to other tty lines
  set              Set system parameter (not config)
  show             Show running system information
  ssh              Open a secure shell client connection
  systat           Display information about terminal lines
  telnet           Open a telnet connection
  terminal         Set terminal line parameters
  test             Test subsystems, memory, and interfaces
  traceroute       Trace route to destination
  tunnel           Open a tunnel connection
  undebug          Disable debugging functions (see also 'debug')
  verify           Verify a file
  where            List active connections
  write            Write running configuration to memory, network, or terminal
  xconnect         Xconnect EXEC commands

ap#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
ap(config)#led?
led

ap(config)#led
% Incomplete command.

ap(config)#led-stat
              ^
% Invalid input detected at '^' marker.

ap(config)#led display
% Incomplete command.

ap(config)#led display?
display

ap(config)#led display ?
  dim  Turn LED display dim.
  off  Turn LED display off.

ap(config)#led display off

记录一下2016年8月willnet.net迁移

这个美国服务器选的是ubuntu16.04,默认安装了apache2,对apache不熟悉,偷懒想apache简单配一下也能凑合用,大不了关了https。
途中遇到502,原因是php7的apache2 的module没装,apt-get安装后重启服务可以了,想着letsencrypt可以auto自动配置apache的证书,结果不行。而且chrome访问老是跳到https,然后无法访问。
最后还是安装了nginx,从香港服务器拷贝过来的配置文件不是很匹配,香港服务器使用的是oneinstack一键脚本安装的,配置文件路径和用apt安装的不一致,修改后还是不行,出现502,排查发现是fastcgi的socks路径不对,修改之后成功。
总之,一键脚本是方便,但是也有很多坑,现在大部分软件都有自己的源,完全可以用apt方式安装最新版,没有太大必要编译安装,而且自己写conf也有助于理解软件逻辑。

网站内容直接mysql导出数据库,新服务器导入即可

willnet.net再次迁移到美国服务器了

由于大陆链接softlayer香港线路绕路日本和美国,所以连接速度不理想,不想续费香港服务器了,所以迁移回便宜的美国服务器,同时取消了https,希望能加快点速度吧。

newifi d1刷老毛子固件测试

此文是我在chiphell上更新的,转到这里

帝都200m光纤,换了光猫之后电脑拨号速度飙到260m,用MW4530R刷openwrt只能到不到200m,openwrt没有硬件nat,想换个路由器,目前纠结newifi d1,r7800,ac88u,
d1可以上老毛子固件可玩性高,兼顾客户端0配置看世界,
r7800和ac88u省心,asus的路由器用的比较习惯,网件的路由器没有过但是交换机用着还不错。
再或者上个软路由,无线现在有cisco 的ap2702i,信号不是问题

求意见,或者有更好的建议

7月31日更新

已入newifi d1
刷了老毛子华硕改,目前一切都不错

d1官方固件nat性能居然不如老毛子这个固件。。。官方固件测试210m,老毛子250m+

我的情况应该适合帝都城区朋友

联通200m光纤,给的是f427百兆带wifi猫,安装师傅说很久没有千兆猫了,所以自己首富家买了华为ma5671塑料壳版(据js说除了壳没有其他区别)
然后路由是newifi d1+ap2702i

cisco ap2702i是买的洋垃圾,自己刷了胖ap固件,目前稳定运行半年有余,强大的无线就不多说了

8月3日更新
今天有空测了一下老毛子固件的其他方面
1.mt7621的读取速度比7620有了很大提升,使用usb3.0移动硬盘,读取能到100m/s左右,台式机约120m/s,cpu使用30-40%
2.写入没有什么变化,基本还是每1m/s占用1%,使用usb3.0移动硬盘,写入速度在28m/s左右,cpu使用30%
3.处理php等还是不行,试用了自带的lnmp一键安装,使用探针测试1+1运算300万次使用1.645秒,圆周率开平方300万次使用了8.173秒,使用owncloud,简单的查看图片等操作,cpu最高到70%+,而且卡到影响使用

所以mips的路由器还是安安静静的做他的路由器吧,newifi d1折腾到此为止。

debian系interfaces中auto与allow-hotplug的区别

/etc/network/interfaces文件中一般用auto或者allow-hotplug来定义接口的启动行为。

auto

语法:
auto <interface_name>
含义:
在系统启动的时候启动网络接口,无论网络接口有无连接(插入网线),如果该接口配置了DHCP,则无论有无网线,系统都会去执行DHCP,如果没有插入网线,则等该接口超时后才会继续。

allow-hotplug

语法:
allow-hotplug <interface_name>

含义:
只有当内核从该接口检测到热插拔事件后才启动该接口。如果系统开机时该接口没有插入网线,则系统不会启动该接口,系统启动后,如果插入网线,系统会自动启动该接口。也就是将网络接口设置为热插拔模式。

手动重新启动网络

一般修改了网络配置文件后,会用以下命令重新启动网络

/etc/init.d/networking restart

但从squeeze开始,此命令会有如下提示:

Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces … (warning).
Reconfiguring network interfaces…done.

如果设置接口为auto,虽然会有如此提示,但接口仍然会正确的启动。
如果接口设置为allow-hotplug则没有这么走运了,网络接口不会正确启动。这种情况下必须使用如下命令启动网络接口:

ifup <interface_name>

而命令

ifconfig <interface_name> up

也无法正确启动接口

所以allow-hotplug设置的接口最好如下方式重新启动网络接口,当然auto方式的接口也没问题:

ifdown <interface_name> && ifup <interface_name>

特别是在ssh登录远程主机的情况下,一定要像上面这样在一条命令里执行ifdown和ifup,否则,如果先执行ifdown,则再也没有机会执行ifup了。

看来大多数情形下,网络接口还是用auto方式比较省心。