Friday, May 12, 2017

Add Second NIC to Ubuntu Server

1) Type- dmesg | grep enp

2) Look for your network adapters, you'll see you're primary one (enp1s0) - look for the second one.  In my case in was enp2s0.

3) Type- sudo nano /etc/network/interfaces and add the following (using the name of your adapter you found in step 2)
For DHCP-
auto enp2s0
iface enp2s0 inet dhcp

For Static ip-
auto enp2s0
iface enp2s0 inet static
        address 192.168.0.3
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        dns-search example.com
        dns-nameservers 8.8.8.8 4.2.2.2


No comments:

Post a Comment