# Modifying the netplan to add interfaces and VLANs

Below is an example of the default netplan file to add an aditional unnumberd interface.

> root@docker-app-1:~# cat /etc/netplan/00-installer-config.yaml  
> \# This is the network config written by 'subiquity'  
> network:  
>  ethernets:  
>  ens160:  
>  addresses:  
> \- 10.128.50.10/24  
>  nameservers:  
>  addresses:  
> \- 1.1.1.1  
> \- 1.0.0.1  
>  search: \[\]  
>  routes:  
> \- to: default  
>  via: 10.128.50.1  
>  ens192: {}  
>  version: 2

Below is an example of the default netplan file to add an aditional unnumberd interface with an attached unnumbered VLAN.

> network:  
>  ethernets:  
>  ens160:  
>  addresses:  
> \- 10.128.50.10/24  
>  nameservers:  
>  addresses:  
> \- 1.1.1.1  
> \- 1.0.0.1  
>  search: \[\]  
>  routes:  
> \- to: default  
>  via: 10.128.50.1  
>  ens192: {}  
>  version: 2
> 
>  vlans:  
>  vlan40:  
>  id: 40  
>  link: ens192