Skip to content

Commit 2e5f7d6

Browse files
Merge pull request #924 from booxter/ipv6-lab-resolved-conf
document how to configure resolved on rhel
2 parents c3f8643 + 68e0868 commit 2e5f7d6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

devsetup/scripts/ipv6-nat64/README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
Development environment - IPv6 NAT64 lab
22
========================================
33

4+
Prerequisites
5+
-------------
6+
7+
Network setup relies on `systemd-resolved` service enabled and used for DNS
8+
resolution. If it's not installed on your machine (for example, if you use
9+
RHEL), then:
10+
11+
#. Install the package: `dnf install -y systemd-resolved`
12+
#. Enable and start the service: `systemctl enable --now systemd-resolved`
13+
#. Configure it as the default resolver for the system: `ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`
14+
15+
Further DNS requests initiated by the hypervisor should now go through the stub `systemd-resolved` resolver.
16+
17+
Overview
18+
--------
19+
420
These scripts can be used to set up an IPv6 lab utilizing [NAT64](https://en.wikipedia.org/wiki/IPv6_transition_mechanism#NAT64) and [DNS64](https://en.wikipedia.org/wiki/IPv6_transition_mechanism#DNS64) (4 to 6 translation).
521

622
To set up the lab run the scripts in order:
@@ -60,8 +76,6 @@ options:
6076
* nftables - Firewall for IPv4 NAT (Masqurade NAT64 pool behind a single ip
6177
address)
6278

63-
Note: you will have to detach from the VM console by pressing `Ctrl+]`.
64-
6579

6680
sno.sh
6781
------

devsetup/scripts/ipv6-nat64/sno.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ EOF
328328
}
329329

330330
function print_cluster_info {
331+
set +x
331332
API_URL="https://api.sno.lab.example.com:6443"
332333
echo
333334
echo "Source ${WORK_DIR}/sno_env to set up PATH and KUBECONFIG:"
@@ -342,6 +343,7 @@ function print_cluster_info {
342343
echo " to be ready ... if you see an authentication error with"
343344
echo " the admin user, wait moments and try again."
344345
echo
346+
set -x
345347
}
346348

347349
function create {

0 commit comments

Comments
 (0)