I wasn’t having a lot of luck with bridgeprofile so I am trying your macvlan tutorial.
So on my lxc host:
ray@LPContainers:~$ ip route show default 0.0.0.0/0
default via 192.168.1.1 dev enp0s3
I ran the following 2 commands:
lxc profile device set lanprofile eth0 nictype macvlan
lxc profile device set lanprofile eth0 parent enp0s3
lxc profile show lanprofile
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: macvlan
parent: enp0s3
type: nic
name: lanprofile
used_by: []
I launched LP2 and here is it’s ipconfig:
root@LP2:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:8d:42:eb
inet6 addr: fe80::216:3eff:fe8d:42eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:67 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5122 (5.1 KB) TX bytes:6804 (6.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
And pinging my LAN Windows box:
root@LP2:~# ping 192.168.1.149
connect: Network is unreachable
Here is my Windows ipconfig:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : tampabay.rr.com
IPv4 Address. . . . . . . . . . . : 192.168.1.149
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.tampabay.rr.com:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : tampabay.rr.com
Ideas?
Ray