Created
April 10, 2015 16:25
-
-
Save nerdalert/b7ef17027fd4a101bca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NC='\e[0m' # Text Reset | |
IYellow='\e[0;93m' # Yellow | |
echo -e "${IYellow}############################ ip netns exec \$(ip netns) ip a ###############################${NC}" | |
for ns in $(sudo ip netns); | |
do echo -e "${IYellow}Namespace: $ns ${NC}" | |
sudo ip netns exec $ns ip a | grep --color=never "BROAD\|ether\|LOOP\|global"; | |
done | |
echo -e "${IYellow}###################################### (ip link show) ######################################${NC}" | |
sudo ip link show | grep --color "inet \|state\|$" | |
echo -e "${IYellow} ####################################### ip addr ###########################################${NC}" | |
sudo ip a | grep --color "inet \|state\|$" | |
echo -e "${IYellow}############################ ( ifconfig -a | grep "Link\|inet" ) ###########################${NC}" | |
sudo ifconfig -a | grep "Link\|inet" | |
echo -e "${IYellow}############# sudo sysctl -a | grep net.ipv4.conf.all.forwarding ##########################${NC}" | |
sudo sysctl -a | grep net.ipv4.conf.all.forwarding | |
echo -e "${IYellow}######################################## ethool ############################################${NC}" | |
ifaces=($(ls -1 /sys/class/net/)) | |
for iface in ${ifaces[@]}; do | |
sudo ethtool $iface | grep "Settings for\|Link detected" | |
done | |
echo -e "${IYellow}###################################### brctl show ########################################${NC}" | |
sudo brctl show | grep --color "inet \|state\|$" | |
echo -e "${IYellow}#################### Verify VXLAN is compiled in-kernel (returns 0 if true)#################${NC}" | |
modprobe vxlan && echo $? | |
echo -e "${IYellow}########################################## end ############################################${NC}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment