Jul 1, 2008

利用GNS3架設SP CCIE Lab

再過四個月就要去澳洲找袋鼠大魔王報到了,手邊還沒有Lab可以練習,所以趁著這個星期沒有上課的時間,再重溫舊夢一次,把之前用過的GNS3再重新安裝一次,現在的最新的版本是0.5,安裝完成之後第一個視窗就是指導你設定的兩大步驟,看來容易不過對於初上手的人來說還是有點小複雜,不過總比手寫來得方便~ 各位可以在到GNS3官網去下載。


經過一個上午的測試,最後決定全系列Router全部使用Cisco 7200 IOS 12.4(15).5T,因為…如果照Cisco官網上面的建議規格用IOS 12.2根本沒有vpdn的指令可用(也就是不支持PPPoE),那就很麻煩了,因為最不熟的部份就是這個特色…最後硬著頭皮還是使用12.4的IOS,雖然每一台Router都至少要給256M RAM,不過我的X60 w/ 3G RAM還是很稱職地把十幾台Router全部上線完畢(建議手動幾台幾台批次開啟,不要一次全開,電腦很容易會hang住..甚至當機)。以下這張圖片就是我全部設完之後的架構,右邊的設備清單有看到綠燈就表示已開機的狀態。



各位會覺得很奇怪,怎麼全部都是Hub-and-Spoke,因為現在CCIE Lab都採用這樣的實體連線方式,Router之間的Serial都是Frame-Relay,Router之間的Ethernet都是Trunk,只要考官dump default configuration,同一套設備可以馬上變成Routing & Switching or Service Provider的網路架構。


不過設定了一整個下午到晚上還是沒有把所有設定弄上去,因為剛開始時還蠻順的,但是到了後來設定了BGP之後…整個Lab的速度就開始龜速…甚至動不動就BGP session reset(可能是ISIS在Trunk上的部份在dynamips中仍有bug,不時會出現clns checksum error or circuit-type error,導致路由不穩定)。但是在MPLS還沒有設定之後,目前看來是仍堪用的,今天就到此為止,明天再繼續努力!


以下是由GNS3自行產生的SP.net,歡迎各位取用,不過IOS下載問題請各位自行解決:


autostart = False

[localhost:7202]

workingdir = C:\Program Files\Dynamips\sample_labs\GNS3

udp = 10200

[[7200]]

ghostios = True

image = C:\Program Files\Dynamips\images\c7200-spservicesk9-mz.124-15.T5.extracted.bin

ram = 256

sparsemem = True

idlepc = 0x606dd148

confreg = 0x2102

[[ROUTER R8]]

console = 2008

f0/0 = SW0 8

slot1 = PA-8T

s1/0 = FR0 8

x = 194.0

y = -7.0

[[ROUTER R9]]

console = 2009

f0/0 = SW0 9

slot1 = PA-8T

s1/0 = FR0 9

x = 190.0

y = -180.0

[localhost:7203]

workingdir = C:\Program Files\Dynamips\sample_labs\GNS3

udp = 10300

[[7200]]

ghostios = True

image = C:\Program Files\Dynamips\images\c7200-spservicesk9-mz.124-15.T5.extracted.bin

ram = 256

sparsemem = True

idlepc = 0x606dd148

confreg = 0x2102

[[ROUTER BB2]]

console = 2013

f0/0 = SW0 11

x = 176.0

y = 128.0

[[ROUTER BB1]]

console = 2011

f0/0 = SW0 10

x = -259.0

y = 131.0

[localhost:7200]

workingdir = C:\Program Files\Dynamips\sample_labs\GNS3

[[7200]]

ghostios = True

image = C:\Program Files\Dynamips\images\c7200-spservicesk9-mz.124-15.T5.extracted.bin

ram = 256

sparsemem = True

idlepc = 0x606dd148

confreg = 0x2102

[[ROUTER R1]]

console = 2001

f0/0 = SW0 1

slot1 = PA-8T

s1/0 = FR0 1

x = -296.0

y = -185.0

[[ROUTER R2]]

console = 2002

f0/0 = SW0 2

slot1 = PA-8T

s1/0 = FR0 2

x = -296.0

y = -8.0

[[ROUTER R3]]

console = 2003

f0/0 = SW0 3

x = -199.0

y = 237.0

[[FRSW FR0]]

1:107 = 7:701

2:208 = 8:802

6:609 = 9:906

7:701 = 1:107

8:802 = 2:208

9:906 = 6:609

x = -50.5

y = -169.5

[[ETHSW SW0]]

1 = dot1q 1

2 = dot1q 1

3 = dot1q 1

4 = dot1q 1

5 = dot1q 1

6 = dot1q 1

7 = dot1q 1

8 = dot1q 1

9 = dot1q 1

10 = dot1q 1

11 = dot1q 1

x = -44.5

y = 124.0

[localhost:7201]

workingdir = C:\Program Files\Dynamips\sample_labs\GNS3

udp = 10100

[[7200]]

ghostios = True

image = C:\Program Files\Dynamips\images\c7200-spservicesk9-mz.124-15.T5.extracted.bin

ram = 256

sparsemem = True

idlepc = 0x606dd148

confreg = 0x2102

[[ROUTER R4]]

console = 2004

f0/0 = SW0 4

x = -37.0

y = 240.0

[[ROUTER R5]]

console = 2005

f0/0 = SW0 5

x = 143.0

y = 241.0

[[ROUTER R6]]

console = 2006

f0/0 = SW0 6

slot1 = PA-8T

s1/0 = FR0 6

slot2 = PA-A1

x = -106.0

y = -7.0

[[ROUTER R7]]

console = 2007

f0/0 = SW0 7

slot1 = PA-8T

s1/0 = FR0 7

x = 12.0

y = -9.0

Post a Comment