Advertisement
Guest User

Untitled

a guest
May 25th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. 1. sudo su
  2. 2. apt-get update
  3. 3. apt-get install
  4. 4. apt-get install isc-dhcp-server
  5.  
  6. zad1.
  7. edytujemy interfejs sieciowy
  8. sudo nano /etc/network/interfaces
  9.  
  10. auto eth2
  11. iface eth2 inet static
  12. address 192.168.11.x
  13. netmask 255.255.255.0
  14. network 192.168.11.0
  15. broadcast 192.168.11.255
  16.  
  17. resetujemy karte sieciową
  18.  
  19. cd/etc/dhcp
  20. nano dhcpd.conf
  21.  
  22.  
  23. 5 cp dhcp.conf /home/student
  24. 1 subnet 192.168.11.0 netmask 255.255.255.0{
  25. 2 range 192.168.11.xx 192.168.11.xx;
  26. 3 option routers 192.168.11.1;
  27. option domain-name-servers 8.8.8.8;
  28. 4 option broadcast-address 192.168.11.0;
  29. default-lease-time 600;
  30. max-lease-time 7200;
  31. }
  32. zad2.
  33.  
  34. A
  35. B
  36.  
  37. zad3.
  38. 1 nano /etc/network/interfaces
  39. auto eth0:1
  40. iface eth0:1 inet static
  41. address 10.10.x.2
  42. netmask 255.255.255.192
  43. gateway 10.10.x.254
  44.  
  45. ifconfig eth0:1 down/up
  46. 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement