Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1.  
  2. (Initial Configuration)
  3. -----------------------------------------
  4. en
  5. config t
  6. hostname MAIN_rtr
  7. banner motd $Unauthorized Access is strictly prohibited anybody caught will be dealt with the full extent of the law$
  8. line con 0
  9. password cisco
  10. login
  11. line vty 0 4
  12. password cisco
  13. login
  14. exit
  15. enable secret cisco
  16. service password-encryption
  17. ___________________________________________
  18. Creating vlan with port security
  19. --------------------------------------------
  20. vlan 100
  21. name Finance
  22. int range fa0/6-10
  23. swi mode acc
  24. switchport port-security
  25. switchport port-security maximum 1
  26. switchport port-security mac-address sticky
  27. switchport port-security violation shutdown
  28. swi acc vlan 100
  29. __________________________________________
  30. to shutdown port
  31. ------------------------------------------
  32. int fa0/5
  33. shut
  34. int range fa05-24,gig0/1-2
  35. __________________________________________
  36. VLAN TRUNKING
  37. ena
  38. config t
  39. int g0/1
  40. switchport mode trunk
  41. switchport trunk allowed vlan 1-100
  42. ________________________________________________________
  43. ip helper address
  44. int gig0/1.10
  45. ip helper-address 205.31.128.1
  46. ________________________________________________________
  47. Router on Stick
  48.  
  49. (on router)
  50. int g0/0
  51. no shut
  52.  
  53. int g0/0.100
  54. encapsulation dot1Q 100
  55. ip add 178.4.224.1 255.255.252.0(vlan gateway)
  56.  
  57. int g0/0.200
  58. encapsulation dot1Q 200
  59. ip add 178.4.228.1 255.255.252.0(vlan gateway)
  60.  
  61. int g0/0.300
  62. encapsulation dot1Q 100
  63. ip add 178.4.232.1 255.255.252.0(vlan gateway)
  64.  
  65. (After configuring the router go to the switch port
  66. where the rotuer is connected)
  67. int fa0/24
  68. switchport mode access
  69. switchport mode trunk
  70. ______________________________________________________
  71. DHCP
  72. conf t
  73. ip dhcp pool vlan10
  74. network (network address) (subnet mask)
  75. default-router (default gateway adress)
  76. ip dhcp excluded-address ( first ip address) - (last ip address)
  77. ___________________________________________________________
  78. EIGRP
  79. ------------------------------------------------------------
  80. 1-6500...
  81. router eigrp (AN - autonomous number)
  82. no auto-summary
  83. network (WM - wildcard mask) inverse of the subnet1
  84.  
  85. router eigrp 10
  86. no auto-summary
  87. network 192.168.10.64 0.0.0.255
  88. network 192.168.10.96 0.0.0.255
  89. ___________________________________________________________
  90. OSPF
  91. -----------------------------------------------------------
  92. router ospf 1
  93. network (network address) (wildcardmask) area #
  94. network 192.168.10.96 0.0.0.255 area 51
  95. ___________________________________________________________
  96. Redistribution ospf to eigrp
  97. -----------------------------------------------------------
  98. router ospf 1
  99. redistribute eigrp 1 subnets
  100. __________________________________________________________
  101. Redistribution eigrp to ospf
  102. ----------------------------------------------------------
  103. show interface serial0/0/0(showing bw)
  104. redistribute ospf 1 metric 1500 200 255 1 1500
  105. __________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement