![]() "Įcho "vboxnet0 interface does not exist. "Įcho "Could not set IP address of vboxnet0 interface. "Įcho "Could not set IP address of vmnet2 interface. # If neither interface exists, then we inform the user and abort the script. ![]() if it does, we set its IP to 172.16.1.2/24 as well # # If it does not, we check to see if vboxnet0 exists. "Įcho "This script must be ran with sudo or root privileges. Read -p "Once you have verified that your VMs are up and running, Press enter to continue. In particular, the pfSense VM MUST be running! " # Notifying users to have VMs up and running #Įcho "Warning: Please make sure that all of your vmware fusion OR oracle virtualbox VMs are running. #Note: If you are using alternative networks for your lab other than 172.16.1.0/24, and 172.16.2.0/24, you will have to modify the route, and ifconfig statements on lines 38, 50, and 69 on your own to reflect your "Management" and "IPS" networks. #after setting the IP address, the script attempts to add a static route to the 172.16.2.0 network via 172.16.1.1 (LAN interface of the pfSense VM) #if neither interface exists, the script will fail. The script will check to see if vmnet2 exists, then check for vboxnet0 ![]() #and will assign the IP address 172.16.1.2 to the first interface it finds. #This script checks for the existence of the interface vmnet2 (vmware fusion) or vboxnet0 (virtualbox) #This script is meant for VMware Fusion Professional, or Oracle Virtualbox users on OSX ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |