|  | 48 |  | 
          
            |  | 49 | === Setting UP IP Addresses === | 
          
            |  | 50 |  | 
          
            |  | 51 | After you install the Ubuntu OS change the IP address. You can find your IP address from [wiki:ipallocnetsec here] | 
          
            |  | 52 |  | 
          
            |  | 53 | Run the commands below to create a new network configuration file | 
          
            |  | 54 | {{{ | 
          
            |  | 55 | sudo vi /etc/netplan/01-netcfg.yaml | 
          
            |  | 56 | }}} | 
          
            |  | 57 |  | 
          
            |  | 58 | Press '''i''' to edit the file | 
          
            |  | 59 |  | 
          
            |  | 60 | Then configure IPv4 addresses as shown below | 
          
            |  | 61 | {{{ | 
          
            |  | 62 | # This file describes the network interfaces available on your system | 
          
            |  | 63 | # For more information, see netplan(5). | 
          
            |  | 64 | network: | 
          
            |  | 65 | version: 2 | 
          
            |  | 66 | renderer: networkd | 
          
            |  | 67 | ethernets: | 
          
            |  | 68 | ens33: | 
          
            |  | 69 | dhcp4: no | 
          
            |  | 70 | dhcp6: no | 
          
            |  | 71 | addresses: [<Your IP address>/<Subnet>] | 
          
            |  | 72 | gateway4: 192.248.6.254 | 
          
            |  | 73 | nameservers: | 
          
            |  | 74 | addresses: [192.248.1.161] | 
          
            |  | 75 | }}} | 
          
            |  | 76 |  | 
          
            |  | 77 | Exit and save your changes by pressing '''esc''' and type ''':wq''' | 
          
            |  | 78 |  | 
          
            |  | 79 | Run the commands below. | 
          
            |  | 80 | {{{ | 
          
            |  | 81 | sudo netplan apply | 
          
            |  | 82 | }}} |