Update crxnv6.md

This commit is contained in:
Tristan B. Kildaire 2021-02-20 12:40:53 +02:00 committed by GitHub
parent 8d00c36edd
commit 8e255c23ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 12 deletions

View File

@ -24,22 +24,14 @@ Now what you need to do is to find a `/56` available in the `fd8a:6111:3b1a::/48
You can register a prefix here and find a list of all prefixes [here](https://crxn.chrisnew.de/netbox/ipam/aggregates/8/) and allocate a new one [here](https://crxn.chrisnew.de/netbox/ipam/prefixes/add/).
## Step 4: Add this subnet to your machine
## Step 4: Add this subnet and address to your machine
If you recall the `on up` part to your fastd configuration then you can put this code in there if you want. A systemd unit will do as well.
```
ip route add <subnet>/<prefix> proto static dev <interface>
```
You can make `<interface>` the interface the subnet belongs to, for example, `eth0`, if you intend to have your IPs within your subnet accessed from your router over the LAN it is conneted to on `eth0`.
## Step 5: Add an address
Set the address for your node with the following:
```
ip addr add <address>/<prefix> dev <interface>
```
The `<interface>` can be anything.
You can make `<interface>` the interface the subnet belongs to, for example, `eth0`, if you intend to have your IPs within your subnet accessed from your router over the LAN it is conneted to on `eth0`.
`ip addr` will also add a local route whne doing so (via `<interface>`). Obviously make sure `<address>` is within your chosen subnet.