Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Access host device which bridges a connected device through same eth interface

It seems that what the linked article says is usually correct, about the interfaces which are part of the bridge not being supposed to have IPs themselves. At least in the wanted subnet, I guess. ...

posted 3y ago by sktpin‭

Answer
#1: Initial revision by user avatar sktpin‭ · 2021-08-13T09:41:34Z (over 3 years ago)
It seems that what the linked article says is usually correct, about the interfaces which are part of the bridge not being supposed to have IPs themselves.
At least in the wanted subnet, I guess.

This seems a bit special here. I can't get the USB gadget stuff to work, i.e. any traffic between gadget and host, unless I assign the usb0 interfaces on both, gadget and host, an address in the 169.254.*.* net (or rather, let it auto assign that).
So what I now do is, let the ethernet gadget stuff self-assign such addresses as it may, but assign no further (actually targeted subnet) address to usb0 nor eth0 on the host - only the bridge that connectes those two has such an address. On the gadget, the usb0 does get an additional IP which lies in the targeted ("intranet") subnet, though - as that's what's being bridged to the outside, on the host.
That works.

I have found no reference that states: that, and why, interfaces involved in a USB ethernet gadget connection always need an IP (let alone in a special subnet).
So this, unfortunately, is not quite a canonical answer.
All I can say is: "this works for me".