summaryrefslogtreecommitdiff
path: root/INSTALL.Docker.md
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2015-05-25 00:50:01 -0700
committerGurucharan Shetty <gshetty@nicira.com>2015-05-27 08:06:05 -0700
commit05444f07247388d5537b99d6849af31b034fcc9f (patch)
tree7a1e7c3cdf3afd4b16ceecc25c148ea674a85dde /INSTALL.Docker.md
parent694ebbc85eb164a83926ace56a4d8b90424a5447 (diff)
downloadopenvswitch-05444f07247388d5537b99d6849af31b034fcc9f.tar.gz
ovs-docker: Add the ability to set the mac address.
For testing OVN, it is useful to set the mac address of the container. Since ovs-docker hasn't been part of any released versions of OVS, it is probably OK to change the options style. Signed-off-by: Gurucharan Shetty <shettyg@nicira.com>
Diffstat (limited to 'INSTALL.Docker.md')
-rw-r--r--INSTALL.Docker.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/INSTALL.Docker.md b/INSTALL.Docker.md
index 6bd566024..b505a9b55 100644
--- a/INSTALL.Docker.md
+++ b/INSTALL.Docker.md
@@ -55,9 +55,13 @@ and then attaches it to the Open vSwitch bridge 'br-int'. This is done by
creating a veth pair. One end of the interface becomes 'eth1' inside the
container and the other end attaches to 'br-int'.
-The script also lets one to add an IP address to the interface. e.g.:
+The script also lets one to add IP address, MAC address and Gateway address to
+the interface. e.g.:
-`% ovs-docker add-port br-int eth1 $CONTAINER_ID 192.168.1.1/24`
+```
+% ovs-docker add-port br-int eth1 $CONTAINER_ID --ipaddress=192.168.1.2/24 \
+--macaddress=a2:c3:0d:49:7f:f8 --gateway=192.168.1.1
+```
* A previously added network interface can be deleted. e.g.: