Networking

route

View route

View the route tables.

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.30.3.1      0.0.0.0         UG    0      0        0 eth0
10.2.3.0        172.30.3.143    255.255.255.0   UG    0      0        0 eth0
10.2.9.0        172.30.3.158    255.255.255.0   UG    0      0        0 eth0
10.2.52.0       172.30.3.38     255.255.255.0   UG    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
172.30.3.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0

Delete route

Delete a route form networking.

route del -net 10.2.3.0 netmask 255.255.255.0

iptables

View

iptables -L

Flush

iptables -F

ifconfig

Turn down an interface

ifconfig docker0 down

Delete a bridge

brctl delbr docker0