Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. auto eth0
  2. iface eth0 inet static
  3. address 192.168.2.155
  4. gateway 192.168.2.51
  5. netmask 255.255.255.0
  6. dns-nameservers 192.168.2.180
  7. dns-domain exaple.com
  8.  
  9. auto eth1
  10. iface eth1 inet static
  11. address 192.168.2.156
  12. netmask 255.255.255.0
  13.  
  14. sudo sysctl -w net.ipv4.conf.all.arp_announce=1
  15. sudo sysctl -w net.ipv4.conf.all.arp_ignore=2
  16. sudo sysctl -w net.ipv4.conf.all.rp_filter=0
  17.  
  18. sysctl -w net.ipv4.conf.all.arp_ignore=1
  19. sysctl -w net.ipv4.conf.all.arp_announce=2
  20. sysctl -w net.ipv4.conf.all.arp_filter=1
  21.  
  22. net.ipv4.conf.default.rp_filter = 2
  23.  
  24. sudo sysctl -w net.ipv4.conf.all.arp_announce=1
  25. sudo sysctl -w net.ipv4.conf.all.arp_ignore=2
  26. sudo sysctl -w net.ipv4.conf.all.rp_filter=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement