ことなかれblog 備忘録

何事もなく無事でありますように

cisco simulator – その2

○cisco simulatorの続き

以下の構成で、仮想ルータを起動する。



dynagenの.netファイルを以下に設定して起動する。

# Working with multiple dynamips servers # A linux server [localhost] autostart = false ghostios = true sparsemem = true [[7200]] image = /var/cisco/ios/c7200.bin npe = npe-400 ram = 160
[[ROUTER R1]] idlepc = 0x62fc6278 model = 7200 S1/1 = R2 S1/0 F0/0 = R3 F0/0
[[ROUTER R2]] idlepc = 0x62fc6278 model = 7200 S1/1 = R3 S1/0 F0/0 = R4 F0/0
[[ROUTER R3]] idlepc = 0x62fc6278 model = 7200 S1/1 = R4 S1/0
[[ROUTER R4]] idlepc = 0x62fc6278 model = 7200 S1/1 = R1 S1/0
[[ROUTER R5]] idlepc = 0x62fc6278 model = 7200 F0/0 = R1 F0/1
[[ROUTER R6]] idlepc = 0x62fc6278 model = 7200 F0/0 = R3 F0/1

$ sudo dynagen /etc/dynagen/c7200-6.net

Reading configuration file...
Network successfully loaded
Dynagen management console for Dynamips and Pemuwrapper 0.11.0 Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel Skovajsa => list Name Type State Server Console R1 7200 running localhost:7200 2000 R2 7200 running localhost:7200 2001 R3 7200 running localhost:7200 2002 R4 7200 running localhost:7200 2003 R5 7200 running localhost:7200 2004 R6 7200 running localhost:7200 2005

ルータが起動したら、telnetしていつもどおり設定 R1のconfigを抜粋

! interface FastEthernet0/0 description To:R3 ip address 192.168.13.1 255.255.255.0 duplex auto speed auto ! ! interface FastEthernet0/1 description To:R5 ip address 192.168.15.1 255.255.255.0 duplex auto speed auto ! ! interface Serial1/0 description To:R4 ip address 192.168.14.1 255.255.255.0 no fair-queue serial restart-delay 0 ! ! interface Serial1/1 description To:R2 ip address 192.168.12.1 255.255.255.0 serial restart-delay 0

とりあえずIPつけただけです。

PE-R1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.13.1 YES NVRAM up up FastEthernet0/1 192.168.15.1 YES manual up up Serial1/0 192.168.14.1 YES NVRAM up up Serial1/1 192.168.12.1 YES NVRAM up up Serial1/2 unassigned YES NVRAM administratively down down Serial1/3 unassigned YES NVRAM administratively down down Serial1/4 unassigned YES NVRAM administratively down down Serial1/5 unassigned YES NVRAM administratively down down Serial1/6 unassigned YES NVRAM administratively down down Serial1/7 unassigned YES NVRAM administratively down down Loopback0 10.10.10.1 YES NVRAM up up

各intがupしていること で、対向int-ipまでpingが通るところまで確認

PE-R1#ping 192.168.13.3 repeat 10 Type escape sequence to abort. Sending 10, 100-byte ICMP Echos to 192.168.13.3, timeout is 2 seconds: !!!!!!!!!! Success rate is 100 percent (10/10), round-trip min/avg/max = 4/8/16 ms PE-R1#ping 192.168.14.4 repeat 10 Type escape sequence to abort. Sending 10, 100-byte ICMP Echos to 192.168.14.4, timeout is 2 seconds: !!!!!!!!!! Success rate is 100 percent (10/10), round-trip min/avg/max = 4/75/668 ms PE-R1#

次回R1-R4でMLPSネットワークを構成する。ここからが本番

(2012/09/7追記)
MPLS網で、CE-PE-P-PE-CEのpathを明示的に構成するため、R1 F0/0 <--> R3 F0/0のlinkをshutdownしました。


Categorised as: cisco | lab | mpls



コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>