Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #247204
| From | Dmitry Katsubo <dma_k@mail.ru> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: networking.service fails |
| Date | 2022-04-12 23:30 +0200 |
| Message-ID | <Ebwff-8kic-3@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <E8kaB-6ivc-9@gated-at.bofh.it> <E8o4x-6lyO-5@gated-at.bofh.it> <E8m2J-6jWt-1@gated-at.bofh.it> <EaVz3-7XXO-5@gated-at.bofh.it> <EaVz3-7XXO-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2022-04-11 07:56, Reco wrote: > Good news - it explains "ifup: unknown interface eth0" messages. > Bad news - this /e/n/i is not valid. > > The reason being - both eth0 and eth1 lack interface definitions, i.e. > have no "iface" stanzas. > > If you absolutely need both eth0 and eth1 in the UP state by the time > you create and bring up br0 you should either: > > 1) Define both eth0 and eth1 in /e/n/i like this: > > auto eth0 > iface eth0 inet manual > > auto eth1 > iface eth1 inet manual > > auto br0 > iface br0 inet static > address 10.0.1.100 > gateway 10.0.1.1 > netmask 255.0.0.0 > bridge_ports eth0 eth1 > bridge_maxwait 60 > > 2) Use pre-up and post-down hooks for br0, and remove both "auto eth0" > and "auto eth1": > > auto br0 > iface br0 inet static > address 10.0.1.100 > gateway 10.0.1.1 > netmask 255.0.0.0 > bridge_ports eth0 eth1 > bridge_maxwait 60 > pre-up /sbin/ip link set eth0 up > pre-up /sbin/ip link set eth1 up > post-down /sbin/ip link set eth0 down > post-down /sbin/ip link set eth1 down > > Reco Hooray, it worked! Thanks for pointing out the configuration error. After fixing it everything worked like a charm. Would be very tricky for me to locate the issue... If the configuration is invalid, networking.service could probably complain about that? I would be able then to resolve the issue myself. Just for my record the reference to documentation: https://wiki.debian.org/BridgeNetworkConnections#Configuring_bridging_in_.2Fetc.2Fnetwork.2Finterfaces -- With best regards, Dmitry
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: networking.service fails David Wright <deblis@lionunicorn.co.uk> - 2022-04-04 05:50 +0200
Re: networking.service fails Greg Wooledge <greg@wooledge.org> - 2022-04-04 06:00 +0200
Re: networking.service fails Reco <recoverym4n@enotuniq.net> - 2022-04-11 08:20 +0200
Re: networking.service fails Dmitry Katsubo <dma_k@mail.ru> - 2022-04-12 23:30 +0200
csiph-web