7200emu.hacki.at Forum Index 7200emu.hacki.at
Dynamips, Dynagen and all that stuff
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
7200emu.hacki.at Forum Index

hackibr>

vlan trunk lab

 
Post new topic   Reply to topic    7200emu.hacki.at Forum Index -> sample lab topologies
View previous topic :: View next topic  
Author Message
tianya



Joined: 30 May 2007
Posts: 12

PostPosted: Mon Jul 02, 2007 11:23 pm    Post subject: vlan trunk lab Reply with quote

autostart = false
[localhost]
port = 7200
udp = 10000
workingdir = ..\workingdir
[[2610]]
image = J:\c2600-i-mz.113-4.t1.bin
ram = 16
confreg = 0x2142
idlepc = 0x801f130c
#ghostios = true
#sparsemem = true
slot0 =NM-1E
[[3640]]
image = J:\c3640-js-mz.124-10.bin
ram = 96
confreg = 0x2142
idlepc = 0x60423b48
#ghostios = true
#sparsemem = true
slot0 = NM-1FE-TX
[[3660]]

image = J:\c3660-is-mz.122-8.T.bin
ram = 96
confreg = 0x2142
idlepc = 0x6039163c
#ghostios = true
#sparsemem = true
slot1 =NM-16ESW
[[router R1]]
model = 3640
F0/0 = SW1 F1/0

[[router SW1]]
model = 3660
F1/12 = SW2 F1/12
F1/1 = PC1 F0/0
F1/2 = PC2 F0/0

[[router SW2]]
model = 3660
F1/1 = PC3 F0/0
F1/2 = PC4 F0/0


[[router PC1]]
model = 2610
[[router PC2]]
model = 2610
[[router PC3]]
model = 2610
[[router PC4]]
model = 2610
配置过程如下:

PC1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
PC1(config)#no ip routing
PC1(config)#ip default-gateway 192.168.1.10
PC1(config)#interface e0/0
PC1(config-if)#ip address 192.168.1.1 255.255.255.0
PC1(config-if)#no shutdown
PC1(config-if)#end
PC1#
PC2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
PC2(config)#no ip routing
PC2(config)#ip default-gateway 192.168.2.20
PC2(config)#interface e0/0
PC2(config-if)#ip address 192.168.2.1 255.255.255.0
PC2(config-if)#no shutdown
PC2(config-if)#end
PC2#
PC3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
PC3(config)#no ip routing
PC3(config)#ip default-gateway 192.168.1.10
PC3(config)#interface e0/0
PC3(config-if)#ip address 192.168.1.2 255.255.255.0
PC3(config-if)#no shutdown
PC3(config-if)#end
PC3#
PC4#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
PC4(config)#no ip routing
PC4(config)#ip default-gateway 192.168.2.20
PC4(config)#interface e0/0
PC4(config-if)#ip address 192.168.2.2 255.255.255.0
PC4(config-if)#no shutdown
PC4(config-if)#end
PC4#
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface FastEthernet0/0
R1(config-if)#no shutdown
R1(config-if)#interface FastEthernet0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.1.10 255.255.255.0
R1(config-subif)#interface FastEthernet0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.168.2.20 255.255.255.0
R1(config-subif)#end
R1#

------SW1的配置-------
SW1#vlan database
SW1(vlan)#vlan 10 name vlan10
VLAN 10 modified:
Name: vlan10
SW1(vlan)#vlan 20 name vlan20
VLAN 20 added:
Name: vlan20
SW1(vlan)#exit
APPLY completed.
Exiting....
SW1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface f1/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#no shutdown
SW1(config-if)#exit
SW1(config)#interface f1/2
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 20
SW1(config-if)#no shutdown
SW1(config-if)#exit
SW1(config)#interface f1/12
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#no shutdown
SW1(config-if)#exit
SW1(config)#interface f1/0
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#no shutdown
SW1(config-if)#end
SW1#
------SW2的配置-------
SW2#vlan database
SW2(vlan)#vlan 10 name vlan10
VLAN 10 modified:
Name: vlan10
SW2(vlan)#vlan 20 name vlan20
VLAN 20 modified:
Name: vlan20
SW2(vlan)#exit
APPLY completed.
Exiting....
SW2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#interface f1/1
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
SW2(config-if)#no shutdown
SW2(config-if)#exit
SW2(config)#interface f1/2
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 20
SW2(config-if)#no shutdown
SW2(config-if)#exit
SW2(config)#interface f1/12
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#no shutdown
SW2(config-if)#end
SW2#
Back to top
View user's profile Send private message
roadorange



Joined: 20 Jun 2007
Posts: 14

PostPosted: Thu Aug 02, 2007 8:31 pm    Post subject: Reply with quote

nice work.
i am trying it.
thank you
Back to top
View user's profile Send private message
ramixpe



Joined: 29 Oct 2007
Posts: 2

PostPosted: Mon Jan 21, 2008 11:51 pm    Post subject: Reply with quote

Thank you veryNice!!!
Back to top
View user's profile Send private message
eltech



Joined: 01 Mar 2008
Posts: 60

PostPosted: Sun Jun 15, 2008 10:07 pm    Post subject: Reply with quote

Great lab ..

Put it together and works as designed Smile

http://www.gns3-labs.com/2008/06/15/topology-vlan-trunking-gns3-lab-8021q-router-on-a-stick/

_________________
----

eltech

Check out #gns3 & #gns3-labs on Freenode IRC

http://www.GNS3-Labs.com :: Share & Trade GNS3 Topologies!
Back to top
View user's profile Send private message
Timw



Joined: 09 Mar 2008
Posts: 476
Location: Michigan, USA

PostPosted: Mon Jun 16, 2008 1:14 am    Post subject: Reply with quote

Nice lab, I tweaked it to work with VPCS and dynamips/dynagen, here's the .net and startup.vpc files. I've also attached my configs.

Quote:
autostart = False
[localhost:7200]
workingdir = C:\Program Files\Dynamips\sample_labs\VLAN Trunk Lab\vlantrunklab

[[2610]]
image = C:\Program Files\Dynamips\images\c2600-entbasek9-mz.124-19.image
#idlepc = 0x60678294
#idlepc = 0x806402f8
#idlepc = 0x802b2254
#idlepc = 0x8063a578 #45
#idlepc = 0x8063aa90
idlepc = 0x8063aabc #39
#idlepc = 0x8063ab0c
#idlepc = 0x801b6778
ghostios = True

[[ROUTER HUB]]
model = 2610
#slot1 = NM-4E
e1/0 = SW1 f1/0

[[ROUTER SW1]]
model = 2610
slot1 = NM-16ESW
f1/1 = NIO_udp:30000:127.0.0.1:20000
f1/2 = NIO_udp:30001:127.0.0.1:20001
f1/12 = SW2 f1/12


[[ROUTER SW2]]
model = 2610
slot1 = NM-16ESW
f1/1 = NIO_udp:30002:127.0.0.1:20002
f1/2 = NIO_udp:30003:127.0.0.1:20003




Quote:
# The startup file of VPC
#
1
ip 192.168.1.1 192.168.1.10 24
2
ip 192.168.2.1 192.168.2.20 24
3
ip 192.168.1.2 192.168.1.10 24
4
ip 192.168.2.2 192.168.2.20 24

# switch to PC1
1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    7200emu.hacki.at Forum Index -> sample lab topologies All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 

Cisco Training Course partner | Boot Camps | Cisco Certification Courses
http://www.coursefox.co.uk



Powered by phpBB © 2001, 2005 phpBB Group