Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. conf t
  2. access-list 10 deny 192.168.50.0 0.0.0.255
  3. access-list 10 permit any
  4. end
  5.  
  6. # VLAN 1 DEFAULT NATIVE
  7. conf t
  8. vlan 1
  9. interface vlan 1
  10. ip address 192.168.0.1 255.255.255.0
  11. ip nat inside
  12. ip access-group 10 out
  13. end
  14.  
  15. # VLAN 20
  16. conf t
  17. vlan 20
  18. name Dev
  19. interface vlan 20
  20. ip address 192.168.20.1 255.255.255.0
  21. ip nat inside
  22. ip access-group 10 out
  23. end
  24.  
  25. $ ping 192.168.0.200
  26. PING 192.168.0.200 (192.168.0.200) 56(84) bytes of data.
  27. From 192.168.50.1 icmp_seq=1 Packet filtered
  28. From 192.168.50.1 icmp_seq=2 Packet filtered
  29. From 192.168.50.1 icmp_seq=3 Packet filtered
  30.  
  31. $ ping 192.168.0.1
  32. PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
  33. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=17.9 ms
  34. 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=30.4 ms
  35.  
  36. $ ping 192.168.20.1
  37. PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
  38. 64 bytes from 192.168.20.1: icmp_seq=1 ttl=255 time=2.73 ms
  39. 64 bytes from 192.168.20.1: icmp_seq=2 ttl=255 time=23.7 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement