Advertisement
Guest User

Untitled

a guest
May 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. Okay, here is what I did on one switch:
  2.  
  3. Switch>enable
  4. Switch#conf te
  5. Enter configuration commands, one per line. End with CNTL/Z.
  6. Switch(config)#vlan 10
  7. Switch(config-vlan)#name a
  8. Switch(config-vlan)#vlan 20
  9. Switch(config-vlan)#name b
  10. Switch(config-vlan)#vlan 30
  11. Switch(config-vlan)#name c
  12. Switch(config-vlan)#vlan 50
  13. Switch(config-vlan)#name management
  14. Switch(config-vlan)#int fa0/1-5
  15. ^
  16. % Invalid input detected at '^' marker.
  17.  
  18. Switch(config-vlan)#int range fa0/1-5
  19. Switch(config-if-range)#swit mode trunk
  20.  
  21. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
  22. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
  23. Switch(config-if-range)#swit trunk nati vlan 50
  24. Switch(config-if-range)#no shut
  25. Switch(config-if-range)#int fa0/6
  26. Switch(config-if)#swit acc vlan 10
  27. Switch(config-if)#no shut
  28. Switch(config-if)#
  29. %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (50), with Switch FastEthernet0/1 (1).int fa0/7
  30. Switch(config-if)#swit acc vlan 20
  31. Switch(config-if)#int fa0/8
  32. Switch(config-if)#swit acces vlan 30
  33. Switch(config-if)#int vlan 50
  34. Switch(config-if)#
  35. %LINK-5-CHANGED: Interface Vlan50, changed state to up
  36. %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up
  37. Switch(config-if)#ip add 192.168.1.1 255.255.255.0
  38. Switch(config-if)#no shut
  39. Switch(config-if)#end
  40. Switch#
  41. %SYS-5-CONFIG_I: Configured from console by console
  42. Switch#ping 192.168.1.2
  43.  
  44. Type escape sequence to abort.
  45. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
  46. !!!!!
  47. Success rate is 100 percent (5/5), round-trip min/avg/max = 2/6/19 ms
  48.  
  49. Switch#
  50.  
  51. I did the same on the other switch, with the exception of the last octet in vlan 50's ip address being slightly different, i.e. 2 instead of 1
  52.  
  53.  
  54. Now, if you add a PC on fa0/6 of both switches and give them an IP address of 192.168.10.1 and 192.168.10.2, SM 255.255.255.0, and no GW, you will have connection between those PC's. This will work the same for all the other VLAN's and switch ports.
  55. NOTE: these are just sample IP-addresses. You can choose whichever ones you like.
  56.  
  57. Well, I hope this helps you! If it is still unclear, I'll just have to show you personally when we get a chance again to do so :D
  58.  
  59. Have a good day, sir!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement