nano /etc/network/interfaces

 

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

#Karta WAN
allow-hotplug ens1
iface ens1 inet static
  address 192.168.1.65
  netmask 255.255.255.0
  gateway 192.168.1.1
  network 192.168.1.0
  broadcast 192.168.1.255
  dns-nameservers 8.8.8.8 1.1.1.1

#Karta wewnętrzna LAN
auto enp7s7
allow-hotplug enp7s7
iface enp7s7 inet static
  address 192.168.10.200
  netmask 255.255.255.0
  network 192.168.10.0
  broadcast 192.168.10.255
  dns-nameservers 192.168

Restart sieci

systemctl restart networking

 

Spis treści: