Skip to content

Commit

Permalink
Merge pull request #213 from dj-nlx/main
Browse files Browse the repository at this point in the history
PR - NAT64 Fixes/CICD Enhancement
  • Loading branch information
UltraInstinct14 authored Feb 1, 2023
2 parents 47255e9 + b636d36 commit faaa4f0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/advanced-lb-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
go-version: '>=1.17.0'
- run: sudo apt-get update
- run: sudo apt -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat
- run: sudo apt -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat ethtool
- run: |
git clone https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
Expand Down
14 changes: 14 additions & 0 deletions cicd/nat64tcp/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,35 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24
## IPV6 Stuff
$hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1
$hexec l3h1 ip -6 route add default via 3ffe::2
$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off
$hexec l3h1 ethtool -K el3h1llb1 gso off

$hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1
$hexec l3ep1 ip -6 route add default via 4ffe::2
$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off
$hexec l3ep1 ethtool -K el3ep1llb1 gso off

$hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1
$hexec l3ep2 ip -6 route add default via 5ffe::2
$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off
$hexec l3ep2 ethtool -K el3ep2llb1 gso off

$hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1
$hexec l3ep3 ip -6 route add default via 6ffe::2
$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off
$hexec l3ep3 ethtool -K el3ep3llb1 gso off

$hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1
$hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1
$hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2
$hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3
$hexec llb1 ip addr add 2001::1/128 dev lo
$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off
$hexec llb1 ethtool -K ellb1l3h1 gso off
$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off
$hexec llb1 ethtool -K ellb1l3ep1 gso off
$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off
$hexec llb1 ethtool -K ellb1l3ep3 gso off

$dexec llb1 loxicmd create lb 2001::1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
sleep 10
14 changes: 14 additions & 0 deletions cicd/nat66tcp/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,34 @@ config_docker_host --host1 llb1 --host2 l3ep3 --ptype phy --addr 33.33.33.254/24
## IPV6 Stuff
$hexec l3h1 ip -6 addr add 3ffe::1/64 dev el3h1llb1
$hexec l3h1 ip -6 route add default via 3ffe::2
$hexec l3h1 ethtool --offload el3h1llb1 rx off tx off
$hexec l3h1 ethtool -K el3h1llb1 gso off

$hexec l3ep1 ip -6 addr add 4ffe::1/64 dev el3ep1llb1
$hexec l3ep1 ip -6 route add default via 4ffe::2
$hexec l3ep1 ethtool --offload el3ep1llb1 rx off tx off
$hexec l3ep1 ethtool -K el3ep1llb1 gso off

$hexec l3ep2 ip -6 addr add 5ffe::1/64 dev el3ep2llb1
$hexec l3ep2 ip -6 route add default via 5ffe::2
$hexec l3ep2 ethtool --offload el3ep2llb1 rx off tx off
$hexec l3ep2 ethtool -K el3ep2llb1 gso off

$hexec l3ep3 ip -6 addr add 6ffe::1/64 dev el3ep3llb1
$hexec l3ep3 ip -6 route add default via 6ffe::2
$hexec l3ep3 ethtool --offload el3ep3llb1 rx off tx off
$hexec l3ep3 ethtool -K el3ep3llb1 gso off

$hexec llb1 ip -6 addr add 3ffe::2/64 dev ellb1l3h1
$hexec llb1 ip -6 addr add 4ffe::2/64 dev ellb1l3ep1
$hexec llb1 ip -6 addr add 5ffe::2/64 dev ellb1l3ep2
$hexec llb1 ip -6 addr add 6ffe::2/64 dev ellb1l3ep3
$hexec llb1 ethtool --offload ellb1l3h1 rx off tx off
$hexec llb1 ethtool -K ellb1l3h1 gso off
$hexec llb1 ethtool --offload ellb1l3ep1 rx off tx off
$hexec llb1 ethtool -K ellb1l3ep1 gso off
$hexec llb1 ethtool --offload ellb1l3ep3 rx off tx off
$hexec llb1 ethtool -K ellb1l3ep3 gso off

sleep 5
$dexec llb1 loxicmd create lb 20.20.20.1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
Expand Down
2 changes: 1 addition & 1 deletion loxilb-ebpf

0 comments on commit faaa4f0

Please sign in to comment.