Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. sudo su
  2. vim /etc/network/interfaces
  3. ! WPISUJEMY TO W PLIKU !
  4.  
  5. # The primary network interface
  6. auto eth0
  7. iface eth0 inet static
  8. address 192.168.0.62
  9. netmask 255.255.255.0
  10. gateway 192.168.0.1
  11. dns-nameservers 192.168.0.62 192.168.0.1 8.8.8.8
  12. dns-search home.local work.local
  13.  
  14. #2nd network interface
  15. auto eth0:1
  16. iface eth0:1 inet static
  17. address 192.168.0.63
  18. netmask 255.255.255.0
  19. ! wq
  20. ifdown eth0
  21. ifup eth0
  22. ifup eth0:1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement