Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network interface stops working on addition of a bridge.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Thu Oct 10, 2013 8:23 am    Post subject: Network interface stops working on addition of a bridge. Reply with quote

First, create a tap interface --

Code:
ip tuntap add mode tap veth


Stop network manager

Code:
/etc/init.d/NetworkManager stop


down all interfaces --

Code:
ifconfig eth1 down
ifconfigh veth down


Add bridge --

Code:
brctl addbr eth1_veth


Bridge eth1 and veth --

Code:
brctl addif eth1_veth eth1 veth


run dhcpcd on eth1 --

Code:
dhcpcd[6316]: version 5.6.4 starting
dhcpcd[6316]: eth1: carrier lost
dhcpcd[6316]: eth1: carrier acquired
dhcpcd[6316]: eth1: sending IPv6 Router Solicitation
dhcpcd[6316]: eth1: sendmsg: Cannot assign requested address
dhcpcd[6316]: eth1: rebinding lease of 192.168.1.2
dhcpcd[6316]: eth1: sending IPv6 Router Solicitation
dhcpcd[6316]: eth1: broadcasting for a lease
dhcpcd[6316]: eth1: sending IPv6 Router Solicitation
dhcpcd[6316]: eth1: sending IPv6 Router Solicitation
dhcpcd[6316]: eth1: no IPv6 Routers available
dhcpcd[6316]: timed out
dhcpcd[6316]: allowing 8 seconds for IPv4LL timeout
dhcpcd[6316]: eth1: probing for an IPv4LL address
dhcpcd[6316]: eth1: checking for 169.254.229.90
dhcpcd[6316]: eth1: using IPv4LL address 169.254.229.90
dhcpcd[6316]: forked to background, child pid 6369


Note, 169.254.229.90 is unheard of in my LAN, so this's just a random IP address. The DHCP server (built in a route) is working fine for other node in the LAN.

Code:
ifconfig eth1_veth up


does not help. Networkmanager fails to configure the interface for dhcp.

Forcing a valid IP does work, but the interface can't do any communication to anything.

The moment I delete the bridge eth1_veth, everything starts working.
_________________
My blog
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Oct 10, 2013 10:19 am    Post subject: Reply with quote

Check out Modular Networking. Further eth1 and veth should be up when you bring the bridge's link up. Why do you run dhcpcd against eth1 and not the bridge interface?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Thu Oct 10, 2013 3:40 pm    Post subject: Reply with quote

massimo wrote:
Further eth1 and veth should be up when you bring the bridge's link up. Why do you run dhcpcd against eth1 and not the bridge interface?


Woah! I didn't know that! Thanks!
_________________
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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