Hi,
I am new to linux networking , please be patient with me i kindly request. i might ask silly or trivial questions.
Linux Host or LXC Host is Fedora 42
root@fedora:~# lxc profile show default
name: default
description: Default LXD profile
config: {}
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
used_by:
- /1.0/instances/lxc-001
- /1.0/instances/lxc-002
- /1.0/instances/rhel-lxc-001
root@fedora:~# lxc profile show bridgeprofile
name: bridgeprofile
description: “”
config: {}
devices:
eth1:
name: eth1
nictype: bridged
parent: bridge0
type: nic
used_by:
- /1.0/instances/lxc-001
- /1.0/instances/rhel-lxc-001
lxc-001 is container - not getting IPV4 Address aggigned, only ipv6 gets assigned.
rhel-lxc-001 is virtual machine getting IPV4 assigned , after i boot into rhel i used nmtui to add a new network profile with MAC ID of NIC and DHCP setting. After this it is getting IPV4 assigned by DHCP.
The following is output of “ip a” command.
root@fedora:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether fc:3f:db:d5:f2:94 brd ff:ff:ff:ff:ff:ff
altname enxfc3fdbd5f294
3: wlp13s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 16:f4:f9:40:8a:9a brd ff:ff:ff:ff:ff:ff permaddr 30:f7:72:0e:46:99
altname wlx30f7720e4699
inet 192.168.40.2/24 brd 192.168.40.255 scope global dynamic noprefixroute wlp13s0
valid_lft 862450sec preferred_lft 862450sec
inet6 2401:4900:266d:50a5:edeb:2143:12c9:dbef/64 scope global dynamic noprefixroute
valid_lft 334563sec preferred_lft 334563sec
inet6 fe80::fcfa:4a1:7003:f538/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: bridge0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 4e:58:ce:81:fa:f4 brd ff:ff:ff:ff:ff:ff
5: lxdbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 00:16:3e:c0:f8:83 brd ff:ff:ff:ff:ff:ff
inet 10.191.213.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever
Number 5 : lxdbr0 is the default lxd bridge created, i did not create it.
Number 4 : bridge0 is the bridge i created with Number 2 : enp7s0 as slave or physical NIC LAN adapter which connects to Linksys Router. This router has no internet functionality. Only DHCP Enabled.
Please ignore lxc-002 as of now, i am not booting that container at all.
lxc-001 and lxc-002 both are ubuntu 22.04 images from lxd launch image command.
lxc-001 and rhel-lxc-001 are assigned two profiles - one default and another bridge profile.
Please let me know for any further configuration.
Thanks,
Harishkumar