1. Running the ifconfig command without any arguments, it will display information about all network interfaces currently in operation.
ifconfig
br-3b6bfc3c75d3 Link encap:Ethernet HWaddr 02:42:c2:fd:af:40
inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
docker0 Link encap:Ethernet HWaddr 02:42:20:1a:2f:00
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 08:d4:0c:24:66:b1
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ad4:cff:fe24:66b1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84889 errors:0 dropped:0 overruns:0 frame:0
TX packets:65370 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87479367 (87.4 MB) TX bytes:9885932 (9.8 MB)
2. Select the network interface you need to remove.
For eg :
docker0
3 Disable the network interface. Using the “down” flag with interface name.
sudo ip link set docker0 down
4. Remove the network bridge name.
sudo brctl delbr docker0
Pls note that this is a temporary solution . If you restart the machine, you have to redo above steps.
0 comments :
Post a Comment