«Prev || 1 | 2 | 3 | 4 | 5 | 6 || Next»

10月14日 (火)

アドミニストレーティブディスタンス


1つのルータで複数のルーティングプロトコルを動かしたとき、プロトコルの優先順位を決めるもの。
この値が小さいプロトコルで学習したルートが優先される。

ルーティング    アドミニストレーティブ
プロトコル     ディスタンス(デフォルト値)
---------------------------------------------------
Direct connection network 0
Staticルート      1
EIGRP           90
OSPF          110
RIP          120

ルータの内部でしか意味がない。
値を変えることはあまりないが、Staticの優先順位を落とすことはある。

ルート再配信


あるルーティングプロトコルで学習したルートを異なるルーティングプロトコルに乗せて配信すること。
たとえば、スタティックルートをRIPに再配信する、OSPFで学習したルートをRIPに再配信するなど。

R1(config-router)#redistribute static metric 5

10月13日 (月)

シリアルI/Fの専用線接続設定


すごく単純だ。

R1(config)#int s0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config-if)#clock rate 2000000  …
R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.10.2
R1(config)#end

ルーティングはRIPでもよい。

,clock rateを指定しているのは、テストのためにルータ2つを直接ケーブルでつないでいるため。(DCE側となったルータからclockを出す必要がある。)
通常は、網のほうからclockは送られてくるので設定する必要はない。


ISDN一次群インタフェースの場合の設定方法


R1(config)#username R2 password ****
R1(config)#userneme R3 password ****
R1(config)#isdn switch-type primary-ntt  …
R1(config)#controller T1 0/0  …
R1(config)#framing esf  …
R1(config)#linecode b8zs  …
R1(config)#pri-group timeslots 1-24  …
R1(config)#int s0/0:23  …
R1(config-if)#ip address 192.168.250.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#dialer idle-timeout 30
R1(config-if)#dialer map ip 192.168.250.2 name R2 0311112222
R1(config-if)#dialer map ip 192.168.250.3 name R2 0311113333
R1(config-if)#dialer-group 1
R1(config-if)#isdn caller 0311112222
R1(config-if)#isdn caller 0311113333
R1(config-if)#ppp authentication chap
R1(config-if)#ip route 192.168.2.0 255.255.255.0 192.168.250.2
R1(config-if)#ip route 192.168.3.0 255.255.255.0 192.168.250.3
R1(config-if)#dialer-list 1 protocol ip permit

解説
switch-typeはprimary-nttを指定
PRIのコンフィグ時定型コマンドとして指定
PRIインタフェースはSerial0/0:23と指定する


※ただし、上記は、実験していないので間違っているかもしれない。

回線交換ISDN網の設定方法(基本インタフェース)


R1(config)#isdn switch-type ntt  …
R1(config)#int bri0  …
R1(config-if)#ip address 192.168.10.1 255.255.255.0  …
R1(config-if)#encapsulation ppp  …
R1(config-if)#ppp authentication chap  …
R1(config-if)#dialer-group 1  …
R1(config-if)#dialer map ip 192.168.10.2 name R2 0311112222  …
R1(config-if)#isdn caller 0311112222  …
R1(config-if)#dialer idle-timeout 60  …
R1(config-if)#exit
R1(config)#username R2 password ****  …
R1(config)#ip route 192.168.1.0 255.255.25.0 192.168.10.2  …
R1(config)#dialer-list 1 protocol ip permit  …

解説:
switch-typeは日本では必ずntt
ISDNの場合はbriを使用
自分のアドレスを設定
ぅ瀬ぅ▲襯▲奪廚両豺隋▲プセレーションタイプはpppを指定
デЬ敲法はCHAPを使用(PAPしか対応していない機器とはPAP)
dialer-groupとdialer-listは対応するように
二重発呼を防ぐため、相手のルータ名、GW、電話番号を記述する
┿慊衄峭罎らのみ着信するよう設定(指定しなくてもよい)
無通信状態の場合に切断するまでの時間
相手ルータの名前とパスワード(全員共通で使用)を設定
スタティックルート設定(回線交換ではダイナミックルーティングは不可)
発呼条件指定:ipパケットはすべて通過させ、1でダイアルする
 (ipパケットがinterestingトラフィックとなる)


ISDNステータス確認コマンド
R1#show isdn status
R1#show isdn active
R1#show isdn hisory
R1#show dialer
R1#show int bri0

debugコマンド
R1#debug isdn q921
R1#debug isdn q931
R1#debug isdn event
R1#debug ppp authentication
R1#debug ppp packet
(debugの中止は no debug xxx または no debug all)


config regの内容


config reg=0x2102をbit分解すると

 2     1     0     2
0010  0001  0000  0010
↑ ↑  ↑  ↑ ↑  ↑
15 12 11  8  7   4

15   Diagnostic mode disabled
14   IP broadcasts do not have network numbers
13   Boot default ROM software if network boot fails
12-11  Console speed is 9600 baud
10   IP bradcasts with ones
8    Break disabled
7    OEM diabled
6    startup-config を無視して立ち上げ

下4bit
  2  通常のIOSで動く  hostname>
  1  MINI IOSがLoadされる  hostname(boot)
  0  ROMモードで止まる  rommon1>

※通常、config regを変更するのはパスワードリカバリのときぐらい。

«Prev || 1 | 2 | 3 | 4 | 5 | 6 || Next»