No.
Switch>en
Switch#conf t
Switch(config)#hostname SW1
SW1(config)#int range f0/3-24
SW1(config-if-range)#shut
SW1(config-if-range)#exit
SW1(config)#exit
(Optional)
Add PC3 for f0/3
No. 2
SW1#en
SW1#conf t
SW1(config)#int f0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport port-security
SW1(config-if)#switchport port-security max 2
SW1(config-if)#switchport port-security mac-address 00D0.FF46.191B
SW1(config-if)#exit
SW1(config)#exit
PC1
ipconfig /all - to check the physical address as mac address
No. 3
SW1#en
SW1#conf t
SW1(config)#int f0/2
SW1(config-if)#switchport mode access
SW1(config-if)#switchport port-security
SW1(config-if)#switchport port-security max 2
SW1(config-if)#switchport port-security mac-address 00A.F371.79D1
SW1(config-if)#exit
SW1(config)#exit
PC2
ipconfig /all - to check the physical address as mac address
No. 4
SW1#show port-security address
Vlan Mac Address must be secureconfigured both sides
No. 5
SW1#show port-security int f0/1
Check for last source address vlan
SW1#show port-security int f0/2
Check for last source address vlan
LAST CODE
PC1
ipv4 = 10.10.10.10
subnet mask = 255.255.255.0
default gateway = 10.10.10.1
PC2
ipv4 = 10.10.10.11
subnet mask = 255.255.255.0
default gateway = 10.10.10.1 –
C:\>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:
Physical Address................: 0060.3E06.BEA7
Link-local IPv6 Address.........: FE80::260:3EFF:FE06:BEA7
IP Address......................: 0.0.0.0
Subnet Mask.....................: 0.0.0.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
DHCP Servers....................: 0.0.0.0
DHCPv6 Client DUID..............: 00-01-00-01-67-1E-CA-69-00-60-3E-06-BE-A7
Bluetooth Connection:
Connection-specific DNS Suffix..:
Physical Address................: 00D0.9758.A97B
Link-local IPv6 Address.........: ::
IP Address......................: 0.0.0.0
Subnet Mask.....................: 0.0.0.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
--More—
C:\>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:
Physical Address................: 000C.CFCC.CA38
Link-local IPv6 Address.........: FE80::20C:CFFF:FECC:CA38
IP Address......................: 0.0.0.0
Subnet Mask.....................: 0.0.0.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
DHCP Servers....................: 0.0.0.0
DHCPv6 Client DUID..............: 00-01-00-01-DC-3D-1D-A3-00-0C-CF-CC-CA-38
Bluetooth Connection:
Connection-specific DNS Suffix..:
Physical Address................: 0001.C745.EA28
Link-local IPv6 Address.........: ::
IP Address......................: 0.0.0.0
Subnet Mask.....................: 0.0.0.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
--More--
Name HOST 2^N Network Broadcast SNM Usable Host Address
SIZE Address Address
LAN A 16777214 24 10.0.0.0 10.255.255.255 /8 10.0.0.1 -10.255.255.254
LAN B 16777214 24 20.0.0.0 20.255.255.255 /8 20.0.0.1-20.255.255.254
WAN A 2 2 192.168.0.0 192.168.0.3 /30 192.168.0.1-192.168.0.2
WAN B 2 2 192.168.0.4 192.168.0.7 /30 192.168.0.5-192.168.0.6
WAN C 2 2 192.168.1.0 192.168.1.3 /30 192.168.1.1-192.168.1.2
LAN C 2 2 192.168.1.4 192.168.1.7 /30 192.168.1.5-192.168.1.6
LAN D 2 2 192.168.1.8 192.168.1.11 /30 192.168.1.9-192.168.1.10
WAN D 2 2 192.168.2.0 192.168.2.3 /30 192.168.2.1-192.168.2.2
WAN E 2 2 192.168.2.4 192.168.2.7 /30 192.168.2.5-192.168.2.6
WAN F 2 2 192.168.2.8 192.168.2.11 /30 192.168.2.9-192.168.2.10
Table 1: Variable Length Subnet Mask
Table 2: Network Interface Addressing
Device Name Interface IP Address Subnet Default Gateway
Router 0 LAN C1 Fa0/0 192.168.1.1 255.255.255.252 N/A
LAN A1 Fa0/1 10.0.0.1 255.0.0.0 N/A
WAN Se0/0/0 192.168.0.1 255.255.255.252 N/A
A1
WAN Se0/0/1 192.168.2.1 255.255.255.252 N/A
D1
Router 1 WAN Se0/0/1 192.168.0.2 255.255.255.252 N/A
A2
WAN B1 Se0/0/0 192.168.0.5 255.255.255.252 N/A
Router 2 WAN B2 Se0/0/1 192.168.0.6 255.255.255.252 N/A
WAN C1 Se0/0/0 192.168.0.9 255.255.255.252 N/A
Router 3 WAN Se0/0/0 192.168.2.2 255.255.255.252 N/A
D2
WAN E1 Se0/0/1 192.168.2.5 255.255.255.252 N/A
Router 4 WAN E2 Se0/0/0 192.168.2.6 255.255.255.252 N/A
WAN F1 Se0/0/1 192.168.29 255.255.255.252 N/A
Router 5 LAN C2 Fa0/1 192.168.1.2 255.255.255.252 N/A
LAN D1 Fa0/0 192.168.1.5 255.255.255.252 N/A
Router 6 LAN D2 Fa0/1 192.168.1.6 255.255.255.252 N/A
LAN B1 Fa0/0 20.0.0.1 255.0.0.0 N/A
WAN C2 Se0/0/1 192.168.0.10 255.255.255.252 N/A
WAN F2 Se0/0/0 192.168.2.10 255.255.255.252 N/A
PC 0 10.0.0.2 255.0.0.0 10.0.0.1
Server 0 20.0.0.2 255.0.0.0 20.0.0.1
IP ADD
ROUTER 0
router0#en
router0#conf t
router0#(config)# int fa0/1
router0#(config-if)#ip add 10.0.0.1 255.0.0.0
router0#(config-if)# no shut
router0#(config-if)#exit
router0#(config)# int s0/0/0
router0#(config-if)#ip add 192.168.0.1 255.255.255.252
router0#(config-if)# clock rate 64000
router0#(config-if)# no shut
router0#(config-if)# exit
router0#(config)# int s0/0/1
router0#(config-if)#ip add 192.168.2.1 255.255.255.252
router0#(config-if)# clock rate 64000
router0#(config-if)#no shut
router0#(config-if)#exit
router0#(config)# int fa0/0
router0#(config-if)#ip add 192.168.1.1 255.255.255.252
router0#(config-if)# no shut
router0#(config-if)# exit
OSPF
ROUTER#0
en
conf t
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
network 192.168.0.0 0.0.0.3 area 0
network 192.168.1.0 0.0.0.3 area 0
network 192.168.2.0 0.0.0.3 area 0
exit
exit
ROUTER#1
en
conf t
router ospf 2
network 192.168.0.0 0.0.0.3 area 0
network 192.168.0.4 0.0.0.3 area 0
exit
exit
ROUTER#2
en
conf t
router ospf 3
network 192.168.0.4 0.0.0.3 area 0
network 192.168.0.8 0.0.0.3 area 0
exit
exit
ROUTER#3
en
conf t
router ospf 4
network 192.168.2.0 0.0.0.3 area 0
network 192.168.2.4 0.0.0.3 area 0
exit
exit
ROUTER#4
en
conf t
router ospf 5
network 192.168.2.4 0.0.0.3 area 0
network 192.168.2.8 0.0.0.3 area 0
exit
exit
ROUTER#5
en
conf t
router ospf 6
network 192.168.1.0 0.0.0.3 area 0
network 192.168.1.4 0.0.0.3 area 0
exit
exit
ROUTER#6
en
conf t
router ospf 7
network 20.0.0.0 0.255.255.255 area 0
network 192.168.1.4 0.0.0.3 area 0
network 192.168.2.8 0.0.0.3 area 0
network 192.168.0.8 0.0.0.3 area 0
exit
exit
END DEVICES
nd Devices
PC0
Ipv4 = 10.0.0.2
Subnet Mask = 255.0.0.0
Default Gateway = 10.0.0.1
Server 0
Ipv 4 = 20.0.0.2
Subnet Mask = 255.0.0.0
Default Gatway = 10.0.0.1