Advertisement
MysteriousWolf

IPV6, VLAN, TELNET, SSH

May 15th, 2018
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. --------------------- IPv6 ---------------------
  2. • Router: ipv6 unicast-routing
  3. • Interface: - ipv6 enable; ipv6 address <IPv6 address>/<mask> or
  4. - ipv6 address <IPv6 network>/<mask> eui-64
  5. • Static routing: ipv6 route <remote network>/<mask> <next hop>
  6. • Rip routing: ipv6 rip <name> enable (for every interface, same name for same network)
  7. • Rip routing: ipv6 router rip <name> (for the entire router)
  8.  
  9. --------------------- VLAN ---------------------
  10. • Defining VLANs (on all switches that will operate with them): vlan <vlan id>; optional: name <name>
  11. • Interfaces: switchport mode <acceess/trunk>
  12. • If the int is in access mode (endpoints): switchport access vlan <vlan id>
  13. • Multiple interfaces: interface range fastEthernet 0/<range: eg. 1-4>
  14. • Show current vlans: show vlan
  15.  
  16. --------------------- ROUTER (SSH/TELNET) ---------------------
  17. SSH:
  18. • enable secret <secret password> (global password)
  19. • hostname <hostname>
  20. • ip domain-name <domain>
  21. • crypto key generate rsa modulus 1024
  22. (Key name is: <hostname>.<domain>)
  23. • username <username> secret <secret>
  24. • line vty 0 4
  25. • transport input ssh
  26. • login local
  27. TELNET:
  28. • enable secret <secret password>
  29. • hostname <hostname>
  30. • username <username> secret <secret>
  31. • line vty 0 4
  32. • transport input telnet
  33. • login local
  34.  
  35. --------------------- SWITCH ---------------------
  36. SSH:
  37. • enable secret <secret password>
  38. • username <username> secret <secret>
  39. • interface vlan <vlan-id>
  40. • no shutdown
  41. • ip domain-name <domain>
  42. • crypto key generate rsa 1024
  43. • ip ssh version 2
  44. • line vty 0 4
  45. • transport input ssh
  46. • login local
  47. --------------------------------------------------
  48. USMERJANJE MED VLAN-I Z USMERJEVALNIKOM
  49. Za vsak VLAN nastavimo:
  50. • Router (config)#interface fastEthernet 0/1. <št.Vlan>
  51. • Router (config-subif)#encapsulation dot1q <št.Vlan>
  52. • Router (config-subif)#ip address <ip številka> <maska omrežja>
  53. Na vmesniku stikala, ki je povezan z usmerjevalnikom, nastavimo vlan trunk.
  54. USMERJANJE MED VLAN-I Z L3 STIKALOM
  55. Vključimo usmerjanje: ip routing
  56. Vmesniki za usmerjanje na usmerjevalniku
  57. • no switchport
  58. • no shutdown
  59. • ip address ip maska
  60. Dodelitev IP naslovov za posamezen vLAN:
  61. • interface vlan<št. vlan>
  62. • ip address ip maska
  63. • no shutdown
  64. Na L3 stikalu lahko kreiramo VLAN-e na enak način kot na L2 stikalu.
  65. Na vmesniku stikala, ki so povezani z L3 stikalom, nastavimo vlan trunk.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement