Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemas con network bridge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
Theasker
l33t
l33t


Joined: 18 Nov 2006
Posts: 656
Location: Zaragoza (Spain)

PostPosted: Sat Dec 10, 2016 10:27 am    Post subject: Problemas con network bridge Reply with quote

Tengo un problema con la red y no se muy bien por donde tirar.

Sin hacer ningún cambio que no sean actualizaciones rutinarias (o eso creo):

No puedo hacer ping ni al router

Code:
# rc-service net.br0 start
 * Caching service dependencies ...
File descriptor 3 (pipe:[37704]) leaked on lvm invocation. Parent PID 5601: /bin/sh
  /run/lvm/lvmetad.socket: connect failed: No existe el fichero o el directorio
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.                                                                           [ ok ]
 * Bringing up interface br0
 *   Destroying bridge br0 ...                                                                                                                        [ ok ]
 *   Creating bridge br0 ...
 *   Setting forward_delay: 0
 *   Setting hello_time: 1000
 *   Adding ports to br0
 *     enp14s0 ...                                                                                                                                    [ ok ]
 *     tap0 ...                                                                                                                                       [ ok ]
 *     tap1 ...                                                                                                                                       [ ok ]
 *   192.168.0.69/24 ...                                                                                                                              [ ok ]
 *   Adding routes
 *     default via 192.168.0.1 ...                                                                                                                    [ ok ]
 *   Waiting for IPv6 addresses (5 seconds) ..



Code:

#config_eth0="192.168.0.69/24"
#routes_eth0="default via 192.168.0.1"
#dns_servers_eth0="192.168.0.1 8.8.8.8"

#config_enp14s0="192.168.0.69 netmask 255.255.255.0 brd 192.168.0.255"
#routes_enp14s0="default via 192.168.0.1"
#dns_servers_enp14s0="192.168.0.1 8.8.8.8 8.8.4.4"


bridge_br0="enp14s0 tap0 tap1"
#brctl_br0="setfd 0 sethello 0 stp off"
rc_net_br0_need="net.tap0 net.tap1"

config_br0="192.168.0.69/24"
routes_br0="default via 192.168.0.1"
dns_servers_br0="208.67.222.222 208.67.220.220"
#dns_servers_br0="8.8.8.8 8.8.4.4"

bridge_forward_delay_br0=0
bridge_hello_time_br0=1000

config_tap0="null"
tuntap_tap0="tap"

#mac_tap0="00:00:00:00:00:00"

config_tap1="null"
tuntap_tap1="tap"

#mac_tap1="00:00:00:00:00:01"

config_enp14s0="null"

tunctl_tap0="-u theasker"
tunctl_tap1="-u theasker"




Code:
TheaskerGentoo init.d # ping www.google.com
PING www.google.com (216.58.201.132) 56(84) bytes of data.
64 bytes from 216.58.201.132: icmp_seq=1 ttl=56 time=19.8 ms
64 bytes from mad06s25-in-f132.1e100.net (216.58.201.132): icmp_seq=40 ttl=56 time=19.7 ms
64 bytes from 216.58.201.132: icmp_seq=41 ttl=56 time=20.2 ms
From 192.168.0.69 icmp_seq=90 Destination Host Unreachable
From 192.168.0.69 icmp_seq=91 Destination Host Unreachable
From 192.168.0.69 icmp_seq=92 Destination Host Unreachable
From 192.168.0.69 icmp_seq=93 Destination Host Unreachable
64 bytes from mad06s25-in-f132.1e100.net (216.58.201.132): icmp_seq=122 ttl=56 time=19.7 ms
64 bytes from mad06s25-in-f132.1e100.net (216.58.201.132): icmp_seq=133 ttl=56 time=20.7 ms
From 192.168.0.69 icmp_seq=182 Destination Host Unreachable
From 192.168.0.69 icmp_seq=183 Destination Host Unreachable
From 192.168.0.69 icmp_seq=184 Destination Host Unreachable
From 192.168.0.69 icmp_seq=185 Destination Host Unreachable
^C64 bytes from 216.58.201.132: icmp_seq=201 ttl=56 time=19.8 ms

--- www.google.com ping statistics ---
201 packets transmitted, 6 received, +8 errors, 97% packet loss, time 380368ms

_________________
"Oigo y olvido. Veo y recuerdo. Hago y comprendo"
Back to top
View user's profile Send private message
esteban_conde
Veteran
Veteran


Joined: 04 Jun 2003
Posts: 1670

PostPosted: Mon Dec 12, 2016 5:55 pm    Post subject: Reply with quote

Quote:
#config_eth0="192.168.0.69/24"
#routes_eth0="default via 192.168.0.1"
#dns_servers_eth0="192.168.0.1 8.8.8.8"

#config_enp14s0="192.168.0.69 netmask 255.255.255.0 brd 192.168.0.255"


Prueba a descomentar una de esas lineas eth0 ó enp14s0 según sea que te nombre la tarjeta fisica de la red.

Creo que es la única manera de que el bridge tenga salída al router ya que estas asociando enp14s0 tap0 y tap1 pero enp14s0 no tiene ip asignada.

Lo que es raro es que aunque con errores te responda al ping el servidor de google.
_________________
Saludos a tod@s, Esteban.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum