Here’s how to add a new route in Google Cloud Platform.
gcloud compute routes create name-of-new-route \ --destination-range=200.20.0.0/15 \ --next-hop-gateway=default-internet-gateway \ --project=host-project \ --network="default" \ --priority=900 |
cloud engineer
Here’s how to add a new route in Google Cloud Platform.
gcloud compute routes create name-of-new-route \ --destination-range=200.20.0.0/15 \ --next-hop-gateway=default-internet-gateway \ --project=host-project \ --network="default" \ --priority=900 |
gcloud compute routes create name-of-new-route \ --destination-range=200.20.0.0/15 \ --next-hop-gateway=default-internet-gateway \ --project=host-project \ --network="default" \ --priority=900
Here’s an easy way to add Windows users in Powershell.
net user username 'password' /add |
net user username 'password' /add
Passwords must meet requirements. While you are at it, give it Admin rights.
net localgroup Administrators username /add |
net localgroup Administrators username /add
Here are the steps how to migrate a GCP VM from one network to another. It involves recreating the instance in that network.
Add a yum repo manually by adding a configuration file in /etc/yum.repo.d/ directory.
cd /etc/yum.repos.d/ vi newrepo |
cd /etc/yum.repos.d/ vi newrepo
Add the following.
[newrepo] name=New Repo for RHEL/ CentOS $releasever - $basearch baseurl=http://newrepo.domain.com/centos/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://newrepo.domain.com/RPM-GPG-KEY.txt |
[newrepo] name=New Repo for RHEL/ CentOS $releasever - $basearch baseurl=http://newrepo.domain.com/centos/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://newrepo.domain.com/RPM-GPG-KEY.txt
You may need to import the key.
rpm --import http://newrepo.domain.com/RPM-GPG-KEY.txt |
rpm --import http://newrepo.domain.com/RPM-GPG-KEY.txt
Finally, test the new repo by running the following.
yum update -y yum install new-package |
yum update -y yum install new-package