rodrigosantosbr

/etc/network/interfaces example config and DNS

Jul 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Temporary method

ifconfig eth0 192.168.74.128 netmask 255.255.255.0 up

Definitive method

# The loopback network interface  
auto lo  
iface lo inet loopback  

# The primary network interface  
auto eth0 
iface eth0 inet static  
    address 192.168.74.128
    netmask 255.255.255.0
    gateway 192.168.74.2
    dns-nameserver 192.168.74.2
    dns-nameserver 8.8.8.8
Add Comment
Please, Sign In to add comment