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@azeti-4300:~$ sudo nano /etc/network/interfaces


  2. Set the IP for each interface. If necessary add a gateway and DNS. 

    Code Block
    languagebash
    #configuration for Ethernet 1
    allow-hotplug enp2s0
    iface enp2s0 inet static
      address 10.240.1.24/24
      gateway 10.240.1.254
      dns-nameservers 10.31.1.130 10.44.1.130
    
    #configuration for ethernet 2
    allow-hotplug enp3s0
    iface enp3s0 inet static
      address 192.168.0.100/23

    Interface list:

    Interace
    InterfacePort
    enp2s0Ethernet 1
    enp3s0Ethernet 2
    enp4s0Ethernet 3
    enp5s0Ethernet 4
    enp6s0

    Ethernet 5

    enp7s0Ethernet 6


  3. Save the configuration file (press Ctrl+x, write "y" so save the changes, and enter)
  4. Start the connection

    Code Block
    languagebash
    azeti@azeti-4300:~#sudo ifdown enp2s0 ;sudo ifup enp2s0


...