前回に引き続き、Ciscoの仮想ルータであるCisco CSR1000VをVMware Playerに入れてみた時のメモ。
(前回: http://d.hatena.ne.jp/debslink/20150501/1430409720)
今回は、CSR1000Vのインターフェースやルーティングプロトコルの設定後、CSR1000V(VMware Player)を載せているINSPIRON1545にCiscoのL3スイッチであるCatalyst3750Metroを接続し、CSR1000VとCatalyst3750Metroとの間の疎通確認を実施してみた。
・DELL INSPIRON 1545改
・Windows7 Home Edition (64bit版) 4GB RAM / Intel Core2Duo P9700 2.8GHz
・VMware Player 7.1.0
・CSR1000V: csr1000v-universalk9.03.14.01.S.155-1.S1-std.iso
・Catalyst3750Metro: c3750me-i5k91-mz.122-55.SE10.bin
1.CE(Customer Edge)スイッチである、Catalyst3750Metroの設定内容は以下のとおり。
interface Loopback0 description Managemeng Port ip address 192.168.255.1 255.255.255.255 no ip redirects no ip proxy-arp interface FastEthernet1/0/1 description To mt-csr1v-rt14-01_GE1 switchport access vlan 100 switchport mode access load-interval 30 interface Vlan100 description Production Traffic ip address 192.168.1.1 255.255.255.0 no ip redirects no ip unreachables no ip proxy-arp load-interval 30 router eigrp 1 network 192.168.1.0 network 192.168.255.1 0.0.0.0 passive-interface default no passive-interface Vlan100 eigrp router-id 192.168.255.1
2.CSR1000Vの設定内容は以下のとおり。
interface Loopback0 description Management Port ip address 192.168.255.250 255.255.255.255 logging event link-status interface GigabitEthernet1 description To mt-ca37m-sw12-01_Fa1/0/1 ip address 192.168.1.13 255.255.255.0 no ip redirects no ip unreachables no ip proxy-arp logging event link-status load-interval 30 negotiation auto cdp enable router eigrp 1 network 192.168.1.0 network 192.168.255.250 0.0.0.0 passive-interface default no passive-interface GigabitEthernet1 eigrp router-id 192.168.255.250 eigrp stub connected ip route 0.0.0.0 0.0.0.0 192.168.1.1
3.上記の設定は既に投入済み、且つCSR1000VとCatalyst3750Metro間のケーブル接続も完了済みである。
CSR1000VにてCDPネイバの確認。CSR1000VはデフォルトでCDPが無効になっているが、今回は有効設定に変更している。
Catalyst3750Metro(mt-ca37m-sw12-01)がCDPのネイバテーブルに載っている事がわかる。
mt-csr1v-rt14-01#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay Device ID Local Intrfce Holdtme Capability Platform PortID mt-ca37m-sw12-01.hoge.net Gig 1 123 R S I ME-C3750- Fas 1/0/1 Total cdp entries displayed : 1
4.CSR1000Vにて、Routing Tableの内容を確認。
WAN方向へのトラヒックはDefault Routeで投げている。
Dフラグが付与されている経路情報192.168.255.1は、Catalyst3750Metroに設定されているLoopback0インターフェースのIP Address。
EIGRPで学習している事がわかる。
mt-csr1v-rt14-01#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 a - application route + - replicated route, % - next hop override Gateway of last resort is 192.168.1.1 to network 0.0.0.0 S* 0.0.0.0/0 [1/0] via 192.168.1.1 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, GigabitEthernet1 L 192.168.1.13/32 is directly connected, GigabitEthernet1 192.168.255.0/32 is subnetted, 2 subnets D 192.168.255.1 [90/130816] via 192.168.1.1, 00:10:02, GigabitEthernet1 C 192.168.255.250 is directly connected, Loopback0 mt-csr1v-rt14-0#
5.CSR1000Vにて、EIGRPネイバの確認。
CSR1000VとCatalyst3750Metro間にあるPCの物理NICの存在は忘れ、まるで直接接続されているような感じ。
mt-csr1v-rt14-01#show ip eigrp neighbors EIGRP-IPv4 Neighbors for AS(1) H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 192.168.1.1 Gi1 11 00:10:19 1 4500 0 15
6.勿論、Pingは100%通る。
外部との接続および通信は成功。
mt-csr1v-rt14-01#ping 192.168.255.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.255.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 2/5/17 ms mt-csr1v-rt14-01#
WAN側のネットワーク構築はこれでOK。次はVMware Player内部の仮想NWとの接続設定だ。