diff options
author | Padraig Connolly <padraig.connolly@intel.com> | 2016-11-21 10:10:07 +0000 |
---|---|---|
committer | Padraig Connolly <padraig.connolly@intel.com> | 2016-11-21 10:10:07 +0000 |
commit | 51e00de1e4a4102e5d15c2e219787f8565f51019 (patch) | |
tree | 9761fb3b816904dcac0ed2f6285a3875f534ec38 /vpp-userdemo/tutorials/Routing | |
parent | 08e0618fef8173d3c94d64bce69f34d26f6a1f1c (diff) |
vpp-userdemo: Small changes to README/GUI
Changes to README:
*README flow changed (i.e intro first, setup next, then running)
*Changed CLI command help (tutorials directory needed to run demo)
Changes to GUI:
*Added fd.io colors to GUI interface
*Added more relevent icons to each tutorial
*Capitalized tutorial file names (Looks better on GUI)
Change-Id: Ib6c1347e24687d489f3b0be3808aefb4bbb622f2
Signed-off-by: Padraig Connolly <padraig.connolly@intel.com>
Diffstat (limited to 'vpp-userdemo/tutorials/Routing')
-rw-r--r-- | vpp-userdemo/tutorials/Routing | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/vpp-userdemo/tutorials/Routing b/vpp-userdemo/tutorials/Routing new file mode 100644 index 0000000..36e49af --- /dev/null +++ b/vpp-userdemo/tutorials/Routing @@ -0,0 +1,57 @@ +#!/usr/bin/env bash + +# Copyright (c) 2016 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +C1_IP="172.16.1.2/24" +C1_GW="172.16.1.1" +C2_IP="172.16.2.2/24" +C2_GW="172.16.2.1" + +INSTR=() +CMD=() +INSTR+=("Welcome to the routing demo. This will show you some simple commands to connect two linux containers to VPP and ping between them.") +CMD+=("") + +INSTR+=("To show interfaces type:") +CMD+=("sudo vppctl show inter") + +INSTR+=("Lets examine our workloads cone and ctwo") +CMD+=("sudo lxc-attach -n cone -- ip -o a") + +INSTR+=("") +CMD+=("sudo lxc-attach -n ctwo -- ip -o a") + +INSTR+=("To add interfaces, we add the host-side of the veth link pair.") +CMD+=("ip link") + +INSTR+=("The links we need to add are link1 and link2 so lets add them with") +CMD+=("sudo vppctl create host-interface name link1; sudo vppctl create host-interface name link2; sudo vppctl show inter") + +INSTR+=("Change the links state to up") +CMD+=("sudo vppctl set interface state host-link1 up; sudo vppctl set interface state host-link2 up; sudo vppctl show inter") + +INSTR+=("Add IP addresses for the other end of each veth link") +CMD+=("sudo vppctl set interface ip address host-link1 172.16.1.1/24; sudo vppctl set interface ip address host-link2 172.16.2.1/24; sudo vppctl show interface address") + +INSTR+=("You can also see the L3 table, or FIB by doing") +CMD+=("sudo vppctl show ip fib") + +INSTR+=("At long last you probably want to see some pings") +CMD+=("sudo lxc-attach -n cone -- ping -c3 172.16.2.2") + +INSTR+=("") +CMD+=("sudo lxc-attach -n ctwo -- ping -c3 172.16.1.2") + +INSTR+=("Thanks for doing the routing demo. To restart this demo and type these commands yourself. vagrant ssh sudo /vagrant/netns.sh; cat /vagrant/routing.cmd") +CMD+=("") |