Find the answer to your Linux question:
Results 1 to 7 of 7
hi! i'm new here... I have instaled debian sarge in a pc. And this pc had 2 netwok devices. The first (eth0) is configured and i can access do the ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Location
    Portugal
    Posts
    5

    Network

    hi! i'm new here...

    I have instaled debian sarge in a pc. And this pc had 2 netwok devices. The first (eth0) is configured and i can access do the internet and everithyng... But I need to configure the second (eth1).

    I just have modified the file /etc/network/interfaces... But i forgot something... because eth1 doesn't work...


    Sorry my english (i'm portuguese)...


    I hope somebody could help me...


    Tks!!

  2. #2
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    Can you show us the output of "ifconfig"?
    Registered Linux user #389109
    My Semi-Linux Blog

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Location
    Portugal
    Posts
    5
    ifconfig just have eth0 and local. How can configure that to detect eth1??

  4. #4
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    Have you tried:

    Code:
    ifconfig eth1 up
    Registered Linux user #389109
    My Semi-Linux Blog

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Location
    Portugal
    Posts
    5
    I tried now and that make link up.

    Ifconfig have a litle difference between eth0 and eth1.
    The second line in eth0 is "inet end.:10.1.1.10 Bcast:10.255.255.255 Masc:255.255.0.0" and doesn't exist on eth1.

    Why?? Can somebody help me??

  6. #6
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    You need to set your TCPIP information. This will set your IP address to 10.1.1.11:

    Code:
    ifconfig eth1 10.1.1.11 netmask 255.255.0.0
    You might need to reset eth1 for the change to take effect:

    Code:
    ifconfig eth1 down
    ifconfig eth1 up
    But .... if you're using DHCP on your network, you should use dhcpcd to set the IP info instead of setting a static IP address.
    Registered Linux user #389109
    My Semi-Linux Blog

  7. #7
    Just Joined!
    Join Date
    Nov 2005
    Location
    Portugal
    Posts
    5
    No, have doesn't have dhcp.

    It's everithyng working!!!

    TKS!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •