Difference between revisions of "Docker networking"

From Teknologisk videncenter
Jump to: navigation, search
(Created page with "=Bridged interfaces= ==Example== <source lang=cli> heth@ub1:~$ brctl show bridge name bridge id STP enabled interfaces br-501d0044fabe 8000.0242a...")
 
m (Example)
Line 1: Line 1:
 
=Bridged interfaces=
 
=Bridged interfaces=
 
==Example==
 
==Example==
 +
===brctl command===
 
<source lang=cli>
 
<source lang=cli>
 
heth@ub1:~$ brctl show
 
heth@ub1:~$ brctl show
Line 22: Line 23:
 
   3    aa:2c:8a:2b:06:81      yes                0.00
 
   3    aa:2c:8a:2b:06:81      yes                0.00
 
</source>
 
</source>
 
+
=== bridge command ===
 +
<source lang=bash>
 +
heth@ub1:~$ bridge -d  vlan
 +
port              vlan-id
 +
virbr0            1 PVID Egress Untagged
 +
                    state forwarding
 +
crc              1 PVID Egress Untagged
 +
                    state forwarding
 +
docker0          1 PVID Egress Untagged
 +
                    state forwarding
 +
br-ded1f2526def  1 PVID Egress Untagged
 +
                    state forwarding
 +
veth180ce2d      1 PVID Egress Untagged
 +
                    state forwarding
 +
br-501d0044fabe  1 PVID Egress Untagged
 +
                    state forwarding
 +
veth413579c      1 PVID Egress Untagged
 +
                    state forwarding
 +
vethd3cbce2      1 PVID Egress Untagged
 +
                    state forwarding
 +
veth6d6fce4      1 PVID Egress Untagged
 +
                    state forwarding
 +
</source>
 
[[Category:Docker]]
 
[[Category:Docker]]

Revision as of 08:33, 24 September 2024

Bridged interfaces

Example

brctl command

heth@ub1:~$ brctl show
bridge name     bridge id               STP enabled     interfaces
br-501d0044fabe         8000.0242a9d6ae8d       no              veth413579c
                                                        veth6d6fce4
                                                        vethd3cbce2
br-ded1f2526def         8000.0242a675d928       no
crc             8000.525400fdbed0       yes
docker0         8000.02420af91289       no              veth180ce2d
virbr0          8000.5254009d12fa       yes
heth@ub1:~$ brctl showmacs br-501d0044fabe
port no mac addr                is local?       ageing timer
  1     02:42:ac:13:00:02       no                 3.96
  2     02:42:ac:13:00:03       no                 3.96
  1     46:b0:4b:02:26:99       yes                0.00
  1     46:b0:4b:02:26:99       yes                0.00
  2     96:fb:5a:ff:2c:9d       yes                0.00
  2     96:fb:5a:ff:2c:9d       yes                0.00
  3     aa:2c:8a:2b:06:81       yes                0.00
  3     aa:2c:8a:2b:06:81       yes                0.00

bridge command

heth@ub1:~$ bridge -d  vlan
port              vlan-id
virbr0            1 PVID Egress Untagged
                    state forwarding
crc               1 PVID Egress Untagged
                    state forwarding
docker0           1 PVID Egress Untagged
                    state forwarding
br-ded1f2526def   1 PVID Egress Untagged
                    state forwarding
veth180ce2d       1 PVID Egress Untagged
                    state forwarding
br-501d0044fabe   1 PVID Egress Untagged
                    state forwarding
veth413579c       1 PVID Egress Untagged
                    state forwarding
vethd3cbce2       1 PVID Egress Untagged
                    state forwarding
veth6d6fce4       1 PVID Egress Untagged
                    state forwarding