Sie sind auf Seite 1von 7

CCNA LAB (My Lab Journal)

Wednesday, 26 October 2011 4:04 PM

Equipment in Melbourne for John: * Router * Switch * VoIP phone handset * Analog phone handset Equipment in Boston for Steve: * Router * Switch * VoIP phone handset * Analog phone handset

John/Melbourne Data VLAN: VLAN1:

Router add: 192.168.1.0 to 192.168.1.7/29

Default router add: 192.168.1.1

Steve/Boston Data VLAN


Steve/Boston Voice VLAN Serial(Mel-Boston)

VLAN2
VLAN151

8 values
8 values

192.168.1.8 to 192.168.1.15/29

192.168.1.9

192.168.1.16 to 192.168.1.23/29 192.168.1.17 192.168.1.24 to 192.168.1.31/29 192,168.1.25 192.168.1.32 to 192.168.1.35/30 192.168.1.33(Mel) -192.168.1.34(Boston)

John/Melbourne Voice VLAN: VLAN150: 8 values S000/S000 4 values

Router(config)# hostname JohnMelb JohnMelb(config)# ip dhcp excluded-address 10.0.1.0 10.0.1.2 JohnMelb(config)# ip dhcp excluded-address 192.168.1.0 192.168.1.2 JohnMelb(config)# ip dhcp pool VoipPool JohnMelb(dhcp-config)# network 10.0.1.0 255.255.255.0 JohnMelb(dhcp-config)# default-router 10.0.1.1 JohnMelb(dhcp-config)# option 150 ip 10.0.1.1 JohnMelb(dhcp-config)# exit JohnMelb(config)# ip dhcp pool DataNetPool
VOIP Page 1

JohnMelb(config)# ip dhcp pool DataNetPool JohnMelb(dhcp-config)# network 192.168.1.0 255.255.255.248 JohnMelb(dhcp-config)# default-router 192.168.1.1 JohnMelb(dhcp-config)# exit

JohnMelb(config)# interface FastEthernet0/0 JohnMelb(config-if)# description Trunk from router to switch JohnMelb(config-if)# no ip address JohnMelb(config-if)# no shutdown JohnMelb(config-if)# exit JohnMelb(config)# interface FastEthernet0/0.2 JohnMelb(config-if)# encapsulation dot1Q 10 JohnMelb(config-if)# ip address 192.168.1.1 255.255.255.248 JohnMelb(config-if)# exit JohnMelb(config)# interface FastEthernet0/0.11 JohnMelb(config-if)# encapsulation dot1Q 11 JohnMelb(config-if)# ip address 10.0.1.1 255.255.255.0 JohnMelb(config-if)# exit
JohnMelb(config)# interface Serial0/0/0 ip address 192.168.1.17 255.255.255.252 clock rate 64000 no shutdown JohnMelb(config-if)# exit JohnMelb(config)# router eigrp 1 network 10.0.1.0 0.0.0.255 network 192.168.1.0 0.0.0.3 network 192.168.1.0 0.0.0.7 network 192.168.1.0 no auto-summary exit voice-port 0/1/0 no shutdown exit JohnMelb(config)# dial-peer voice 1 voip destination-pattern 2.. session target ipv4:10.0.2.1 exit JohnMelb(config)# dial-peer voice 2 pots destination-pattern 9925.... port 0/1/0 exit

JohnMelb(config)# dial-peer voice 3 voip destination-pattern 1408... session target ipv4:10.0.2.1 exit
JohnMelb(config)# telephony-service max-ephones 10 max-dn 10 ip source-address 10.0.1.1 port 2000 auto assign 1 to 4 create cnf-files exit

JohnMelb(config)# ephone-dn 1 number 593 name John


VOIP Page 2

name John exit JohnMelb(config)# ephone 1 device-security-mode none mac-address 001B.D584.E4B0 type 7960 button 1:1 exit JohnMelbourne(config)# ---------------------------------------------------------------------------------------------------------------------------------------------------

Router(config)# hostname SteveBost SteveBost(config)# ip dhcp excluded-address 192.168.1.9 192.168.1.10 SteveBost(config)# ip dhcp excluded-address 10.0.2.1 10.0.2.2 ip dhcp pool voippool network 10.0.2.0 255.255.255.0 default-router 10.0.2.1 option 150 ip 10.0.2.1 exit ip dhcp pool DataNetpool network 192.168.1.8 255.255.255.248 default-router 192.168.1.9 exit interface FastEthernet0/0 description trunk from router to switch no ip address no shutdown exit interface FastEthernet0/0.20 description trunk for data2vlan encapsulation dot1Q 20 ip address 192.168.1.9 255.255.255.248 exit interface FastEthernet0/0.21 description trunk for voice2vlan encapsulation dot1Q 21 ip address 10.0.2.1 255.255.255.0 exit

interface Serial0/0/0 ip address 192.168.1.18 255.255.255.252 no shutdown exit router eigrp 1 no auto-summary network 10.0.2.0 0.0.0.255 network 192.168.1.8 0.0.0.7 network 192.168.1.16 0.0.0.3 exit voice-port 0/1/0 no shutdown exit
VOIP Page 3

exit dial-peer voice 1 voip destination-pattern 5.. session target ipv4:10.0.1.1 exit dial-peer voice 2 pots destination-pattern 1408... port 0/1/0 exit dial-peer voice 3 voip destination-pattern 9925.... session target ipv4:10.0.1.1 exit

telephony-service max-ephones 10 max-dn 10 ip source-address 10.0.2.1 port 2000 auto assign 1 to 4 create cnf-files exit
ephone-dn 1 number 205 name SteveVOIP exit ephone 1 device-security-mode none mac-address 001B.D584.E4E2 type 7960 button 1:1 exit

--------------------------------------------------------------------------------------------------------------------------------------------------!!! WARNING WARNING WARNING !!! The following switch is configured to emulate 2 separate switches. It does this using VLANs. This is extra complicated! This example should be separated into 2 separate running-config's for 2 separate switches. One switch for Melbourne, one switch for Boston.

hostname Switch ! ! no aaa new-model switch 1 provision ws-c3750-24p ip subnet-zero ! ! ! ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending
VOIP Page 4

vlan internal allocation policy ascending ! interface FastEthernet1/0/1 switchport trunk encapsulation dot1q switchport trunk native vlan 10 switchport mode trunk switchport voice vlan 11 spanning-tree portfast ! interface FastEthernet1/0/2 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/3 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/4 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/5 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/6 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/7 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/8 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/9 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/10 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/11 switchport access vlan 10 switchport mode access ! interface FastEthernet1/0/12 switchport trunk encapsulation dot1q switchport mode trunk ! interface FastEthernet1/0/13 switchport trunk encapsulation dot1q switchport trunk native vlan 20 switchport mode trunk switchport voice vlan 21 spanning-tree portfast ! interface FastEthernet1/0/14 switchport access vlan 20 switchport mode access
VOIP Page 5

switchport mode access ! interface FastEthernet1/0/15 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/16 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/17 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/18 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/19 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/20 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/21 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/22 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/23 switchport access vlan 20 switchport mode access ! interface FastEthernet1/0/24 switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet1/0/1 ! interface GigabitEthernet1/0/2 ! interface Vlan1 no ip address shutdown ! ip classless ip http server ! ! control-plane ! ! line con 0 line vty 5 15 ! end Switch#
VOIP Page 6

Switch#

---------------------------------------------------------------------------------------------------------------------------------------------------

VOIP Page 7

Das könnte Ihnen auch gefallen