update ethernet script
This commit is contained in:
parent
33755720c2
commit
fdac7abf5b
@ -9,13 +9,14 @@ echo " "
|
||||
echo " "
|
||||
echo "######################################################################################"
|
||||
|
||||
ifconfig eth4 up
|
||||
ifconfig eth5 up
|
||||
ifconfig eth0 up
|
||||
ifconfig eth1 up
|
||||
ifconfig eth2 up
|
||||
ifconfig eth3 up
|
||||
ifconfig br-lan down
|
||||
ifconfig br-wan down
|
||||
brctl delbr br-lan
|
||||
brctl delbr br-wan
|
||||
sleep 2
|
||||
|
||||
echo "########################## Network ethernet Testing Start ##########################"
|
||||
@ -33,21 +34,21 @@ done
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 10G SFP+ WAN Testing ####"
|
||||
udhcpc -t 5 -n -i eth2
|
||||
echo "### Ethernet 2.5G RJ45 WAN Testing ####"
|
||||
udhcpc -t 5 -n -i eth4
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 10G SFP+ WAN DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 2.5G RJ45 WAN DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 10G SFP+ WAN DHCP can not got ip address failure"
|
||||
echo "Error Notice: Ethernet 2.5G RJ45 WAN DHCP can not got ip address failure"
|
||||
fi
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 10G SFP+ LAN Testing ####"
|
||||
udhcpc -t 5 -n -i eth1
|
||||
echo "### Ethernet 1G RJ45 LAN Testing ####"
|
||||
udhcpc -t 5 -n -i eth5
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 10G SFP+ LAN DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 1G SFP+ LAN DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 10G SFP+ LAN DHCP can not got ip address failure"
|
||||
@ -55,46 +56,46 @@ fi
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 1G RJ45 LAN 0 Testing ####"
|
||||
udhcpc -t 5 -n -i lan0
|
||||
echo "### Ethernet 1G RJ45 ETH 0 Testing ####"
|
||||
udhcpc -t 5 -n -i eth0
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 1G RJ45 LAN 0 DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 1G RJ45 ETH 0 DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 1G RJ45 LAN 0 DHCP can not got ip address failure"
|
||||
echo "Error Notice: Ethernet 1G RJ45 ETH 0 DHCP can not got ip address failure"
|
||||
fi
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 1G RJ45 LAN 1 Testing ####"
|
||||
udhcpc -t 5 -n -i lan1
|
||||
echo "### Ethernet 1G RJ45 ETH 1 Testing ####"
|
||||
udhcpc -t 5 -n -i eth1
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 1G RJ45 LAN 1 DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 1G RJ45 ETH 1 DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 1G RJ45 LAN 1 DHCP can not got ip address failure"
|
||||
echo "Error Notice: Ethernet 1G RJ45 ETH 1 DHCP can not got ip address failure"
|
||||
fi
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 1G RJ45 LAN 2 Testing ####"
|
||||
udhcpc -t 5 -n -i lan2
|
||||
echo "### Ethernet 1G RJ45 ETH 2 Testing ####"
|
||||
udhcpc -t 5 -n -i eth2
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 1G RJ45 LAN 2 DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 1G RJ45 ETH 2 DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 1G RJ45 LAN 2 DHCP can not got ip address failure"
|
||||
echo "Error Notice: Ethernet 1G RJ45 ETH 2 DHCP can not got ip address failure"
|
||||
fi
|
||||
|
||||
echo "----------------------------------------------------------------------------------------"
|
||||
sleep 3
|
||||
echo "### Ethernet 1G RJ45 LAN 3 Testing ####"
|
||||
udhcpc -t 5 -n -i lan3
|
||||
echo "### Ethernet 1G RJ45 ETH 3 Testing ####"
|
||||
udhcpc -t 5 -n -i eth3
|
||||
if [ $? == 0 ]; then
|
||||
echo "### Ethernet 1G RJ45 LAN 3 DHCP got ip address successfully ###"
|
||||
echo "### Ethernet 1G RJ45 ETH 3 DHCP got ip address successfully ###"
|
||||
else
|
||||
RET=1
|
||||
echo "Error Notice: Ethernet 1G RJ45 LAN 3 DHCP can not got ip address failure"
|
||||
echo "Error Notice: Ethernet 1G RJ45 ETH 3 DHCP can not got ip address failure"
|
||||
fi
|
||||
|
||||
echo "######################################################################################"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user