mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			248 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist
 | |
| while read i
 | |
| do
 | |
|     ifconfig $i down
 | |
|     ifconfig $i up
 | |
| done < /tmp/iflist
 | |
| ip route add default via [GATEWAY] dev eth2 && \
 | |
| service dnsmasq restart
 |