Fundamentals of Computer Networks Lab Seven VLAN configuration 2/23/2019 Eng. .Haya Radwan Ghsoon
Goal Build the following network and try to send message from pc to another pc among network. Transmission Air Coaxial cable Coaxial cable Ca 2/23/2019 Eng .Haya Radwan Ghsoon
Network Graphical Interface 2/23/2019 Eng .Haya Radwan Ghsoon
Switch0 Configuration (1) You can configure switch to create vlan10 and vlan 20 in the following steps : Create vlan 10 and called it emp : Switch>enable Switch# config t Switch(config)#vlan 10 Switch(config-vlan)# name emp Switch(config-vlan)# exit 2/23/2019 Eng .Haya Radwan Ghsoon
Cont Create vlan 20 in the same switch : Switch(config)#vlan 20 Switch(config-vlan)#name course Switch(config-vlan)#exit Switch(config)# 2/23/2019 Eng .Haya Radwan Ghsoon
Cont Now we will define both ports in both virtual networks Switch(config)#interface range f0/2-3 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 20 Switch(config-if-range)#exit Switch(config)# Switch(config)#interface range f0/4 - 5 Switch(config-if-range)#switchport access vlan 10 2/23/2019 Eng .Haya Radwan Ghsoon
cont Now we will define both ports in both virtual networks in switch1 : Switch>enable Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#name emp Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#name course Switch(config)# 2/23/2019 Eng .Haya Radwan Ghsoon
cont Switch(config)#interface range f0/2 - 3 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 10 Switch(config-if-range)#exit Switch(config)#interface range f0/4 - 5 Switch(config-if-range)#switchport access vlan 20 Switch(config)#exit 2/23/2019 Eng .Haya Radwan Ghsoon
Cont. Switch(config)#interface f0/1 Switch(config-if)#switchport mode trunk Switch(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Switch(config-if)#exit 2/23/2019 Eng .Haya Radwan Ghsoon
Send message to identify IP address for pc do the following step: Click on pc Go to config Then insert the 160.60.60.0 as gatway for this pc0 . Then go to FastEthernet and insert the IP address and mask .//for example 160.60.60.1 mask already will be defined. Do the same thing for all pc but with differnce IP and according to pc gateway (FastEthernet interface ip). 2/23/2019 Eng .Haya Radwan Ghsoon
Send message // In Real Time do the following : Click on add message button . Click on PC0 then PC6 To Click on PC 3 then Click on PC4. You can run the network in simulation mod as privies tutorial. 2/23/2019 Eng .Haya Radwan Ghsoon