> Subject: Re: ivshmem-net issue > > On Wed, 27 Jan 2021 09:08:28 +0000 > Peng Fan <peng....@nxp.com> wrote: > > > Hi Jan, > > > > When booting inmate Linux, I have ivshmem-net configured. In root cell > > it shows as eth2. > > > > I monitor system network, and see eth2 is assigned a random address. > > This is not "random", this is where some dhcp-clients end up when they do > not receive an answer to their requests. It is a fallback when there is no > proper DHCP server and machines still want to gain an address to potentially > communicate. (zeroconf APIPA) > > So it is worth checking the DHCP server to see why it did not hand out an IP. > Maybe because of the random MAC that Jan talked about.
What do you mean DHCP server here? The eth2 is created by ivshmem-net, it has no physical connection. Thanks, Peng. Or maybe that > MAC was taken and the client did not have a valid lease for it. > > Henning > > > [ADDR]4: eth2 inet 169.254.232.89/16 brd 169.254.255.255 scope > > global eth2 valid_lft forever preferred_lft forever [ROUTE]local > > 169.254.232.89 dev eth2 table local proto kernel scope host src > > 169.254.232.89 [ROUTE]broadcast 169.254.255.255 dev eth2 table local > > proto kernel scope link src 169.254.232.89 > > [ROUTE]169.254.0.0/16 dev eth2 proto kernel scope link src > > 169.254.232.89 [ROUTE]broadcast 169.254.0.0 dev eth2 table local proto > > kernel scope link src 169.254.232.89 [ROUTE]default dev eth2 scope > > link > > > > > > And also in route table, it added two entries going through eth2, I > > not understand why it will add one entry that default use eth2 with > > gateway 0.0.0.0 #route Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref > > Use Iface default 0.0.0.0 0.0.0.0 U 0 > > 0 0 eth2 default _gateway 0.0.0.0 > UG > > 0 0 0 eth1 10.193.102.0 0.0.0.0 > 255.255.255.0 > > U 0 0 0 eth1 169.254.0.0 0.0.0.0 > > 255.255.0.0 U 0 0 0 eth2 > > > > It added the eth2 route table and will break nfsroot if we using > > 10.193.108.x for nfsroot server, because it will match the 1st entry. > > > > This is not jailhouse hypervisor issue, I just not sure the eth2 > > behavior, it is systemd does that route change or we need look into > > ivshmem-net to avoid update route table when creating eth2? > > > > Thanks, > > Peng. > > > > -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/DB6PR0402MB2760E2A8D41ACC217410A85388BA9%40DB6PR0402MB2760.eurprd04.prod.outlook.com.