TEXT 27
Data Communication & Networks - Lecture 3 Guest on 14th March 2022 12:08:59 PM
  1. Switch and end device can communicate with MAC Address
  2. But when two end devices needs to communicate, they need an IPv4 address
  3.  
  4. switch is layer 2 device so it does not need to be configured
  5. however, router needs to be configured.
  6.  
  7. show startup-config - to show the startup config
  8.  
  9. copy running-config startup-config - to store the running config into the startup-config
  10. another command is write memory which performs same function.
  11.  
  12.  
  13. show run or show running-config
  14.  
  15. enable secret 123456
  16.  
  17.  
  18. conf t - short form to get inside configure terminal
  19.  
  20. SWITCH only has VLAN
  21. Virtual Local Area Network
  22.  
  23. to enter into interface just write:
  24. interface vlan1
  25.  
  26. to configure ip address just write
  27. ip address 192.168.1.253 255.255.255.0
  28. write no shutdown so that the port can start running
  29. description thedescription
  30.  
  31. the ip address is given to the switch so that it can be remotely accessed and unique identity is given to it.
  32.  
  33. line vty 0 4
  34. 5 users should be able to virtually access.
  35.  
  36. password 1234567
  37. login
  38.  
  39. telnet is used to remotely access
  40.  
  41. ALL STEPS TO SETUP SWITCH 1:
  42. SWITCH_1#show running-config
  43. Building configuration...
  44.  
  45. Current configuration : 1287 bytes
  46. !
  47. version 15.0
  48. no service timestamps log datetime msec
  49. no service timestamps debug datetime msec
  50. no service password-encryption
  51. !
  52. hostname SWITCH_1
  53. !
  54. enable secret 5 $1$mERr$H7PDxl7VYMqaD3id4jJVK/
  55. enable password 1234
  56. !
  57. !
  58. !
  59. no ip domain-lookup
  60. !
  61. !
  62. !
  63. spanning-tree mode pvst
  64. spanning-tree extend system-id
  65. !
  66. interface FastEthernet0/1
  67. !
  68. interface FastEthernet0/2
  69. !
  70. interface FastEthernet0/3
  71. !
  72. interface FastEthernet0/4
  73. !
  74. interface FastEthernet0/5
  75. !
  76. interface FastEthernet0/6
  77. !
  78. interface FastEthernet0/7
  79. !
  80. interface FastEthernet0/8
  81. !
  82. interface FastEthernet0/9
  83. !
  84. interface FastEthernet0/10
  85. !
  86. interface FastEthernet0/11
  87. !
  88. interface FastEthernet0/12
  89. !
  90. interface FastEthernet0/13
  91. !
  92. interface FastEthernet0/14
  93. !
  94. interface FastEthernet0/15
  95. !
  96. interface FastEthernet0/16
  97. !
  98. interface FastEthernet0/17
  99. !
  100. interface FastEthernet0/18
  101. !
  102. interface FastEthernet0/19
  103. !
  104. interface FastEthernet0/20
  105. !
  106. interface FastEthernet0/21
  107. !
  108. interface FastEthernet0/22
  109. !
  110. interface FastEthernet0/23
  111. !
  112. interface FastEthernet0/24
  113. !
  114. interface GigabitEthernet0/1
  115. !
  116. interface GigabitEthernet0/2
  117. !
  118. interface Vlan1
  119.  description VLAN-IPv4
  120.  ip address 192.168.1.253 255.255.255.0
  121. !
  122. banner motd ^CAuthorized access only^C
  123. !
  124. !
  125. !
  126. line con 0
  127.  password 1234
  128.  login
  129. !
  130. line vty 0 4
  131.  password 1234567
  132.  login
  133. line vty 5 15
  134.  login
  135. !
  136. !
  137. !
  138. !
  139. end

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.