Dynamips/Dynagen ทำ LAB cisco ตอนที่ 5 (Switch LAB)

Dynamips/Dynagen ทำ LAB cisco ตอนที่ 5 (Switch LAB)


               หลายคนคงสงสัยว่า อยากจะใช้จำลอง เป็น switch ทำไงหว่า Dynamips/Dynagen มันเป็น router simulator แต่เรายังสามารถใช้โหมด switch ได้โดยการนำ Ethernet module ที่เรียกว่า "NM-16ESW" เป็น Ethernet 16 port มาใส่ใน slot routerที่ support ณตอนนี้ router IOS ที่ ใช้งานได้มี 3600s และ 3700s ตาม http://dynagen.org/tutorial.htm ในหัวข้อ Hardware Currently Emulated

===========3600s===========
3660
Slots: 6 (available)
3640
Slots: 4
3620
Slots: 2
Cards:
- NM-1E (Ethernet, 1 port)
- NM-4E (Ethernet, 4 ports)
- NM-1FE-TX (FastEthernet, 1 port)
- NM-16ESW (Ethernet switch module, 16 ports)
- NM-4T (Serial, 4 ports)
- Leopard-2FE (Cisco 3660 FastEthernet in slot 0, automatically used)

===========3700s===========
2691 (The 2691 is essentially a 3700 with 1 slot)
Slots: 1 (available)
WIC slots: 3
3725
Slots: 2 (available)
WIC slots: 3
3745
Slots: 4 (available)
WIC slots: 3
Cards:
- NM-1FE-TX (FastEthernet, 1 port)
- NM-4T (Serial, 4 ports)
- NM-16ESW (Ethernet switch module, 16 ports)
- GT96100-FE (2 integrated ports, automatically used)
- NM-NAM
- NM-IDS
- WIC-1T (1 Serial port)
- WIC-2T (2 Serial ports)

วิธีการ ใช้งานmoduleนี้ก็ slot 1 = NM-16ESW ในส่วน router instance

[[3640]]
image = C:\Program Files\Dynamips\image\c3640-js-mz.124-18.uncompressed.bin
ram = 128
nvram = 128
exec_area = 64
[[ROUTER SW1]]
model = 3640
idlepc = 0x60428c4c
slot1 = NM-16ESW
F1/1 = SW2 F1/1

[[ROUTER SW]]
model = 3640
idlepc = 0x60428c4c
slot1 = NM-16ESW


2. Dynamips ตั้งแต่ version 0.2.5-pre22 ได้มีการเพิ่ม virtual Ethernet switch ที่สามารถ supports VLANs with 802.1q encapsulation แล้ว ลักษณะการconfig จะคล้ายๆกับ การ set framerelay lab

[[ROUTER R1]]
F1/0 = S1 1

[[ROUTER R2]]
F1/0 = S1 2

[[ROUTER R3]]
F1/0 = S1 3

config portที่ไปยัง switch ว่าเป็น access หรือ dot1Qได้

[[ETHSW S1]]
1 = access 1
2 = access 20
3 = dot1q 1
4 = dot1q 1 NIO_gen_eth:\Device\NPF_{B00A38DD-F10B-43B4-99F4- B4A078484487}<= dot1Q ผูกกับinterface ของ network card เพื่อเชื่อมต่อnetworkภายนอกได้


*** หมายเหตุ เป็นบทความเก่า จากเวบ version เดิม ตั้งแต่ 2008  เนื้อหาอาจจะเก่าไปบ้าง ***
รูปภาพธีมโดย sandsun. ขับเคลื่อนโดย Blogger.