«Prev || 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 || Next»

10月14日 (火)

ルート再配信


あるルーティングプロトコルで学習したルートを異なるルーティングプロトコルに乗せて配信すること。
たとえば、スタティックルートを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を変更するのはパスワードリカバリのときぐらい。

10月10日 (金)

フレームリレーの設定


ネットワーク構成例3
■ malti-point接続の場合

ひとつの物理インタフェースで複数の相手先と通信する。各相手先同志は、スプリットホライズン機能のため通信できない。

R1(config)#int s0
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay lmi-type q933a
R1(config-if)#frame-relay map ip 192.168.10.2 16 broadcast


■ Point-to-Point接続の場合

複数のサブインタフェースを作り、それぞれに対してDLCI値を設定する方法。各相手先同士も通信できる。

R1(config)#int s0
R1(config)#no ip address
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay lmi-type q933a
R1(config)#int s0.1 point-to-point
R1(config)#ip address 192.168.1.1 255.255.255.0
R1(config)#frame-relay interface-dlci 16


※注意点
・上記設定の後、ルート設定をすること。
・LMIは、q933aまたはansiのどちらか(業者に確認)。ただし、IOS11.3以降は、自動認識が可能。
・DLCI値も業者に確認。malti-pointの場合、INARP(インバースアープ)が働くのでDLCI値の設定はなくてもよいが、接続している個所を確認するために書いたほうがわかりやすい。ただし、DLCI値を設定するとINARPは働かないし、設定が間違っていると接続できない。
・また、フレームリレーはデフォルトbroadcastなしなので、上記のように明示的にbroadcastを指定しないと、RIP等は使えない。

フレームリレーの絵を書かなきゃだめだな…。
«Prev || 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 || Next»