« Posts by uraneko

Windows Home Server 壊れた -> 復旧までの物語

WHSが壊れた。日曜深夜のことである。

実は、先週から録画中やエンコ中など、ちょいちょいBSoDしていたり、イベントビューアが開かなかくなる症状などもあったので、なんとなくそんな日が来る予感はあった。(BSoD=Blue Screen of Death Windowsがブルースクリーンで死ぬことをこう呼ぶ)。

これまでの経験から、このBSoDについては、なんとなくドライブ周りが原因の気がしていた。うちではNASやRaid5を運用していることもあり、ドライブ系のトラブルは避けては通れず、多くの困難を乗り越えてきたせいか、この類のトラブルか否かは直感的に分かるようになった。なので、先週木曜に仕事後に用事を済ませたあと秋葉原に行って、SSDを購入しようとしていた。なぜSSDだけ買うかというと、もしHDDが原因だったとしても、HDDはNASを換装した際の余りや予備で購入した分など、保守用の部材がいくらか潤沢にあるので復旧作業に支障はないが、SSDは買い置きしていたものをリビングでTVにつなぐPCを作る際に使ってしまい、予備がない状態だったからだ。こどもとマインクラフトがやりたかったのだからしかたがない。

しかしその日、仕事と用を終えてアキバ着いた時点で20時を過ぎてたので、まあまた買いに来ればいっかーと、買いものには行かずにそのまま飲みに行った。余談だが、昭和通り渡った先の裏路地にあるタイ料理屋は、お安くはないがかなり本格タイ料理が楽しめるのでおススメである。初見で店を見つけられるかどうかが問題だが。

このタイ料理屋に行った判断が敗因であった。その数日後、やはりというか、とうとう起動しなくなった。翌朝が月曜の、1週間でもっともテンションの低い、深夜一時半のことである。

»Read More

Question for something about redirect issues

If you (I) will be asked the traffic to redirect to somewhere,

  • Use rotary under line vty + autocommand (for management, administration router/SW)
  • Use nat for destination address as a inside host (for general redirection)

I’ll add here if I remind or realize new ones.

rotary under line vty

We can change telnet service port on a Router using rotary command under line vty setting.

There seems to be missing the link to this guide…

http://www.cisco.com/c/en/us/td/docs/ios/dial/command/reference/dia-cr-book/dia_p3.html#wp1014642

or, we can see this in old (12.2) guide.

http://www.cisco.com/c/en/us/td/docs/ios/12_2/dial/command/reference/fdial_r/drfprshe.html#wp1096743

Table 19 Services and Port Numbers for Rotary Groups and Lines

Services Provided
Base TCP Port for Rotaries
Base TCP Port for
Individual Lines

Telnet protocol

3000

2000

Raw TCP protocol (no
Telnet protocol)

5000

4000

Telnet protocol, binary mode

7000

6000

XRemote protocol

10000

9000

 

あとはこれくらいしか見つからない。※supportforumsはCisco公式扱いではないので注意。とはいえ、間違ってることは極めて稀。

Telnet ポート番号の変更

次に、Telnet 接続のポート番号を変更する設定を行います。この例ではポート番号 3001 からの接続のみを許可します。

Router(config-line)#rotary 1

上記の rotary 1 コマンドによって、ポート番号 23(デフォルトポート)、3001、5001、7001、10001 からの接続が可能になります。指定できるポート番号は、以下に示す表の Base TCP Port for Rotaries の値に rotary コマンドで指定した値を加えた番号になります。

https://supportforums.cisco.com/ja/document/12021661

ip rcmd rsh-enable

If you are asked about a kind of rsh (remote shell protocol), you can use ip rcmd rsh-enable command to allow remote command on a router.

Cisco uses the abbreviation RCMD (Remote Command) to indicate both rsh and rcp.

 

Examples

The following example shows how to add two entries for remote users to the authentication database, and enable a router to support rsh commands from remote users:

ip rcmd remote-host Router1 172.16.101.101 rmtnetad1
ip rcmd remote-host Router1 172.16.101.101 netadmin4 enable
ip rcmd rsh-enable

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ifs/configuration/15mt/ifs-15-mt-book/ifs-file-trans.html#GUID-3E24FE38-FABA-4BF3-85C0-242746F04A1C

http://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_f1.html#wp1011681

PIR = CIR (1 + Be / Bc)

shape peak <CIR> <Bc> <Be>

maximum burst rate = shape peak rate

http://blog.ine.com/2008/08/26/understanding-the-shape-peak-command/

http://brbccie.blogspot.jp/2012/12/a-different-perspective-on-cir-pir-tc_1785.html

http://www.techexams.net/forums/ccie/46786-shape-peak-vs-shape-average.html

http://www.flashcardmachine.com/ccie-traffic-shaping.html

 

 

The router ID should match BGP and OSPF when you are using BGP synchronization

Oh, I didn’t know this restriction…

http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html#background

If BGP synchronization is enabled, there must be a match for the prefix in the IP routing table in order for an internal BGP (iBGP) path to be considered a valid path. BGP synchronization is enabled by default in Cisco IOS® Software. If the matching route is learned from an Open Shortest Path First (OSPF) neighbor, its OSPF router ID must match the BGP router ID of the iBGP neighbor. Most users prefer to disable synchronization with use of the no synchronization BGP subcommand.

BGP sync feature is not used now normally…

Understanding access-list wildcard

Check this great post:

https://learningnetwork.cisco.com/thread/69872

EIGRP SoO

ここみとけ。

http://www.cisco.com/c/en/us/td/docs/ios/12_0s/feature/guide/s_mvesoo.html

IFに設定したSoOのチェックは、そのIFでupdate受信したときだけじゃなくて、vpnv4 BGP から EIGRP に redistriutes されるときにもされてると。ふむ。

CEの Backup link にこれを設定するとき、カスタマーサイトなのに ip vrf コマンド使うのに違和感がある。しかしその違和感があるだけに忘れなさそう。

 

vrf definition memo

http://www.cisco.com/c/en/us/td/docs/ios/mpls/configuration/guide/12_2sy/mp_12_2sy_book/mp_vpn_ipv4_ipv6.html#wp1055032

The following is an example of a multiprotocol VRF with route-target policies defined in both global and address-family areas:

  • For IPv6, the route-target definitions are defined under the address family. These definitions are used and the route-target definitions in the global area are ignored. Therefore, the IPv6 VPN ignores import 100:2.
  • For IPv4, no route-target policies are defined under the address family, therefore, the global definitions are used.

vrf definition vfr1
route-target export 100:1
route-target import 100:1
route-target import 100:2
!
address-family ipv4
exit-address-family
!
address-family ipv6
route-target export 100:1
route-target import 100:1
route-target import 100:3
exit-address-family

EIGRP named mode has wide-metrics

Named mode の EIGRP は 64bit の Metric を扱う。ちなみに普通のAS番号指定で設定する Classic mode だと32bit。
RIBも32bitなので、64bitの値を metric rib-scale の値で割ったものに書き換えられる。デフォルト128。32bit値に収まらない経路はルーティングテーブル載らない模様。

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_eigrp/configuration/xe-3s/ire-xe-3s-book/ire-wid-met.html

http://brbccie.blogspot.jp/2014/08/eigrp-enhancements.html

route-map の metric で filter するときとかはRIBの値じゃない、基の大きいほうの値見る。なお route-map のmetricが32bitしかないのだけど、大きい値いじりたいときどうするんだろうこれ(後日調査)