Skip to content

Commit

Permalink
correct file path to ./deps/bpfprog (#34)
Browse files Browse the repository at this point in the history
* correct file path to ./deps/bpfprog

* correct file name of goclient
  • Loading branch information
OC authored and tehnerd committed May 22, 2019
1 parent ec47f54 commit 29b9dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ standalone mode is when katran is attached to the interface directly (and you wo
be able to run any other XDP program on this interface)

```
$ sudo ./build/example_grpc/katran_server_grpc -balancer_prog ./deps/linux/bpfprog/bpf/balancer_kern.o -default_mac 52:54:00:12:35:02 -forwarding_cores=0 -healthchecker_prog ./deps/linux/bpfprog/bpf/healthchecking_ipip.o -intf=enp0s3 -ipip_intf=ipip0 -ipip6_intf=ipip60 -lru_size=10000
$ sudo ./build/example_grpc/katran_server_grpc -balancer_prog ./deps/bpfprog/bpf/balancer_kern.o -default_mac 52:54:00:12:35:02 -forwarding_cores=0 -healthchecker_prog ./deps/bpfprog/bpf/healthchecking_ipip.o -intf=enp0s3 -ipip_intf=ipip0 -ipip6_intf=ipip60 -lru_size=10000
```

In this example:
Expand Down Expand Up @@ -197,7 +197,7 @@ if needed, in front of load balancer.


```
$ sudo ./build/example_grpc/katran_server_grpc -balancer_prog ./deps/linux/bpfprog/bpf/balancer_kern.o -default_mac 52:54:00:12:35:02 -forwarding_cores=0 -healthchecker_prog ./deps/linux/bpfprog/bpf/healthchecking_ipip.o -intf=enp0s3 -ipip_intf=ipip0 -ipip6_intf=ipip60 -lru_size=10000 -map_path /sys/fs/bpf/jmp_eth0 -prog_pos=2
$ sudo ./build/example_grpc/katran_server_grpc -balancer_prog ./deps/bpfprog/bpf/balancer_kern.o -default_mac 52:54:00:12:35:02 -forwarding_cores=0 -healthchecker_prog ./deps/bpfprog/bpf/healthchecking_ipip.o -intf=enp0s3 -ipip_intf=ipip0 -ipip6_intf=ipip60 -lru_size=10000 -map_path /sys/fs/bpf/jmp_eth0 -prog_pos=2
```

### Configuring healthchecks forwarding
Expand All @@ -220,7 +220,7 @@ For v6 VIP we are using only one real with address: `fc00:200::1`
To configure so_mark to real mapping, we are going to use go client that we built earlier:

```
$ cp ./katran_goclient ./katran_goclient
$ cp ./example_grpc/goclient/bin/main ./katran_goclient
$ ./katran_goclient -new_hc 10.200.200.1 -somark 1000
exiting
$ ./katran_goclient -new_hc 10.200.200.2 -somark 1001
Expand Down

0 comments on commit 29b9dd8

Please sign in to comment.