EIGRP には、従来の設定方法(クラシックモード)のほかに、名前付きモード(Named Mode)という設定方法があります。Cisco IOS では 15.0(1)M 以降(IOS XE では 2.5 以降など)で使えます。クラシックモードでは router eigrp の下とインタフェースの下に分かれていた設定が、名前付きモードでは router eigrp の下にまとまります。この記事では、名前付きモードの設定の階層を順にたどり、最後に R2 と R3 でネイバーを張って確認します。
- 仮想インスタンス名の設定
- アドレスファミリーと AS 番号の設定
- network、af-interface、topology base それぞれに入れる設定
- 名前付きモードでネイバーを張って確認する方法
クラシックモードとの違い
クラシックモードでは、network や variance は router eigrp 100 の下に、Hello 間隔や認証は各インタフェースの下に設定します。名前付きモードでは、どちらも router eigrp <名前> の下の階層にまとまります。IPv4 と IPv6 もアドレスファミリーで分けて、同じ router eigrp の下で設定します。
| モード(プロンプト) | 主な設定 |
|---|---|
| address-family (config-router-af) | network、neighbor、ルータ ID など |
| af-interface (config-router-af-interface) | Hello 間隔、ホールドタイム、認証、passive-interface、summary-address など、クラシックモードでインタフェースに設定していたもの |
| topology base (config-router-af-topology) | variance、再配送、distance、offset-list など、トポロジテーブルに関わるもの |
仮想インスタンス名を設定する
router eigrp の後に、クラシックモードでは AS 番号を入れますが、名前付きモードでは仮想インスタンス名(文字列)を入れます。
R2
R2(config)# router eigrp ?
<1-65535> Autonomous System
WORD EIGRP Virtual-Instance Name
名前はそのルータの中で区別するためのもので、ネイバーと合わせる必要はありません。ここでは Named-EIGRP にします。
R2
R2(config)# router eigrp Named-EIGRP
R2(config-router)#
config-router モードに入ります。ここで使えるのは、アドレスファミリー(address-family)などの少数のコマンドだけです。
R2
R2(config)# router eigrp Named-EIGRP
R2(config-router)# ?
Router configuration commands:
address-family Enter Address Family command mode
default Set a command to its defaults
exit Exit from routing protocol configuration mode
no Negate a command or set its defaults
service-family Enter Service Family command mode
shutdown Shutdown this instance of EIGRP
アドレスファミリーと AS 番号を設定する
address-family では、ipv4 と ipv6 を選べます。
R2
R2(config-router)# address-family ? ipv4 Address family IPv4 ipv6 Address family IPv6
ipv4 の後には、ユニキャストかマルチキャストか、VRF、AS 番号を指定できます。
R2
R2(config-router)# address-family ipv4 ? autonomous-system Specify Address-Family Autonomous System Number multicast Address Family Multicast unicast Address Family Unicast vrf Specify a specific virtual routing/forwarding instance
今回はユニキャストを選びます。
R2
R2(config-router)# address-family ipv4 unicast ? autonomous-system Specify Address-Family Autonomous System Number vrf Specify a specific virtual routing/forwarding instance
続けて AS 番号 100 を指定します。ネイバー同士で一致させる必要があるのは、こちらの AS 番号です。
R2
R2(config-router)# address-family ipv4 unicast autonomous-system 100
R2(config-router-af)#
config-router-af モード(af は address-family の略)に入ります。ヘルプを見ると、network や neighbor のほか、af-interface や topology に入るコマンドがあります。
R2
R2(config-router)# address-family ipv4 unicast autonomous-system 100 R2(config-router-af)# ? Address Family configuration commands: af-interface Enter Address Family interface configuration default Set a command to its defaults eigrp EIGRP Address Family specific commands exit-address-family Exit Address Family configuration mode help Description of the interactive help system maximum-prefix Maximum number of prefixes acceptable in aggregate metric Modify metrics and parameters for address advertisement neighbor Specify an IPv4 neighbor router network Enable routing on an IP network no Negate a command or set its defaults shutdown Shutdown address family timers Adjust peering based timers topology Topology configuration mode
設定の置き場所を確認する
network:EIGRP を有効にするインタフェース
クラシックモードの network と同じく、EIGRP を有効にするネットワークを config-router-af モードで指定します。
R2
R2(config-router)# address-family ipv4 unicast autonomous-system 100
R2(config-router-af)# network 192.168.23.0 0.0.0.255
af-interface:インタフェースごとの設定
af-interface の後には、設定するインタフェースを指定します。default を選ぶと、すべてのインタフェースに共通の設定(たとえば、全部を passive にする)を入れられます。
R2
R2(config-router)# address-family ipv4 unicast autonomous-system 100 R2(config-router-af)# af-interface ? Async Async interface Auto-Template Auto-Template interface BVI Bridge-Group Virtual Interface CDMA-Ix CDMA Ix interface CTunnel CTunnel interface Dialer Dialer interface FastEthernet FastEthernet IEEE 802.3 GMPLS MPLS interface Group-Async Async Group interface LISP Locator/ID Separation Protocol Virtual Interface LongReachEthernet Long-Reach Ethernet interface Loopback Loopback interface MFR Multilink Frame Relay bundle interface Multilink Multilink-group interface Port-channel Ethernet Channel of interfaces Tunnel Tunnel interface Vif PGM Multicast Host interface Virtual-PPP Virtual PPP interface Virtual-Template Virtual Template interface Virtual-TokenRing Virtual TokenRing default Address-family default interface configuration vmi Virtual Multipoint Interface
FastEthernet0/0.23 を選んでヘルプを見ると、認証、Hello 間隔、ホールドタイム、passive-interface、経路集約(summary-address)など、クラシックモードでインタフェースや router eigrp に入れていた設定が並んでいます。
R2
R2(config-router-af)# af-interface fastEthernet 0/0.23 R2(config-router-af-interface)# ? Address Family Interfaces configuration commands: authentication authentication subcommands bandwidth-percent Set percentage of bandwidth percentage limit bfd Enable Bidirectional Forwarding Detection dampening-change Percent interface metric must change to cause update dampening-interval Time in seconds to check interface metrics default Set a command to its defaults exit-af-interface Exit from Address Family Interface configuration mode hello-interval Configures hello interval hold-time Configures hold time next-hop-self Configures EIGRP next-hop-self no Negate a command or set its defaults passive-interface Suppress address updates on an interface shutdown Disable Address-Family on interface split-horizon Perform split horizon summary-address Perform address summarization
topology base:トポロジに関わる設定
variance など、クラシックモードで router eigrp の下に入れていた経路計算や再配送の設定は、topology base の下で設定します。
R2
R2(config-router)# address-family ipv4 unicast autonomous-system 100 R2(config-router-af)# topology base R2(config-router-af-topology)# ? Address Family Topology configuration commands: auto-summary Enable automatic network number summarization default Set a command to its defaults default-information Control distribution of default information default-metric Set metric of redistributed routes distance Define an administrative distance distribute-list Filter entries in eigrp updates eigrp EIGRP specific commands exit-af-topology Exit from Address Family Topology configuration mode maximum-paths Forward packets over multiple paths metric Modify metrics and parameters for advertisement no Negate a command or set its defaults offset-list Add or subtract offset from EIGRP metrics redistribute Redistribute IPv4 routes from another routing protocol snmp Modify snmp parameters summary-metric Specify summary to apply metric/filtering timers Adjust topology specific timers traffic-share How to compute traffic share over alternate paths variance Control load balancing variance
名前付きモードでネイバーを張る
次の構成で、R2 と R3 を名前付きモードで設定し、ルートを交換します。
R2
R2(config)# router eigrp Named-EIGRP R2(config-router)# address-family ipv4 unicast autonomous-system 100 R2(config-router-af)# network 2.2.2.2 0.0.0.0 R2(config-router-af)# network 192.168.23.0 R2(config-router-af)# exit R2(config-router)# exit R2(config)#
R3
R3(config)# router eigrp Named-EIGRP
R3(config-router)# address-family ipv4 unicast autonomous-system 100
R3(config-router-af)# network 3.3.3.3 0.0.0.0
R3(config-router-af)# network 192.168.23.0
R3(config-router-af)# exit
R3(config-router)# exit
R3(config)#
%DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 192.168.23.2 (FastEthernet0/0.23)
is up: new adjacency
show ip eigrp neighbors:ネイバーの確認
R2 でネイバーを確認すると、R3 とネイバーになっています。見出しの行に、インスタンス名(VR(Named-EIGRP))と AS 番号が表示されます。
R2
R2# show ip eigrp neighbors
EIGRP-IPv4 VR(Named-EIGRP) Address-Family Neighbors for AS(100)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.3 Fa0/0.23 11 00:04:58 16 100 0 4
アドレスファミリーを指定する show eigrp address-family ipv4 neighbors でも、同じ内容を確認できます。
R2
R2# show eigrp address-family ipv4 neighbors
EIGRP-IPv4 VR(Named-EIGRP) Address-Family Neighbors for AS(100)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.3 Fa0/0.23 11 00:02:19 17 102 0 7
クラシックモードの router eigrp の中で eigrp upgrade-cli を実行すると、設定を名前付きモードに自動で変換できます。Cisco のドキュメントでは、確立済みのネイバーに影響を与えずに変換できるとされています。
まとめ
| 項目 | 内容 |
|---|---|
| インスタンス名 | router eigrp <名前>。ルータの中だけで使い、ネイバーと合わせる必要はない |
| AS 番号 | address-family ipv4 unicast autonomous-system <AS>。ネイバーと一致させる |
| インタフェースの設定 | af-interface <インタフェース>(全体は af-interface default) |
| 経路計算・再配送 | topology base |
| 確認 | show ip eigrp neighbors または show eigrp address-family ipv4 neighbors |
コメント