Welcome to the Linux Foundation Forum!

Network config for eth1 wiped after boot - Unbuntu server 17.10

CrownClit
CrownClit Posts: 1
edited March 2018 in New to Linux

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

Categories

Upcoming Training