Liste des Groupes | Revenir à cs raspberry-pi |
<bp@www.zefox.net> writes:
At the same time, I'd like to enable a second connection using an
ethernet-to-WiFi bridge on eth0 using something like
>
auto eth0
iface eth0 inet static
address 192.168.1.8/24
gateway 192.168.1.254
>
Is that all it takes? Presently both /etc/network/interfaces
and /etc/network/interfaces.d are empty.
Those files are used by ifupdown which is a package you can
install. It's the Debian default even today but I don't think Raspios
follows that. In fact, as I recall, earlier they had a strange
hodgepodge script launched by the DHCP client and then I think they
moved to NetworkManager.
So if you want specific help, always mention Raspios version.
Anyways, just adding stuff to /etc/network/interfaces isn't going to do
anything and if you go and install ifupdown it might screw up your
network setup. So I'd work with whatever you have and add the ethernet
connection there. Or if it's just for experimentation all you need to do
is to run ifconfig and route or the newer ip commands for same.
Les messages affichés proviennent d'usenet.