Hello,
Yes I have tried that guide. Here are my steps and some info:
ip a
4: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.226.135.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever
inet6 XXXXXX/64 scope global
valid_lft forever preferred_lft forever
inet6 XXXXXXXX/64 scope link
valid_lft forever preferred_lft forever
lxc network set lxdbr0 ipv4.routes X.X.X.41/32
lxc launch ubuntu:18.04 test1
Creating test1
Starting test1
lxc list
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
| test1 | RUNNING | 10.226.135.107 (eth0) | fd42:8e36:8eb:b134:216:3eff:fe09:a695 (eth0) | PERSISTENT | 0 |
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
ip -4 addr add dev eth0 X.X.X.41/32 preferred_lft 0
(^ run inside container)
lxc list
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
| test1 | RUNNING | X.X.X.41 (eth0) | fd42:8e36:8eb:b134:216:3eff:fe09:a695 (eth0) | PERSISTENT | 0 |
| | | 10.226.135.107 (eth0) | | | |
+-------+---------+-----------------------+----------------------------------------------+------------+-----------+
Now when I go into the container and curl my IP, I get the hosts IP back. Additionally, when I install apache in the container, I can curl it locally in the container and from the host using both IPs, however I cannot curl it from outside the host, or access the apache test page on the internet.