fix usb ssh
This commit is contained in:
parent
cfbb162ccd
commit
cdcb349cf4
1 changed files with 10 additions and 12 deletions
|
|
@ -18,17 +18,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.networkmanager.ensureProfiles.profiles.usb-network = {
|
systemd.network.links."10-usb-gadget" = {
|
||||||
connection = {
|
matchConfig.Type = "gadget";
|
||||||
id = "USB network";
|
linkConfig.Name = "usb0";
|
||||||
type = "ethernet";
|
|
||||||
interface-name = "usb0";
|
|
||||||
};
|
|
||||||
ipv4 = {
|
|
||||||
method = "manual";
|
|
||||||
address1 = "172.16.42.1/24";
|
|
||||||
never-default = true;
|
|
||||||
};
|
|
||||||
ipv6.method = "disabled";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.interfaces.usb0.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "172.16.42.1";
|
||||||
|
prefixLength = 24;
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue