Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Ficheros Debian 9 Host
  2. ----------------------------
  3.  
  4. Fichero: /etc/network/interfaces
  5. //////////////////////////////////////////////
  6. # This file describes the network interfaces available on your system
  7. # and how to activate them. For more information, see interfaces(5).
  8.  
  9. source /etc/network/interfaces.d/*
  10.  
  11. auto lo
  12. iface lo inet loopback
  13.  
  14.  
  15. # The loopback network interface
  16. auto lo enp3s0
  17. iface lo inet loopback
  18.  
  19. # Configurar interfaces manualmente, evitando conflictos con, por ejemplo, el administrador de red
  20. auto enp3s0
  21. # iface enp3s0 inet dhcp
  22. iface enp3s0 inet static
  23. address 192.168.0.140
  24. broadcast 192.168.0.255
  25. gateway 192.168.0.1
  26. dns-nameservers 8.8.8.8 8.8.4.4
  27. # Configuración del puente
  28. auto bt0
  29. # iface bt0 inet dhcp
  30. iface bt0 inet static
  31. bridge_ports enp3s0
  32. address 192.168.0.143
  33. broadcast 192.168.0.255
  34. netmask 255.255.255.0
  35. gateway 192.168.0.1
  36. dns-nameservers 8.8.8.8 8.8.4.4
  37. //////////////////////////////////////////////
  38.  
  39. Fichero: /etc/resolv.conf
  40. --------------------------------
  41. nameserver 8.8.8.8
  42. nameserver 8.8.4.4
  43.  
  44. /////////////////////////////////////////////
  45.  
  46.  
  47. *****************************************************************************
  48.  
  49. Ficheros Contenedor ***********
  50. -------------------------------
  51.  
  52. :~$ sudo lxc-ls --fancy
  53. NAME STATE AUTOSTART GROUPS IPV4 IPV6
  54. *********** RUNNING 0 - 192.168.0.18 ::216:3eff:fe43:24c4
  55.  
  56. ///////////////////////////////////////////////
  57. File: /etc/network/interfaces
  58. -----------------------------------
  59. auto lo
  60. iface lo inet loopback
  61.  
  62. auto eth0
  63. iface eth0 inet dhcp
  64.  
  65. ////////////////////////////////////////////////
  66. File: /etc/resolv.conf
  67. -----------------------------
  68. nameserver 200.73.96.167
  69. nameserver 190.104.12.43
  70.  
  71. ///////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement