Skip to content

Commit 38b8e1a

Browse files
authored
Update 06-profiles.md (#1077)
- punctuation - ... add the default route for ... - delete apostrophe
1 parent 26de9a3 commit 38b8e1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/books/lxd_server/06-profiles.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ And then look for the interface with the LAN IP assignment in the 192.168.1.0/24
5252
valid_lft forever preferred_lft forever
5353
```
5454

55-
So in this case, the interface would be "enp3s0".
55+
So, in this case, the interface would be "enp3s0".
5656

5757
Now let's modify the profile:
5858

@@ -234,7 +234,7 @@ To do this, we need to gain shell access to the container again:
234234
lxc exec rockylinux-test-9 bash
235235
```
236236

237-
Next, we are going to create a bash script in `/usr/local/sbin` called "static"
237+
Next, we are going to create a bash script in `/usr/local/sbin` called "static":
238238

239239
```
240240
vi /usr/local/sbin/static
@@ -251,10 +251,10 @@ The contents of this script are simple:
251251
/usr/sbin/ip route add default via 192.168.1.1
252252
```
253253

254-
So, what are we doing here? First, we rename eth0 to a new name that we can manage. We have chosen "net0" here. Second, we assign the new static IP that we have allocated for our container. In this case 192.168.1.151. Now we bring up the new "net0" interface. Finally, we need to add the defaultt route for our interface.
254+
So, what are we doing here? First, we rename eth0 to a new name that we can manage. We have chosen "net0" here. Second, we assign the new static IP that we have allocated for our container. In this case 192.168.1.151. Now we bring up the new "net0" interface. Finally, we need to add the default route for our interface.
255255

256256

257-
Make our script executable with
257+
Make our script executable with:
258258

259259
```
260260
chmod +x /usr/local/sbin/static
@@ -266,7 +266,7 @@ Next, we add this to root's crontab for the container using the @reboot time:
266266
@reboot /usr/local/sbin/static
267267
```
268268

269-
Finally, exit the container and restart it
269+
Finally, exit the container and restart it:
270270

271271
```
272272
lxc restart rockylinux-test-9
@@ -299,7 +299,7 @@ Luckily, In Ubuntu's implementation of Network Manager, the macvlan stack is NOT
299299
First, just like with our rockylinux-test-9 container, we need to assign the template to our container:
300300

301301
```
302-
lxc profile assign ubuntu-test default,macvlan`
302+
lxc profile assign ubuntu-test default,macvlan
303303
```
304304

305305
That should be all that is necessary to get a DHCP assigned address. To find out, stop and then start the container again:

0 commit comments

Comments
 (0)