February 16th, 2009
If the next hop is unreachable, do not consider it.
如果下一跳不可达,是不会参加选举的!
1. weight
Prefer the path that has the largest weight.
思科的专有属性。
2. Local Preference
If the routes have the same weight, use the route with the highest local preference.
The local preference attribute only is local to the autonomous system and does not get passed to EBGP neighbors. The higher the local preference, the more preferred the route is.
默认情况下,从EBGP学来的路由local preference是100,解决本AS域出口路由选择。他不会把此参数传递给EBGP的邻居。
3. Originated
If the routes have the same local preference, prefer the route that was originated by BGP on this router.
Read the rest of this entry »
February 16th, 2009
1、Scroll Back
当你对一个网络进行完一个操作后,忽然发现你忘了monitor session ,或者sh run 出来将近一万行命令,屏幕往回翻,又翻不了几页,这时,你可以修改一个参数,达到效果,具体如下:
Options —> Global Options —> Edit default Settings进去后点Terminal —> Emulation 下面的Scroll back后面的数字自己修改好了,比如我选了10000,你也可以选更大的(最大为32000),再点OK
2、Map a Key
如果你是维护人员,需要登陆上百台设备,你是否因为频繁的输入用户名和密码而烦恼?你可以用KEY-MAP或者VB脚本来解决此问题!
KEYMAP解决方案:Options —> Global Options —> Edit default Settings进去后点Terminal —> Emulation然后点Mapped Keys —> Map a key,然后按提示进行操作,我选的是回车左边前面的第二个键,就是输出“:”号的那个键,send string: frank,然后再设一个快捷键,““” 的那个键send string 密码为cisco!OK ,下次登陆设备就不需要因为频繁的输入设备而麻烦了,直接打2个键就OK ^_^~下面是截图参考: Read the rest of this entry »
February 16th, 2009
问题:
虽然Blog的访问量不是很大,但是总是有很多垃圾评论,经常一来就是十几页的垃圾评论,每次删除都很费劲,而且很浪费时间。经过网上查找,有很多插件可以解决这个问题,处于简单我直接选用了Wordpress自带的Akismet插件。
网上很多网友反映这个插件判断是否垃圾邮件的算法不是非常准确,但我看中了他可学习的功能!对于评论我设置了只有通过第一次审批的评客,下次才自动通过审批,所以加上Akismet自动学习的功能,对于我来说已经足够用了。
如何获得API:
为了正常启动Akismet,必须要用到Wordpress的API,关于API具体是做什么的,我不是很了解,就不做过多解释。我只想说,要得到这个API需要去Wordpress注册一个账户,然后进入账户状态,可以查看API的参数,另外在咱们国家是无法访问Wordpress控制台的,所以就需要用到代理、vpn等一些技术。 Read the rest of this entry »