Skip to contentSkip to conversation

Max length of bridge device name?

Bridge Josh Wyatt 2 participants 2 messages Jan 12, 2004 Ethernet bridge

lore
Share & tools
lore

Josh Wyatt

author
#0 lore raw

Hi all,

Does anyone know the maximum length of the interface name created by 'brctl addbr'? How about any other restrictions on usable alphanumerics, for example is "-" (dash) or "_" (underscore) allowed, commas, periods, etc allowed?

Most docs I see refer to this as br0, but I'd like to use more descriptive names, such as vlan_105, etc.

Thanks in advance,
Josh

#1 lore raw
Quoted 3 lines · On Mon, 12 Jan 2004 13:12:34 -0500 Josh Wyatt <[email protected]> wrote:

Hi all,

Does anyone know the maximum length of the interface name created by 'brctl addbr'?

IFNAMSIZ-1 = 15 chars

How about any other restrictions on

Quoted 1 line

usable alphanumerics, for example is "-" (dash) or "_" (underscore) allowed, commas, periods, etc allowed?

Well all should work (except "." and "..").

Quoted 4 lines

Most docs I see refer to this as br0, but I'd like to use more descriptive names, such as vlan_105, etc.

Thanks in advance,
Josh