Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Edit the /etc/network/interfaces file

    Code Block
    languagebash
    azeti@Nexcom-Master:~$ sudo vi /etc/network/interfaces


  2. Set the IP, gateway and DNS for each interface (enp2s0 for Ethernet 1 and enp3s0 for Ethernet 2)

    Code Block
    languagebash
    allow-hotplug enp3s0
    iface enp3s0 inet static
            address 10.0.0.1
            netmask 255.255.255.0
    		gateway 10.0.0.100
    		dns-nameservers 8.8.8.8 8.8.4.4


  3. Start the connection

    Code Block
    languagebash
    root@Nexcom-Master:~#sudo ifdown enp3s0 ;sudo ifup enp3s0


...