| 13 | | * If all settings are satisfying, power on both Virtual Machines. |
| | 13 | * If all settings are satisfying, power on both Virtual Machines. |
| | 14 | |
| | 15 | === Log in to the VM === |
| | 16 | |
| | 17 | Login credentials of both VM's are as follows. |
| | 18 | |
| | 19 | user: adminiam |
| | 20 | |
| | 21 | pass: iam@2018 |
| | 22 | |
| | 23 | === Setting UP IP Addresses for IDP === |
| | 24 | |
| | 25 | After you start the VM change the IP address. You can find your IDP IP address from here |
| | 26 | |
| | 27 | Run the commands below to create a new network configuration file |
| | 28 | {{{ |
| | 29 | sudo vi /etc/netplan/50-cloud-init.yaml |
| | 30 | }}} |
| | 31 | |
| | 32 | Press i to edit the file |
| | 33 | |
| | 34 | Then configure IPv4 addresses as shown below |
| | 35 | |
| | 36 | {{{ |
| | 37 | # This file describes the network interfaces available on your system |
| | 38 | # For more information, see netplan(5). |
| | 39 | network: |
| | 40 | ethernets: |
| | 41 | enp0s3: |
| | 42 | addresses: |
| | 43 | - 192.248.6.XY/24 |
| | 44 | dhcp4: false |
| | 45 | gateway4: 192.248.6.254 |
| | 46 | nameservers: |
| | 47 | addresses: |
| | 48 | - 192.248.6.201 |
| | 49 | search: |
| | 50 | - instXY.ac.lk |
| | 51 | version: 2 |
| | 52 | }}} |
| | 53 | Exit and save your changes by pressing esc and type :wq |
| | 54 | |
| | 55 | Restart the VM. |
| | 56 | |
| | 57 | Check the connectivity by using the '''ping''' command on some known IP address. |
| | 58 | |
| | 59 | === Setting UP IP Addresses for SP === |
| | 60 | |
| | 61 | Do the same with SP VM. You can find your SP IP address from here |
| | 62 | |
| | 63 | Run the commands below to create a new network configuration file |
| | 64 | {{{ |
| | 65 | sudo vi /etc/netplan/50-cloud-init.yaml |
| | 66 | }}} |
| | 67 | |
| | 68 | Press i to edit the file |
| | 69 | |
| | 70 | Then configure IPv4 addresses as shown below |
| | 71 | |
| | 72 | {{{ |
| | 73 | # This file describes the network interfaces available on your system |
| | 74 | # For more information, see netplan(5). |
| | 75 | network: |
| | 76 | ethernets: |
| | 77 | enp0s3: |
| | 78 | addresses: |
| | 79 | - 192.248.6.XY/24 |
| | 80 | dhcp4: false |
| | 81 | gateway4: 192.248.6.254 |
| | 82 | nameservers: |
| | 83 | addresses: |
| | 84 | - 192.248.6.201 |
| | 85 | search: |
| | 86 | - instXY.ac.lk |
| | 87 | version: 2 |
| | 88 | }}} |
| | 89 | Exit and save your changes by pressing esc and type :wq |
| | 90 | |
| | 91 | Restart the VM. |
| | 92 | |
| | 93 | Check the connectivity by using the '''ping''' command on some known IP address. |