Cisco AUX connect to another Router Console port
line aux 0
transport input all
stopbits 1
speed 9600
databit 8
Cisco AUX connect to another Router Console port
line aux 0
transport input all
stopbits 1
speed 9600
databit 8
放default router 給 neighbor 的方法
其實有很多種,但自己試過的如下
(config-router)#neighbor X.X.X.X default-originate
跟neighbor 說你的default router 在我這裡
就算自己沒有default router也不會影響
IPB Image 是什麼意思呢?
是 IP Basic 的意思,也就是要買 ip base 的 IOS
基本語法
snmpwalk -v 1 -c Community Host MIB
加-t 300 將timeout 時間拉長 , > filename 將walk 出來的資料轉到檔案裡
snmpwalk -v1 -t 300 -c Community Host > filename
FreeBSD syslogd 收 Cisco Router log
1.在FreeBSD裡的 /etc/hosts 裡加入所丟出來設備IP
如router hostname = Cisco26_1.20 IP 是 192.168.1.20
在 /etc/hosts裡不能用 _ (會到不了所指定的檔案裡,在FreeBSD6.2上試是如此)
故改用 –
192.168.1.20 Cisco26-1.20
2.為了不將router出所丟出來的 log 進到 /var/log/messages 裡
在/etc/syslog.conf 裡的最上面#開頭數行後加入
-Cisco26-1.20;
此行在
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
之上,也就是若符合 messages 所要求的等級log ,只要 Cisco26-1.20 不寫入 messages
3.在 syslog.conf 裡找個地方寫上
+Cisco26-1.20
*.* /home/dfnoc/dflog
也就是說,只要log字串裡有Cisco26-1.20 就寫入指定的 /home/dfnoc/dflog 裡
4.改完syslog.conf ,重起 syslogd 不加入 -s
#ps auxw | grep syslogd (找到syslogd pid )
#kill 24990 (砍掉它)
#syslogd (不用-s mode ) ( -s Operate in secure mode. )
補充:
1.試過 Cisco26_1.20 就是無法寫入指定的 file
2.目前遇到數台Router 要各別寫入各別的 log file ,在 syslog.conf 的設定 未解決
在最上顆router 的 ospf 下
下以下指令
default-information originate metric 600
那底下的router 若沒有static default route
將會以學到有這筆O*E2 的routing 之router 為default router
PS.重點:
最上層的Router 本身要有default router 的entry 存在,下層的Router 才會default route出現
安裝的版本
tac_plus -v
tac_plus version F4.0.4.14
——————————————————————
安裝流程
#cd /usr/ports/net/tac_plus4
#make install clean
若無任何錯誤訊息即安裝完成
開機後執行tac_plus
#ee /etc/rc.conf
加入
tac_plus_enable=”YES”
tac_plus 的config file
#cp /usr/local/etc/tac_plus.conf.example /usr/local/etc/tac_plus
即可
重點在tac_plus.conf 的設定
再日後補充
修正後要重起tac_plus ,可以用以下方式
#/usr/local/etc/rc.d/tac_plus
Usage: rc.d/tac_plus [fast|force|one](start|stop|restart|rcvar|status|poll)
以下是運用在Cisco router 上
Continue Reading »
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
就這二行
Public AS number is 1-64511
Private autonomous system (AS) numbers which range from 64512 to 65535 are used to conserve globally unique AS numbers.
from:http://www.cisco.com/warp/public/459/32.html
Shutdown neighbor command
router(config-router)#neighbor ip-address shutdown
錯誤訊息:
5w0d: %TCP-6-BADAUTH: Invalid MD5 digest from 10.15.96.250(31190) to 10.15.96.249(179)
A:二邊password 不對
大段的Route對方沒有收到,改切小段才行,原本放/20,但不知是否末段被用了,才不行
改切成 /21 /22 /23 /24 切完後debug ip bgp update event所得到的訊息
router_35#
6d11h: %SYS-5-CONFIG_I: Configured from console by vty0 (xxx.xxx.xxx.xxx)
6d11h: BGP(0): route xxx.xxx.32.0/21 up
6d11h: BGP(0): Increasing convergence goal from 4 to 5
6d11h: BGP(0): Reset update-group 1 versions from 4 to (cand xxx.xxx.xxx.141) 4
6d11h: BGP(0): nettable_walker xxx.xxx.32.0/21 route sourced locally
6d11h: BGP(0): Begin update run for versions 5->5 for 1 update groups
6d11h: BGP(0): update-group 1 leader is xxx.xxx.xxx.141
6d11h: BGP(0): xxx.xxx.xxx.141 send UPDATE (format) xxx.xxx.32.0/21, next xxx.xxx.xxx.142, metric 0, path
6d11h: BGP(0): updgrp 1 – xxx.xxx.xxx.141 enqueued 1 updates, average/maximum size (bytes) 52/52
6d11h: BGP(0): End update run for versions 5->5 (0ms), 1/1/0 updates formatted/enqueued/replicated, formatting was not aborted, enqueuing was not aborted, 1 attrs – 1 nets visited