Advertisement
geoBadita

Untitled

Jan 17th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. interface ethernet 0
  2. ip address 10.10.10.1 255.255.255.0
  3. ip nat inside
  4.  
  5. !--- Defines Ethernet 0 with an IP address and as a NAT inside interface.
  6.  
  7.  
  8. interface ethernet 1
  9. ip address 10.10.20.1 255.255.255.0
  10. ip nat inside
  11.  
  12. !--- Defines Ethernet 1 with an IP address and as a NAT inside interface.
  13.  
  14.  
  15. interface serial 0
  16. ip address 172.16.10.64 255.255.255.0
  17. ip nat outside
  18.  
  19. !--- Defines serial 0 with an IP address and as a NAT outside interface.
  20.  
  21.  
  22. ip nat pool no-overload 172.16.10.1 172.16.10.63 prefix 24
  23. !
  24.  
  25. !--- Defines a NAT pool named no-overload with a range of addresses !--- 172.16.10.1 - 172.16.10.63.
  26.  
  27.  
  28. ip nat inside source list 7 pool no-overload
  29. !
  30. !
  31.  
  32. !--- Indicates that any packets received on the inside interface that !--- are permitted by access-list 7 has !--- the source address translated to an address out of the !--- NAT pool "no-overload".
  33.  
  34.  
  35. access-list 7 permit 10.10.10.0 0.0.0.31
  36. access-list 7 permit 10.10.20.0 0.0.0.31
  37.  
  38. !--- Access-list 7 permits packets with source addresses ranging from !--- 10.10.10.0 through 10.10.10.31 and 10.10.20.0 through 10.10.20.31.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement