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

    [CODE]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

    [/CODE]
    eth0

    any ideas where i went wrong or how can i use network manager to confiure a static ip and a auto ip.


  • Developer

    Guys, he solved his issue, this is an old topic. We are just playing Necromancy.


  • Moderator

    Hi,

    If you have only a network card (in the example eth0), it’s :

    [CODE]auto eth0
    iface eth0 inet static
    address 192.168.2.1
    netmask 255.255.255.0
    gateway 0.0.0.0 << No gateway ???[/CODE]

    Regards,
    Ch3i.



  • 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.


  • Developer

    its not subnet, its netmask



  • never mind i figured it out.


Log in to reply
 

361
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.