Debian netowrk manager
Hi I am having a issue with network manager.
i am setting fog up on a server with 2 network cards i want the following configuration on the cards
eth0 to be DHCP and eth1 to be 192.168.2.1
but when i try to configure this with network manager it seems to be setting both with same configuration of the static IP.
I tried editing etc/network/interfaces bit with my limited knowledge it didnt go well.
i had the following lines in interfaces file
auto eth0 iface eth0 inet dhcp auto eth1 iface eth0 inet static address 192.168.2.1 subnet 255.255.255.0 gateway 0.0.0.0
any ideas where i went wrong or how can i use network manager to confiure a static ip and a auto ip.
Guys, he solved his issue, this is an old topic. We are just playing Necromancy.
If you have only a network card (in the example eth0), it’s :
auto eth0 iface eth0 inet static address 192.168.2.1 netmask 255.255.255.0 gateway 0.0.0.0 << No gateway ???
I dont know if i see is a typo or something else, but after “auto eth1” you need to set iface eth1… and not eth0 again.
its not subnet, its netmask
never mind i figured it out.