ZacharyGong / hello-network-virtualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello network virtualization

Lab

This is a tutorial about different network virtualizatioin technologies:

Commands

ovs-vsctl

  • ovs-vsctl add-br sw: add a new OVS bridge
  • ovs-vsctl list bridge sw: lookup
  • ovs-vsctl del-br sw: remove the bridge
  • ovs-vsctl show: show the OVS configuration of a server
    • OVS manager is for the whole server
    • OVS controller is for a dedicated switch

ovs-ofctl

  • ovs-ofctl dump-flows sw: show all the flow tables
    • table=0: output for one table
    • --color: don't work for ssh
  • ovs-ofctl del-flows sw: cleanup the flow tables
  • authorize all IP flows between 1 and 2:
ovs-ofctl add-flow sw arp,actions=normal
ovs-ofctl add-flow sw priority=800,ip,nw_src=8.8.8.7,nw_dst=8.8.8.8,actions=normal
ovs-ofctl add-flow sw priority=800,ip,nw_src=8.8.8.8,nw_dst=8.8.8.7,actions=normal
  • ovs-ofctl dump-flows sw: show the flow tables

About


Languages

Language:Shell 80.3%Language:C 19.7%