# Lab 6. Linux Networking: Internetworking and DNS overview ## *Kseniya Evdokimova* --- ## **Questions to answer:** ### **1.** ### **Netplan** To configure netplan, I saved (changed from the last lab) the configuration file, **01-netcfg.yaml**, under /etc/netplan/ with a .yaml extension (e.g. /etc/netplan/01-netcfg.yaml) ![](https://i.imgur.com/3ouxT2N.png) So, I added the vlans (with names vlan10 and vlan20) according to the structure in the provided manual. ![](https://i.imgur.com/OizkxWu.png) ![](https://i.imgur.com/VRYrxGL.png) ### **Iplink** -The first line creates a new vlan device vlan10 on device eth0: - device specifies the physical device to act operate on. - ip link add - add virtual link - name specifies the name of the new virtual device. - type specifies the type of the new device. (*vlan* - 802.1q tagged virtual LAN interface) -The second line establishes the address. -The third line changes device attributes: the state of it to up -The fourth line adds default route via 192.168.10.1 -The fifth line shows the state of all network interfaces on the system. Then the same happens for the 2nd vlan. ![](https://i.imgur.com/YZCYoOk.png) ### 2. Making a virtual bridge to be able to connect 2 different interfaces (intnet, intnet2), command to show that virtual bridge (switch) has both MAC addresses in its table. -The first command, ip link add, is creating a bridge named br0. -The second and third: two ip link set commands add the two Ethernet interfaces, device1 and device2, to the new bridge resulting in a connection between these two interfaces. -The 5th command will list our interfaces connected to the bridge. -The 6th line will show that virtual bridge (switch) has both MAC addresses in its table. ![](https://i.imgur.com/R4WvtgM.png) --- *Innopolis virtual machine went down, so I sadly couldn't make the photo of the screen as I was doing the lab. Also, was not able to download another virtual machine in time. So I am mostly providing just the commands and explanations to them* ![](https://i.imgur.com/ynxgFP5.png)