Ospf and Mac
Ospf and Mac
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
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
No. 4
No. 5
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
Bluetooth Connection:
C:\>ipconfig /all
Bluetooth Connection:
ROUTER 0
router0#en
router0#conf t
router0#(config-if)# no shut
router0#(config-if)#exit
router0#(config-if)# no shut
router0#(config-if)# exit
router0#(config-if)#no shut
router0#(config-if)#exit
router0#(config-if)# no shut
router0#(config-if)# exit
OSPF
ROUTER#0
en
conf t
router ospf 1
exit
exit
ROUTER#1
en
conf t
router ospf 2
exit
exit
ROUTER#2
en
conf t
router ospf 3
exit
exit
ROUTER#3
en
conf t
router ospf 4
exit
exit
ROUTER#4
en
conf t
router ospf 5
exit
exit
ROUTER#5
en
conf t
router ospf 6
exit
exit
ROUTER#6
en
conf t
router ospf 7
exit
exit
END DEVICES
nd Devices
PC0
Ipv4 = 10.0.0.2
Ipv 4 = 20.0.0.2