CMIT 350 Name:_____________________________ VLANs in one switch. Create the network of figure ptSwitch1.png PC0 and PC1 are in network 192.168.0.0/24 PC2 and PC3 are in network 192.168.1.0/24 Can PC0 ping PC1:_____ (same subnet) Can PC2 ping PC3:_____ (same subnet) Can PC0 ping PC2:_____ (different subnets in same switch: bad idea) Why can't PCs0/1 ping PCs2/3:_____________________________ Where does the packet/frame from PC0 to PC2 go:__________ that's right, it doesn't even leave PC0 because it's destined for a different network and PC0 doesn't have a default gateway so no route for the packet. and nothing even goes to the switch. What VLAN are all ports of SW1 in:____ What command did you use to find this out:_______________ It's not good practice to have different IP networks on one switch in the same VLAN. So let's have one IP network. Change PCs2/3 to be in the 192.168.0.0/24 network with PCs0/1. [This needs to be done in the Desktop|IP Configuration ??] Can PC0 ping PC2:_____ (same subnet now) Create two VLANS: 2 and 3 in the switch. Assign the switch ports to PCs0/1 into VLAN 2 Assign the switch ports to PCs2/3 into VLAN 3 check the assignment with "show vlan brief" What does "show run" say about Fa0/1: [I had to Power Cycle Devices and recreate vlans and port assignments to them in the switch ??] Can PC0 ping PC1:_____ (same subnet, same VLAN) Can PC2 ping PC3:_____ (same subnet, same VLAN) Can PC0 ping PC2:_____ (same subnet, different VLANs: bad idea) PC0 arps for PC2's IP but the switch only broadcasts into VLAN 2 and so PC2 doesn't receive the arp request and so PC0 doesn't get any arp reply and so doesn't send the ping packets. Even if PC0 could handcraft a frame with PC2's MAC as destination the frame wouldn't get to PC2 because the switch would only (broadcast) send it in VLAN 2. Paste the "show mac-address dynamic": It's not good practice to have same subnet in different VLANs. Change PCs2/3 to be in their own 192.168.1.0/24 network. So each subnet is in its own VLAN. Can PC0 ping PC1:_____ (same subnet, same VLAN) Can PC2 ping PC3:_____ (same subnet, same VLAN) Can PC0 ping PC2:_____ (different subnets, different VLANs: good idea) Here PC0 doesn't even arp for PC2 because it knows it's in another subnet. Notice that the switch is oblivious of IP addresses. ***************************************************************** Now add a router. Connect it to the switch with a fiber link. PT's Generic Router only supports 802.1Q trunking, so use the configuration of page 180 of ICND2 book. Do the encapsulation command before assigning IP address to the subinterface. int f4/0.2 encapsulation dot1q 2 ip addr 192.168.0.1 255.255.255.0 then similar for subinterface .3 and VLAN 3 in 192.168.1.0 subnet. Do a "no shutdown" on the f4/0 interface. In the switch, what is the output of the "show int trunk":____________ meaning there is no trunking now. In the output of the "show int INT switchport" where INT is the interface you're using to link to the router, what is the value of the Operational Mode:______________ and the Operational Trunking Encapsulation:_______________ Configure the interface with "switchport mode trunk" so it will use trunking (router doesn't negotiate?) Now what is the value of the Operational Mode:______________ and the Operational Trunking Encapsulation:_______________ of the "show int INT switchport". Paste the two entries of the router's routing table: In PC0: can it ping PC1 in its own subnet:_______ can it ping PC2 in the other subnet/VLAN:_______ why not (unrelated to trunking etc):________________________ Configure the PCs' default gateway. can it ping PC2 in the other subnet/VLAN:_______ can it ping R1's interface in the other subnet/VLAN:_______ Paste the tracert of PC0 to PC2: