TEXT 33
Data Communication and Networks Guest on 25th April 2022 10:35:21 AM
  1. Connecting different VLANs
  2. By using Router on a stick
  3.  
  4. It is also called inter vlan routing.
  5.  
  6. Switch Port Security
  7.  
  8. When the security is placed and the user tries to connect to that port
  9. Three violations:
  10. Shutdown port
  11. Restrict the port (Limited Internet Access)
  12. Protect - restrict the port and logs all the details such as MAC Address, Name
  13.  
  14. Port security can be implemented only on switch, but not on router.
  15. Shutdown the ports which are unused
  16. int range f0/1-10
  17. shutdown
  18.  
  19. to shutdown all ports from 1 to 10
  20.  
  21.  
  22. to enable port security
  23. int f0/1
  24. switchport port-security maximum 1
  25. 1 means 1 device
  26. 1 mac address allowed
  27. switchport port-security mac-address 0001.421C.751C
  28. switchport port-security violation shutdown
  29.  
  30.  
  31. If switch automatically shuts down the port due to violation, the port needs to be opened manually through the switch
  32. shutdown
  33. no shutdown
  34.  
  35. switchport port-security mac-address sticky
  36. the first device that access will be the mac address that will be set permanently.
  37.  
  38. Router has limited amount of ports
  39. so the interface will be divided into the sub interface ports in Router on a stick
  40. Make sure the switch is in trunk mode which is sending the data of different vlan
  41.  
  42. when first configuring the router, the interface
  43. no ip address
  44. no shutdown
  45.  
  46. int g 0/0.1
  47. encapsulation dot1Q 1 - to get the data of VLAN 1
  48. ip address 192.168.1.1 255.255.255.0
  49.  
  50. setting the IP address of the gateway

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.