Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. Estes mi /etc/network/interfaces
  2. iface lo inet loopback
  3.  
  4. # Configurar interfaces manualmente, evitando conflictos con, por ejemplo, el administrador de red
  5. auto enp3s0
  6. # iface enp3s0 inet dhcp
  7. iface enp3s0 inet static
  8. address 192.168.1.140
  9. broadcast 192.168.0.255
  10. netmask 255.255.255.0
  11. gateway 192.168.1.1
  12. dns-nameservers 8.8.8.8 8.8.4.4
  13.  
  14.  
  15.  
  16. # Configuración del puente
  17. auto bt0
  18. # iface bt0 inet dhcp
  19. iface bt0 inet static
  20. bridge_ports enp3s0
  21. address 192.168.1.143
  22. broadcast 192.168.1.255
  23. netmask 255.255.255.0
  24. gateway 192.168.1.1
  25. dns-nameservers 8.8.8.8 8.8.4.4
  26. ==============
  27. Desde Contenedor a Lan:
  28. # ping 192.168.1.140
  29. PING 192.168.1.140 (192.168.1.140) 56(84) bytes of data.
  30. ^C
  31. --- 192.168.1.140 ping statistics ---
  32. 8 packets transmitted, 0 received, 100% packet loss, time 7147ms
  33.  
  34. # traceroute 192.168.1.140
  35. traceroute to 192.168.1.140 (192.168.1.140), 30 hops max, 60 byte packets
  36. 1 * * *
  37. 2 * * *
  38. 3 * * *
  39. 4 * * *
  40. .......
  41. 30 * * *
  42. # traceroute 192.168.1.160
  43. traceroute to 192.168.1.160 (192.168.1.160), 30 hops max, 60 byte packets
  44. 1 * * *
  45. 2 * * *
  46. ......
  47. 30 * * *
  48.  
  49.  
  50. Desde Lan a contenedor:
  51.  
  52. $ ping 192.168.1.157
  53. PING 192.168.1.157 (192.168.1.157): 56 data bytes
  54. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  55. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  56. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  57. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  58. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  59. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  60. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  61. 92 bytes from d9 (192.168.1.160): Destination Host Unreachable
  62. ^C--- 192.168.1.157 ping statistics ---
  63. 10 packets transmitted, 0 packets received, 100% packet loss
  64.  
  65. $ traceroute 192.168.1.157
  66. traceroute to 192.168.1.157 (192.168.1.157), 30 hops max, 60 byte packets^[[F
  67. 1 d9 (192.168.1.160) 3074.387 ms !H 3074.334 ms !H 3074.319 ms !H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement