Advertisement
SIKER_98

skrypt_lab_4_sk

Apr 3rd, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. //tworzenie vlan switch
  2. configure terminal
  3. vlan 30
  4. name Nazwa1
  5. vlan 40
  6. name Nazwa2
  7. vlan 50
  8. name Nazwa3
  9. end
  10.  
  11.  
  12. //dodawanie portow do vlan switch
  13. configure terminal
  14. interface fastethernet 0/1
  15. switchport mode access
  16. switchport access vlan 30
  17. interface fastethernet 1/1
  18. switchport mode access
  19. switchport access vlan 40
  20. interface fastethernet 2/1
  21. switchport mode access
  22. switchport access vlan 50
  23. interface fastethernet 3/1
  24. switchport mode access
  25. switchport access vlan 30
  26. interface fastethernet 4/1
  27. switchport mode access
  28. switchport access vlan 40
  29. interface fastethernet 5/1
  30. switchport mode access
  31. switchport access vlan 50
  32. interface fastethernet 6/1
  33. switchport mode access
  34. switchport access vlan 30
  35. interface fastethernet 7/1
  36. switchport mode access
  37. switchport access vlan 40
  38. interface fastethernet 8/1
  39. switchport mode access
  40. switchport access vlan 50
  41. end
  42.  
  43.  
  44. //dodawanie adresow router
  45. configure terminal
  46. interface FastEthernet0/0
  47. no shutdown
  48. ip address 172.17.0.37 255.255.255.0
  49. interface fastethernet1/0
  50. no shutdown
  51. ip address 172.17.0.38 255.255.255.0
  52. interface fastethernet2/0
  53. no shutdown
  54. ip address 172.17.0.39 255.255.255.0
  55. end
  56.  
  57.  
  58. //konfigureacja interfejsow routera - error
  59. configure terminal
  60. interface FastEthernet0/0
  61. no shutdown
  62. ip address 172.17.0.1 255.255.255.0
  63. interface FastEthernet1/0
  64. no shutdown
  65. ip address 172.17.1.1 255.255.255.0
  66. interface FastEthernet2/0
  67. no shutdown
  68. ip address 172.17.2.1 255.255.255.0
  69. end
  70.  
  71.  
  72. //trunk router
  73. configure terminal
  74. interface fastEthernet0/0.3
  75. encapsulation dot1Q 30
  76. ip address 172.17.0.1 255.255.255.0
  77. interface fastEthernet0/0.4
  78. encapsulation dot1Q 40
  79. ip address 172.17.1.1 255.255.255.0
  80. interface fastEthernet0/0.5
  81. encapsulation dot1Q 50
  82. ip address 172.17.2.1 255.255.255.0
  83.  
  84. //trunk switch
  85.  
  86. configure terminal
  87. interface fastEthernet 0/1
  88. switchport mode trunk
  89. no shutdown
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement