From 085469914c8d87df033348fe5b2b60a2c1cdc954 Mon Sep 17 00:00:00 2001 From: Stitch10925 <69055295+Stitch10925@users.noreply.github.com> Date: Thu, 19 Jan 2023 13:48:49 +0100 Subject: [PATCH] Update usb_ethernet.md (#918) * Update usb_ethernet.md Adds more details about the "iface" configuration and how to configure it properly. * Update usb_ethernet.md Removes parameter which has already the same value by default from the iface config. --- docs/usb_ethernet.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/usb_ethernet.md b/docs/usb_ethernet.md index 955b5d77..23a64a32 100644 --- a/docs/usb_ethernet.md +++ b/docs/usb_ethernet.md @@ -79,13 +79,21 @@ By default, `kvmd-otgnet` will configure network connection between PiKVM and th post_start_cmd_append: - "--dhcp-option=6,8.8.8.8" ``` - -5. Don't forget to `reboot`. +5. To enable internet access for the server host, add the following to the otgnet configuration:: + + ```yaml + otgnet: + iface: + net: 10.65.0.0/28 + ``` + The 'net' parameter defines the network address range of the usb0 network. The server host will automatically receive an IP address within this network including the DNS servers defined under 'post_start_cmd_append'. Note: This network should *not* be same as the network PiKVM is connected to. + +6. Don't forget to `reboot`. ======= -??? example "An example of what the config would look like if you wanted the target to have inet access (Please edit to suit your needs):" +??? example "An example of what the config would look like for a server host that can access PiKVM and has internet access (Please edit to suit your needs):" ``` otgnet: firewall: