2015年12月10日木曜日

RIPの設定

いつものごとくイージス様から
http://www.infraexpert.com/study/distancevector6.html


ip rip send version  [ 1 | 2 | 1 2 ]
ip rip receive version  [ 1 | 2 | 1 2 ]

それからCiscoのデフォは、受信2、送信1なので、1を明示的に指定するとデフォと動きが変わるとのこと。また、デフォに戻すためには no version 2 と設定する必要があると。

なるほど・・・・・・。

また、ヴァージョン2においても自動集約が有効なので ノー オーさまりが必須とのこと。

次に、基本のところでpassive-interfaceが出てこないと思ったらここに。


以下箇条書き。


・まきしまむパスズのデフォは4、6までは設定可能でそれ以上は?

・default-information originate
 これもさすがに書いたことがないし、耳にしたこともない。

・v2では、インターフェース上で、任意の経路集約が可能。

 (config)#いんたーふぇーす なんちゃら
 (config-if)#あいぴー さまり-あどれす ぅりっぷ 172.16.0.0 255.255.248.0
  <--ここでは仮にクラスCサブネットを21ビット集約

 ただし、制約なしに集約できるわけではなく、クラス古境界をまたいで集約はNGとのこと。

・オフセットリストでホップ数加算

GW-Router(config)#router rip
GW-Router(config-router)#offset-list ?
  <0-99>       Access list of networks to apply offset (0 selects all networks)
  <1300-1999>  Access list of networks to apply offset (expanded range)
  WORD         Access-list name

GW-Router(config-router)#offset-list 10 ?
  in   Perform offset on incoming updates
  out  Perform offset on outgoing updates

GW-Router(config-router)#offset-list 10 out ?
  <0-16>  Offset

GW-Router(config-router)#offset-list 10 out 7 ?
  Async              Async interface
  Auto-Template      Auto-Template interface
  BRI                ISDN Basic Rate Interface
  BVI                Bridge-Group Virtual Interface
  CDMA-Ix            CDMA Ix interface
  CTunnel            CTunnel interface
  Dialer             Dialer interface
  FastEthernet       FastEthernet IEEE 802.3
  GigabitEthernet    GigabitEthernet IEEE 802.3z
  LISP               Locator/ID Separation Protocol Virtual Interface
  LongReachEthernet  Long-Reach Ethernet interface
  Loopback           Loopback interface
  Lspvif             LSP virtual interface
  Multilink          Multilink-group interface
  Null               Null interface
  Tunnel             Tunnel interface
  Vif                PGM Multicast Host interface
  Virtual-PPP        Virtual PPP interface
  Virtual-Template   Virtual Template interface
  Virtual-TokenRing  Virtual TokenRing
  Vlan               Vlan IEEE 802.1q
  vmi                Virtual Multipoint Interface
  <cr>

GW-Router(config-router)#offset-list 10 out 7 vlan 1
GW-Router(config-router)#

Edge-Router#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 172.19.19.254 to network 0.0.0.0

C        172.16.1.0/24 is directly connected, Vlan1
L        172.16.1.2/32 is directly connected, Vlan1
      192.168.150.0/29 is subnetted, 1 subnets
R        192.168.150.168 [120/8] via 172.16.1.254, 00:00:00, Vlan1



・シリアルインターフェースに対する定期アップデートの停止…トリガーアップデート
Edge-Router(config)# interface interface-id
Edge-Router(config-router)# ip rip triggered


・検証
Edge-Router(config)#
Edge-Router(config)#router rip
Edge-Router(config-router)#validate-update-source ?
  <cr>

Edge-Router(config-router)#validate-update-source
Edge-Router(config-router)#no validate-update-source
Edge-Router(config-router)#validate-update-source

When a router running Routing Information Protocol (RIP) receives an update from a neighboring router, it checks whether the source of the update belongs to the same network or sub-network as the receiving interface. If they are the same, the routes are accepted for installing into the routing table. Otherwise, the update is dropped.


・アップデートパケットの送出間隔

Edge-Router(config-router)#output-delay ?
  <8-50>  Delay in milliseconds

Edge-Router(config-router)#output-delay 50
Edge-Router(config-router)#
Edge-Router(config-router)#output-delay 60
                                       ^
% Invalid input detected at '^' marker.

Edge-Router(config-router)#


・RIPネイバーの設定とセットでパッシブインターフェース化

Edge-Router(config-router)#neighbor 172.16.11.254
Edge-Router(config-router)#passive-interface vlan 1
Edge-Router(config-router)#



・RIPネイバーとの認証

Edge-Router(config)#key chain rip277keychain
Edge-Router(config-keychain)#key 120
Edge-Router(config-keychain-key)#key-string 0 ripneighorkeystring
Edge-Router(config-keychain-key)#end


Edge-Router(config)#interface vlan 1




Edge-Router(config-if)#ip rip ?
  advertise       Specify update interval
  authentication  Authentication control
  initial-delay   Specify initial delay interval
  receive         advertisement reception
  send            advertisement transmission
  v2-broadcast    send ip broadcast v2 update

Edge-Router(config-if)#ip rip authentication ?
  key-chain  Authentication key-chain
  mode       Authentication mode

Edge-Router(config-if)#ip rip authentication mode ?
  md5   Keyed message digest
  text  Clear text authentication

Edge-Router(config-if)#ip rip authentication mode md5 ?
  <cr>

Edge-Router(config-if)#ip rip authentication mode md5
Edge-Router(config-if)#ip rip ?
  advertise       Specify update interval
  authentication  Authentication control
  initial-delay   Specify initial delay interval
  receive         advertisement reception
  send            advertisement transmission
  v2-broadcast    send ip broadcast v2 update

Edge-Router(config-if)#ip rip authentication key-chain rip277keychain
Edge-Router(config-if)#






GW-Router(config)#key chain rip277keychain
GW-Router(config-keychain)#key 120
GW-Router(config-keychain-key)#key-string 0 ripneighorkeystring
GW-Router(config-keychain-key)#interface vlan 1
GW-Router(config-if)#ip rip authentication mode md5
GW-Router(config-if)#ip rip authentication key-chain rip277keychain


surpress
http://ejje.weblio.jp/content/suppress


indicate
http://ejje.weblio.jp/content/indicate

likewise
http://ejje.weblio.jp/content/likewise




















0 件のコメント:

コメントを投稿