documentation/Examples/Debian/Joining a LAN.md

935 B

Procedure
  1. Sign in as root user

  2. Open /etc/network/interfaces with nano, e.g.

    nano /etc/network/interfaces
    
  3. Ensure something similar to the following exists for the primary adapter:

    allow-hotplug eth0
    iface eth0 inet static
        address 192.168.1.100/24
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1
    

    !!! info "Note"

     Substitute `eth0` for the true interface name of the device that will connect you to the LAN
    
    • The /24 is the CIDR format of having a netmask of 255.255.255.0. The non-CIDR equivalent is:

        address 192.168.1.100
        netmask 255.255.255.0
      
        # .../16 = 255.255.0.0
        # .../21 = 255.255.248.0
      
  4. Save and run systemctl restart networking && ifup eth0

  5. Run ip address and inspect the output for changes

Sources

https://wiki.debian.org/NetworkConfiguration