mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	VPC : static route, add route table in cloud-early-config
This commit is contained in:
		
							parent
							
								
									541fec8b46
								
							
						
					
					
						commit
						6c96e638be
					
				@ -600,7 +600,12 @@ EOF
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  ip route delete default
 | 
			
		||||
  # create route table for static route
 | 
			
		||||
 | 
			
		||||
  sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
 | 
			
		||||
  sudo echo "252 static_route" >> /etc/iproute2/rt_tables 2>/dev/null
 | 
			
		||||
  sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
 | 
			
		||||
  sudo ip rule add from $VPCCIDR table static_route 2>/dev/null
 | 
			
		||||
 | 
			
		||||
  sed -i  /gateway/d /etc/hosts
 | 
			
		||||
 | 
			
		||||
@ -951,6 +956,9 @@ for i in $CMDLINE
 | 
			
		||||
      vmpassword)
 | 
			
		||||
        VM_PASSWORD=$VALUE
 | 
			
		||||
        ;;
 | 
			
		||||
      vpccidr)
 | 
			
		||||
        VPCCIDR=$VALUE
 | 
			
		||||
        ;;
 | 
			
		||||
    esac
 | 
			
		||||
done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user