AdCommLab05 2011
AdCommLab05 2011
05
Microcore Linux + Open vSwitch i Virtuelne računarske mreže (VLAN)
Cilj vežbe
A virtual local area network, virtual LAN or VLAN, is a group of hosts with a common set of
requirements, which communicate as if they were attached to the same broadcast domain,
regardless of their physical location. A VLAN has the same attributes as a physical local area
network (LAN), but it allows for end stations to be grouped together even if not on the same
network switch. VLAN membership can be configured through software instead of physically
relocating devices or connections.
Open vSwitch is a production quality, multilayer virtual switch licensed under the open source
Apache 2.0 license. It is designed to enable massive network automation through programmatic
extension, while still supporting standard management interfaces and protocols (e.g. NetFlow,
sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support distribution across
multiple physical servers similar to VMware's vNetwork distributed vswitch or Cisco's Nexus
1000V.
Kreiranje mreže
Kreiranje čvorova za scenario se vrši uz pomoć Qemu emulatora i imidža sa Microcore Linux-om
Quagga ruting i Open vSwitch svičing softverom.
Opcija menija Edit > Preferences i unos imidž fajla. Opcija Identifier name treba da se podesi na
Microtic, a Binary image na linux-microcore-4.0-openvswitch-1.2.2-quagga-
0.99.20.img, koji se nalazi na lokaciji C:\GNS3_Labs\IOSImages. Zatim kliknuti na opciju Save.
Podešavanje scenarija
1) Openvswitch configuration
Login is tc without password set.
b) Add access port eth0 to the bridge br0 and assign it to VLAN 10
sudo ovs-vsctl add-port br0 br0 eth0 tag=10
e) Save conf.db file to keep it persistent after the next reboot of Microcore Linux
/usr/bin/filetool.sh -b
2) PC1 configuration
Login is tc without password set.
Assign IP address 192.168.1.1/24 to eth0 and make it persistent after next reboot of Microcore
sudo hostname PC1
sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0
echo "hostname PC1" >> /opt/bootlocal.sh
echo "ifconfig eth0 192.168.1.1 netmask 255.255.255.0" >> /opt/bootlocal.sh
/usr/bin/filetool.sh -b
We can see that ping is not working between PC1 and PC3. We confirm that there is not
connectivity between computers placed in to different VLANs and openvswitch is working
correctly.
Literatura
[1] http://brezular.wordpress.com/2011/06/25/part2-openvswich-vlans-trunks-l3-vlan-
interface-intervlan-routing-configuration-and-testing/
[2] http://brezular.wordpress.com/2011/11/23/part3-openvswich-campus-model-with-layer2-
access-built-with-open-source-applications/
[2] http://openvswitch.org/download/