Skip to main content
typo-fixes
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I used to connect my ubuntuUbuntu 14.04 laptop on office network via eth0 and the route table gets updated with the office network gateway ipIP in auto mode.

Now, iI changed my /etc/network/interfaces configuratonconfiguration to add a bridge interface, br0, and made eth0 as a dumb port inside br0. My /etc/network/interfaces has,:

iface br0 inet static
   address X.X.X.X
   netmask 255.255.0.0
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
   gateway X.X.X.X
 

No longer, myMy route table is no longer getting updated. And everytime, iEvery time I plug in my ethernet cable, iI need to do,:

route add default gw X.X.X.X br0

How to configure the default gateway for a bridge?

I used to connect my ubuntu 14.04 laptop on office network via eth0 and the route table gets updated with the office network gateway ip in auto mode.

Now, i changed my /etc/network/interfaces configuraton to add a bridge interface, br0 and made eth0 as a dumb port inside br0. My /etc/network/interfaces has,

iface br0 inet static
   address X.X.X.X
   netmask 255.255.0.0
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
   gateway X.X.X.X
 

No longer, my route table is getting updated. And everytime, i plug my ethernet cable, i need to do,

route add default gw X.X.X.X br0

How to configure the default gateway for a bridge?

I used to connect my Ubuntu 14.04 laptop on office network via eth0 and the route table gets updated with the office network gateway IP in auto mode.

Now, I changed my /etc/network/interfaces configuration to add a bridge interface, br0, and made eth0 as a dumb port inside br0. My /etc/network/interfaces has:

iface br0 inet static
   address X.X.X.X
   netmask 255.255.0.0
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
   gateway X.X.X.X
 

My route table is no longer getting updated. Every time I plug in my ethernet cable, I need to do:

route add default gw X.X.X.X br0

How to configure the default gateway for a bridge?

Tweeted twitter.com/StackUnix/status/657832826180603904
edited title
Link
user93868
user93868

Bridge interface - add default gateway addressroute

Source Link
user93868
user93868

Bridge interface - add default gateway address

I used to connect my ubuntu 14.04 laptop on office network via eth0 and the route table gets updated with the office network gateway ip in auto mode.

Now, i changed my /etc/network/interfaces configuraton to add a bridge interface, br0 and made eth0 as a dumb port inside br0. My /etc/network/interfaces has,

iface br0 inet static
   address X.X.X.X
   netmask 255.255.0.0
   bridge_ports eth0
   bridge_stp on
   bridge_fd 0
   gateway X.X.X.X
 

No longer, my route table is getting updated. And everytime, i plug my ethernet cable, i need to do,

route add default gw X.X.X.X br0

How to configure the default gateway for a bridge?