Actividad 8

Topología

La red 12.1.1.0/24 no corresponde a ninguna vlan. Sirve a la comunicación switch-controlador.

MACs
h1 66:68:00
h2 66:68:01
h3 66:68:02
h4 66:68:03

Configuracion Facuet

dps:
  switch-1:
    dp_id: 0x1
    timeout: 3600
    arp_neighbor_timeout: 3600
    interfaces:
      1:
        name: "h1"
        native_vlan: 10
      2:
        name: "h2"
        native_vlan: 20
      5:
        name: "trunk"
        tagged_vlans: [10,20]
  switch-2:
    dp_id: 0x2
    timeout: 3600
    arp_neighbor_timeout: 3600
    interfaces:
      3:
        name: "h3"
        native_vlan: 10
      4:
        name: "h4"
        native_vlan: 20
      5:
        name: "trunk"
        tagged_vlans: [10,20]
vlans:
  10:
    faucet_mac: "00:00:00:00:00:11"
    faucet_vips: ["10.1.10.254/24"]
  20:
    faucet_mac: "00:00:00:00:00:22"
    faucet_vips: ["10.1.20.254/24"]
routers:
  router-1:
    vlans: [10,20]

Comunicacion h1-h2

/ # ovs-ofctl dump-flows br0 | grep '10.1.20.2 ' | cut -d, -f3,7-
 table=4, priority=9131,ip,dl_vlan=20,nw_dst=10.1.20.2 actions=mod_vlan_vid:20,mod_dl_src:00:00:00:00:00:22,mod_dl_dst:00:50:79:66:68:01,dec_ttl,resubmit(,7)
 table=4, priority=9131,ip,dl_vlan=10,nw_dst=10.1.20.2 actions=mod_vlan_vid:20,mod_dl_src:00:00:00:00:00:22,mod_dl_dst:00:50:79:66:68:01,dec_ttl,resubmit(,7)
/ # ovs-ofctl dump-flows br0 | grep 66:68:01 |cut -d, -f3,7-
 ...
 table=7, idle_age=604, priority=9099,dl_vlan=20,dl_dst=00:50:79:66:68:01 actions=strip_vlan,output:2

 

Comunicacion h1-h3

/ # ovs-ofctl dump-flows br0 | grep 10.1.10.3 | cut -d, -f3,7-
 table=4, priority=9131,ip,dl_vlan=20,nw_dst=10.1.10.3 actions=mod_vlan_vid:10,mod_dl_src:00:00:00:00:00:11,mod_dl_dst:00:50:79:66:68:02,dec_ttl,resubmit(,7)
 table=4, priority=9131,ip,dl_vlan=10,nw_dst=10.1.10.3 actions=mod_vlan_vid:10,mod_dl_src:00:00:00:00:00:11,mod_dl_dst:00:50:79:66:68:02,dec_ttl,resubmit(,7)
/ # ovs-ofctl dump-flows br0 | grep 66:68:02 | cut -d, -f3,7-
 ...
 table=7, idle_age=56, priority=9099,dl_vlan=10,dl_dst=00:50:79:66:68:02 actions=output:5

 

Comunicacion h1-h4

Captura del enlace trunk de un ping h1-h4. Paquetes arp no respondidos