Вы находитесь на странице: 1из 13

Experiment 5

Aim: To create VLAN using CISCO packet tracer Equipment: CISCO Packet Tracer Network Diagram:

Procedure:
1. Assign IP address to all the 20 PCs 2. Configure the switch Switch>enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#name marketing Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#name production Switch(config-vlan)#exit Switch(config)#vlan 4 Switch(config-vlan)#name it Switch(config-vlan)#exit Switch(config)#vlan 5 Switch(config-vlan)#name hr Switch(config-vlan)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan brief BHANU SONI [091309] Page 1

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 2 marketing active 3 production active 4 finance active 5 admin active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active Switch(config)#interface fa0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/4 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/6 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/7 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/8 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/9 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/10 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/11 BHANU SONI [091309] Page 2

Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/12 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/13 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/14 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/15 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/16 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/17 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/18 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 4 Switch(config-if)#exit Switch(config)#interface fa0/19 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#interface fa0/20 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#interface fa0/21 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#interface fa0/22 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#interface fa0/23 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#interface fa0/24 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 5 Switch(config-if)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by console BHANU SONI [091309] Page 3

Switch#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active 2 marketing active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6 3 production active Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12 4 finance active Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18 5 admin active Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active

3. Connecting devices to existing vlan using another switch Switch0:Switch# %LINK-5-CHANGED: Interface FastEthernet0/24, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down Switch#enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fa0/24 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 1 Switch(config-if)#exit Switch(config)#interface fa0/24 Switch(config-if)#no switchport mode access Switch(config-if)#exit Switch(config)#interface fa0/24 Switch(config-if)#no switchport mode access vlan 5 Switch(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/24, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

Switch(config-if)#interface fa0/24 Switch(config-if)#exit Switch(config)#interface fa0/24 Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down Switch1:Switch>enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 BHANU SONI [091309] Page 4

Switch(config-vlan)#name marketing Switch(config-vlan)#exit Switch(config)#interface fa0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by console Switch# %LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

BHANU SONI [091309]

Page 5

Experiment 6
Aim: To demonstrate inter vlan communication using CISCO packet tracer Equipment: CISCO Packet Tracer Network Diagram:

Procedure:
1. Assign IP Addresses to the end devices PC0 : 192.168.1.10 PC1 : 192.168.2.10

2. Create VLAN and configure the switch Switch0 Switch>enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#name cse Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#name ece Switch(config-vlan)#exit Switch(config)# %LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config)#interface fa0/2 BHANU SONI [091309] Page 6

Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#exit 3. Configure the router Router0 Continue with configuration dialog? [yes/no]: no Press RETURN to get started! Router>enable Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fa0/0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fa0/0 Router(config-if)#interface fa0/0.1 %LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up Router(config-subif)#encapsulation dot1q 2 Router(config-subif)#ip address 192.168.1.1 255.255.255.0 Router(config-subif)#exit Router(config)#interface fa0/0 Router(config-if)#interface fa0/0.2 %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up Router(config-subif)#encapsulation dot1q 3 Router(config-subif)#ip address 192.168.2.1 255.255.255.0 Router(config-subif)#exit

BHANU SONI [091309]

Page 7

Experiment 7
Aim : To demonstrate DHCP protocol in which the host provides IP to the clients.

Equipment: CISCO Packet Tracer Network Diagram :

Procedure:
1. Assign IP addresses PT0:IP Address: 200.200.200.3 Subnet Mask: 255.255.255.0 Default Gateway: 200.200.200.1 DNS Server: 100.100.100.100 PT1:IP Address: 200.200.200.5 Subnet Mask: 255.255.255.0 Default Gateway: 200.200.200.1 DNS Server: 100.100.100.100 PT2:IP Address: 200.200.200.4 Subnet Mask: 255.255.255.0 Default Gateway: 200.200.200.1 DNS Server: 100.100.100.100

PT3:IP Address:

200.200.200.2 Page 8

BHANU SONI [091309]

Subnet Mask: 255.255.255.0 Default Gateway: 200.200.200.1 DNS Server: 100.100.100.100 %LINK5CHANGED: Interface Vlan1, changed state to up %SYS5CONFIG_I: Configured from console by console %LINK5CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface Vlan1, changed state to up %LINK5CHANGED: Interface FastEthernet0/2, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up %LINK5CHANGED: Interface FastEthernet0/3, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up %LINK5CHANGED: Interface FastEthernet0/4, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up

BHANU SONI [091309]

Page 9

Experiment 8 & 9
Aim: Implement OSPF & RIP Routing Protocol using CISCO packet Tracer Equipment: CISCO Packet Tracer Network Diagram:

Procedure:
Assign IP addresses PC0:IP Address: 10.0.0.10 Subnet Mask: 255.0.0.0 Default Gateway: 10.0.0.1 PC1:IP Address: 30.0.0.10 Subnet Mask: 255.0.0.0 Default Gateway: 30.0.0.1 Assign IP address to the router interfaces Router0 :Continue with configuration dialog? [yes/no]: no Press RETURN to get started! Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fa0/0 Router(config-if)#ip address 20.0.0.1 255.0.0.0 Router(config-if)#no shutdown BHANU SONI [091309] Page 10

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#interface fa0/1 Router(config-if)#ip address 10.0.0.1 255.0.0.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up Router1:--- System Configuration Dialog --Continue with configuration dialog? [yes/no]: no Press RETURN to get started! Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fa0/0 Router(config-if)#ip address 20.0.0.2 255.0.0.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#interface fa0/1 Router(config-if)#ip address 30.0.0.1 255.0.0.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up 2. Configure the routers for OSPF protocol Router0:Router(config-if)#exit Router(config)#router ospf 1 Router(config-router)#network 10.0.0.0 255.0.0.0 area 1 Router(config-router)#network 20.0.0.0 255.0.0.0 area 1 Router(config-router)#exit Router(config)#exit Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, FastEthernet0/1 C 20.0.0.0/8 is directly connected, FastEthernet0/0 O 30.0.0.0/8 [110/2] via 20.0.0.2, 00:01:13, FastEthernet0/0

BHANU SONI [091309]

Page 11

Router1:Router(config)#router ospf 1 Router(config-router)#network 20.0.0.0 255.0.0.0 area 1 Router(config-router)#network 30.0.0.0 255.0.0.0 area 1 Router(config-router)#exit Router(config-router)#exit Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set O 10.0.0.0/8 [110/2] via 20.0.0.1, 00:41:53, FastEthernet0/0 C 20.0.0.0/8 is directly connected, FastEthernet0/0 C 30.0.0.0/8 is directly connected, FastEthernet0/1

RIP CONFIGURATION:Make the following changes :Router 0:Router(config-router)#router rip Router(config-router)#network 10.0.0.0 Router(config-router)#network 20.0.0.0 Router(config-router)#exit Router 1:Router(config-router)#router rip Router(config-router)#network 192.168.1.0 Router(config-router)#network 20.0.0.0 Router(config-router)#exit

BHANU SONI [091309]

Page 12

Вам также может понравиться