Advertisement
Guest User

Untitled

a guest
May 25th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. .0 /24 256
  2. .128 /25 128
  3. .192 / 26 64 host
  4. .224 / 27 32
  5. .240 / 28 16
  6. .248 / 29 8
  7. .252 / 30 4
  8. .253 / 31 2
  9.  
  10. class a: 1.0.0.0 to 126.0.0.0
  11. class b: 128.0.0.0 to 191.0.0.0
  12. class c: 192.0.0.0 to 223.0.0.0.
  13.  
  14. privatelar:
  15. Class A: 10.0.0.0
  16. Class B: From 172.16.0.0 to 172.31.0.0
  17. Class C: From 192.168.0.0 to 192.168.255.0
  18.  
  19.  
  20.  
  21. ipv4
  22. en
  23. conf t
  24. interface []
  25. ip address [ip adress] [subnet mask]
  26.  
  27. ipv4 route
  28. remote networkleri senin routeri
  29. ip route [remote'un network adresi] [subnet] çıkış interface ya da [karşı tarafın next hop ip]
  30.  
  31.  
  32. ipv6
  33. en
  34. conf t
  35. ipv6 unicast-routing
  36. interface {serial}
  37. ipv6 enable
  38. ipv6 address network_adress::x/64
  39. ipv6 address FE80::1 link-local
  40.  
  41.  
  42. RIP (etrafındaki komşuları)
  43.  
  44. router rip
  45. version 2
  46. no auto-summary
  47. network ip adresi subnetmasksız
  48.  
  49. router olmayan tarafa
  50. router rip
  51. passive-interface [interface’ın ad]
  52.  
  53.  
  54. ISP’nın aldığı router’ın diğer routerlar ile defautl route paylaşımı:
  55. * Distribute the default route to the other CompB routers within RIP updates. 

  56.  
  57.  
  58. ISP’ye giden routea
  59. static default route
  60. ip route 0.0.0.0 0.0.0.0 cıkış portu
  61.  
  62. router rip
  63. default-information originate
  64.  
  65.  
  66.  
  67. DHCP Server Ayarlama
  68.  
  69. ip dhcp excluded-address 200.102.0.1 200.102.0.10
  70. ip dhcp pool LAN1
  71. (pool içindeyken) network 200.100.0.0 255.255.255.0
  72. domain-name cisco.com
  73. default router 100.10.1.1
  74. dns-server 10.10.10.10
  75.  
  76.  
  77.  
  78.  
  79.  
  80. interface içinde, bilgisayarlara dağıtılan kısıma
  81. ip helper-adress dhcp serverin’nin ip adresi
  82.  
  83.  
  84. VLAN Tanımlama
  85. vlan 10
  86. name Data
  87. exit
  88.  
  89. tricky kısım
  90. interface'e girip
  91. switchport mode access
  92. switchport access vlan 10
  93.  
  94.  
  95. Bu VLANLAR arası bağlantı için aradaki switche girilecek commandler
  96. switchport mode trunk
  97. switchport trunk native vlan 99
  98.  
  99. switchport trunk allowed vlan 10, 20, 30, 99 //optional
  100.  
  101. trunk çift yönlü yapılacak!!!! routera yapmaya gerek yok ama switchten routera giden interfacea girip trunk yapmak lazım
  102. switchport mode trunk yeterli
  103.  
  104. vlan'a dhcp için vlan içine girmek:
  105. management vlan'dna ssh bağlantısı kurmak için (vlan 99 native management vlan saydık.)
  106. interface vlan 99
  107. ip address [network'ten kullanılmayan bir ip adres] network mask
  108. no shutdown
  109. exit
  110. bir önceki conf t ekranında
  111.  
  112. ip default gateway [bağlı olduğu network'un ip adresi]
  113.  
  114. VTY
  115. şifre belirleme
  116. switche giriyoz
  117. en
  118. conf t
  119. hostname s1
  120.  
  121. enable secret omercan -> şifre sorma şeysi
  122. enable password -> omercan
  123.  
  124. line vty 0 15
  125.  
  126. password omercan
  127.  
  128. login
  129. exit
  130.  
  131.  
  132. CONSOLE(ssh bağlantısı için)
  133. en
  134. conf t
  135. ip domain-name cisco.com
  136. cryto key generate rsa
  137. username admin secret omercan
  138.  
  139. line vty 0 15
  140. transport input ssh
  141. login local
  142. login
  143. exit
  144.  
  145. ip ssh version 2
  146.  
  147. router-on*astick
  148. en
  149. conf t
  150. interface 0/0.10(1 de olur vlan adı da olur)
  151. encapsulation dot1q [VLAN-numarasi]
  152. ip address 200.196.10.1 (o vlan'ın default gateway'i) 255.255.255.192
  153. no shutdown
  154.  
  155. Security Policies
  156. ISP
  157. access-list 1 200. network adress subnet mask
  158.  
  159. interfaceteyken
  160. ip access-group 1 out
  161.  
  162.  
  163. 1 permit any -> sadece 1’i kapatıypr
  164.  
  165.  
  166. //HW4 NAT Configs
  167. Static NAT
  168. Router üzerine
  169. ip nat inside source (isteğe bağlı tcp )static inside_ip (port) outside_ip (port)
  170. interface [inside_tarafa]
  171. ip nat inside
  172. interface [outside_tarafa]
  173. ip nat outside
  174.  
  175. PAT
  176. ip nat pool POOL_NAME 90.90.90.1 90.90.90.7 netmask 255.255.255.248
  177. access-list 1 permit 192.168.0.0 0.0.255.255
  178. ip nat inside source list 1 pool POOL_NAME
  179.  
  180. interface [inside_tarafa]
  181. ip nat inside
  182. interface [outside_tarafa]
  183. ip nat outside
  184.  
  185. PAT With Single Address
  186. ip nat inside source list 1 interface (outside) serial 0/0/0 overload
  187. access-list 1 permit 192.168.1.0 0.0.0.255
  188. interface [inside_tarafa]
  189. ip nat inside
  190. interface [outside_tarafa]
  191. ip nat outside
  192.  
  193. port security
  194. interface [int]
  195. switchport port-security -> Enable etme
  196. switchport port-security maximum 2
  197. switchport port-security mac-adress sticky
  198. switchport port-security violation shutdown|restrict|protect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement