oh, yea, sorry,
to add name server you'd need it add it to /etc/resolvconf/resolv.conf.d/head which is like a header to resolve.conf
or add it to interfaces configuration like you wrote,
the fact that static is not working might have something to do with your router,
for example the router might have this setting
DHCP pool [192.168.0.1 - 192.168.0.254] , just guessing here,
and any static ips need to be outside that range, so you'd change the range to 192.168.0.1-192-168-99 and try 192.168.0.100 for your server?
or as lifeoriley was saying, you can get the router to assign static ip based on mac address, the requirement here might or might not be (depending on router) that the static ips be not in dhcp pool
to add name server you'd need it add it to /etc/resolvconf/resolv.conf.d/head which is like a header to resolve.conf
or add it to interfaces configuration like you wrote,
the fact that static is not working might have something to do with your router,
for example the router might have this setting
DHCP pool [192.168.0.1 - 192.168.0.254] , just guessing here,
and any static ips need to be outside that range, so you'd change the range to 192.168.0.1-192-168-99 and try 192.168.0.100 for your server?
or as lifeoriley was saying, you can get the router to assign static ip based on mac address, the requirement here might or might not be (depending on router) that the static ips be not in dhcp pool
Comment