Professional Documents
Culture Documents
Nguyn Quc nh
Faculty of IT, Ho Chi Minh City University of Industry Sept 2012
Schedule
Part 1: Starting with GNS3 Part 2: Static routing Part 3: VLAN Part 4: LAN with STP Part 5: RIP (v2, ng) Part 6: OSPF Part 7: BGP Part 8: Multicasting Part 9: Access Control List Part 10: Review (Oh great)
2
How different?
On PT, you just can't fully operate BGP, STP, multicast But the upside of PT (so it'd be there)
Notes: Setup
For this part and also later parts, use IOS 3640 Make sure to have virtual PC (vpc) for your testing (i.e. ping) GNS3 and its components run faster under Linux than under Windows
Try to remember all commands may overload your little brain, use ? for commands supported
6
Configurations in two locations - RAM and NVRAM. The running configuration is stored in RAM. Any configuration changes to the router are made to the running-configuration and take effect immediately after the command is entered. The startup-configuration is saved in NVRAM and is loaded into the router's running-configuration when the router boots up. To save the running-configuration to the startup configuration, type the following from privileged EXEC mode (i.e. at the "Router#" prompt.)
Target:
Read (and do) up to page #40 of Mike's tutorial You have to setup and configure IP address of PCs in this network
PC1
PC2
PC3
10
Q: Could PC1 ping F0/0 of West? Why Q: Could PC1 ping S0/1 of West? Why Q: Could PC1 ping PC2? Why
11
12
13
Commands
config t interface Fa0/0 ip address [ip-address] [subnet-mask] show ip route: displace routing table in a router ip route [destination-network-address] [subnetmask] [next-hop-IP-address]: configure static route statement sh ip int brief: displace brief interfaces information
14
Lab 1
Target: Use static routing to connect all PCs in this network IP addresses of interface and PCs are shown in the picture
15
West
(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.2 (config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
Central
(config)#ip route 192.168.0.0 255.255.255.0 10.0.0.1 (config)#ip route 192.168.2.0 255.255.255.0 10.0.1.2
East
(config)#ip route 192.168.0.0 255.255.255.0 10.0.1.1 (config)#ip route 192.168.1.0 255.255.255.0 10.0.1.1
16
Command show ip route on West, East, and Central Does it reveal something? Try to explain the results See more results with ping, traceroute (router), and tracert (PC)
17
6 4 5
18
All PCs could communicate through the network show ip route ping to the internet tracert from PC
19
Part 3 VLAN
Nguyn Quc nh
20
Notes on VLAN
VLANs are assigned on the switch port. There is no VLAN assignment done on the host (usually). Assigning a host to the correct VLAN is a 2-step process:
1. Connect the host to the correct port on the switch. 2. Assign to the host the correct IP address depending on the VLAN memebership
we could utilize router as switch instead by using NM-16ESW module in router. In this way you can configure switching protocols like VLAN, STP, VTP ect. To make a switch symbol, see following slide
How?
22
1
You got a switch symbol from c3600 (c3640) Use it in the following VLAN labs
23
25
vlan 3
26
Mode Acess
Switch(config)#interface fastethernet 0/1 Switch(config-if)#switchport mode access Switch(config-if)#exit Note: The switchport mode access command should be configured on all ports that the network administrator does not want to become a trunk port.
27
Deleting a VLAN
Switch#vlan database Switch(vlan)#no vlan <vlan_number> Switch(vlan)#exit
28
VLAN Tagging
No VLAN Tagging
VLAN Tagging
To turn current port to trunking mode: (config-if)#switchport mode trunk (config-if)#switchport trunk allowed vlan all Or more selective (config-if)#switchport trunk allowed vlan 10 20
29
30
Assign following: C0 owned by an engineer C1 owned by an engineer C2 owned by a seller C3 owned by an engineer C4 owned by a seller
34
35
36
Objective
Learn how to identify which switch is elected as the root bridge. Learn how to determine the optimum bridge placement. Learn to optimize Spanning Tree convergence. Learn to change connection cost.
37
Put the switch in order as shown in the picture. In which the R4 is put in the last
4 2 3
38
By default, STP is build in VLAN 1. And R1 is the root. Why? R1#show spanning-tree
VLAN1 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 32768, address cc00.597e.0000 Configured hello time 2, max age 20, forward delay 15 We are the root of the spanning tree Topology change flag not set, detected flag not set Port 1 (FastEthernet0/0) of VLAN1 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.1. Designated root has priority 32768, address cc01.60ce.0000 Designated bridge has priority 32768, address cc01.60ce.0000 Designated port id is 128.1, designated path cost 0 BPDU: sent 24, received 0 Port 2 (FastEthernet0/1) of VLAN1 is forwarding Port path cost 19, Port priority 128, Port Identifier 128.2.
39
R1#show spanning-tree
VLAN1 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 32768, address cc00.597e.0000 Configured hello time 2, max age 20, forward delay 15 We are the root of the spanning tree Topology change flag not set, detected flag not set
R2#show spanning-tree
VLAN1 is executing the ieee compatible Spanning Tree protocol Bridge Identifier has priority 32768, address cc01.597e.0000 Configured hello time 2, max age 20, forward delay 15 Current root has priority 32768, address cc00.597e.0000 Root port is 2 (FastEthernet0/1), cost of root path is 38
40
R1 is the root. By default a Root Bridge is elected, and the one has slowest Bridge ID (determined by the Bridge Priority and the MAC address) is the winner. Want to make
41
By default, all bridge has priority of 32768 To change priority of one bridge:
Switch(config)#spanningtreevlan<vlanlist> priority<bridgepriority>
43
What happens when the port of R4 which links to R2 has the cost of 15?
44
STP uses several timers to recover from topology changes Modifying STP timers
45