A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

March 26, 2018

Network config for eth1 wiped after boot - Unbuntu server 17.10

Forums: 

Network config for eth1 wiped after boot - Unbuntu server 17.10

Hello everyone. I am new to Linux, using if for two weeks only but have some good Windows desktop and server experience. I have two questions that i would like to get an answer for. 
1 Why my eth1 config is wiped after rebbot. I have set it up in two places
     First from command line 
         sudo ip link set dev eth1 up
         sudo ifconfig eth1 192.168.0.42 netmask 255.255.255.0
         sudo route add default gw 192.168.0.61

   Second: in /etc/network/interfaces
       auto eth1
       iface eth1 inet static
       address 192.168.0.42
       netmask 255.255.255.0
       gateway 192.168.0.61
       dns-nameservers 192.168.0.2 192.168.0.3 203.12.160.35
       up route add -net 192.168.0/24 dev eth1

2 Where are the settings for eth0 stored which i have specified during instalation. Those are working fine after reboot.

Could you please help? And if possible explain issue like to the person with no Linux experience.

 

Cheers:
CC

Click Here!