auto br0 iface br0 inet static address 192.168.100.1 netmask 255.255.255.0 How to add…
- User
auto br0 iface br0 inet static address 192.168.100.1 netmask 255.255.255.0
How to add this to /etc/network/interfaces.d/ directory?
- Assistant
To add the given network configuration for
br0to the/etc/network/interfaces.d/directory, you should follow these steps:-
Open a terminal on your Linux system.
-
Create a new file in the
/etc/network/interfaces.d/directory. You can name this file something descriptive, likebr0.cfg. Use a text editor of your choice (here, I'll usenanoas an example):bashsudo nano /etc/network/interfaces.d/br0.cfg -
Add the configuration to the file. In the text editor, enter the following lines:
codeauto br0 iface br0 inet static address 192.168.100.1 netmask 255.255.255.0 -
and exit the text editor. In , you can do this by pressing to save (then press to confirm), and to exit.
-