· 5 years ago · Oct 12, 2019, 07:38 PM
1# This file describes the network interfaces available on your system
2# and how to activate them. For more information, see interfaces(5).
3
4source /etc/network/interfaces.d/*
5
6# The loopback network interface
7auto lo
8iface lo inet loopback
9
10# The primary network interface
11
12
13auto eth0
14iface eth0 inet static
15 address 192.168.1.12
16 netmask 255.255.255.0
17 gateway 192.168.1.1
18 dns-nameservers 192.168.1.13
19 dns-search <SNIP>
20 up ip addr add 192.168.1.13/255.255.255.0 dev eth0
21
22
23#auto eth0:0
24#iface eth0:0 inet static
25# address 192.168.1.13
26# netmask 255.255.255.0
27
28#auto eth1
29#iface eth1 inet static
30#address 192.168.1.13
31#netmask 255.255.255.0
32#gateway 192.168.1.1