devplayer0 / docker-net-dhcp

Docker network driver for networking on a host bridge with DHCP-allocated IP addresses
GNU General Public License v3.0
193 stars 55 forks source link

I can set my physical network card as master to bridge card #24

Open YangTakeshi opened 3 years ago

YangTakeshi commented 3 years ago

b605@b605-HP-Z8-G4:~$ sudo ip link set eno1 master neu-bridge RTNETLINK answers: Device or resource busy

and my config of network: docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 inet6 fe80::42:5dff:fe39:9568 prefixlen 64 scopeid 0x20 ether 02:42:5d:39:95:68 txqueuelen 0 (以太网) RX packets 9285893 bytes 12491863784 (12.4 GB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 19893211 bytes 21876361822 (21.8 GB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 219.216.64.199 netmask 255.255.255.0 broadcast 219.216.64.255 inet6 2001:da8:9000:a806:fbd3:4d6c:4f05:99e7 prefixlen 64 scopeid 0x0 inet6 2001:da8:9000:a806:7824:266:facc:9a0c prefixlen 64 scopeid 0x0 inet6 fe80::8e85:7289:1036:514d prefixlen 64 scopeid 0x20 ether 00:68:eb:c1:d1:04 txqueuelen 1000 (以太网) RX packets 15263623 bytes 16110665592 (16.1 GB) RX errors 0 dropped 14019 overruns 0 frame 0 TX packets 13545958 bytes 11349820611 (11.3 GB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 memory 0x90300000-90320000

enp4s0f2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:68:eb:c1:d1:07 txqueuelen 1000 (以太网) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (本地环回) RX packets 28836 bytes 3205847 (3.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 28836 bytes 3205847 (3.2 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

neu-bridge: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::5cee:4ff:fe81:a3d9 prefixlen 64 scopeid 0x20 ether 5e:ee:04:81:a3:d9 txqueuelen 1000 (以太网) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 100 bytes 14296 (14.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth3752600: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::74d2:36ff:fe3b:6a1d prefixlen 64 scopeid 0x20 ether 76:d2:36:3b:6a:1d txqueuelen 0 (以太网) RX packets 167082 bytes 457788318 (457.7 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 416829 bytes 306314984 (306.3 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

veth57d7fe5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::bccb:f9ff:fe81:c817 prefixlen 64 scopeid 0x20 ether be:cb:f9:81:c8:17 txqueuelen 0 (以太网) RX packets 20035 bytes 29285453 (29.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 21689 bytes 2286508 (2.2 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vethb552f4b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::ec6c:55ff:fe11:2dc9 prefixlen 64 scopeid 0x20 ether ee:6c:55:11:2d:c9 txqueuelen 0 (以太网) RX packets 1334312 bytes 4002039826 (4.0 GB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2469845 bytes 2983138662 (2.9 GB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0