Find the answer to your Linux question:
Results 1 to 3 of 3
I have tried to setup a Debian box with two network cards. The first network card is used to access the internet and the second is used to access a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2010
    Posts
    2

    Two network cards


    I have tried to setup a Debian box with two network cards. The first network card is used to access the internet and the second is used to access a windows 98 computer that is connected to an old apparatus. The connection with the w98 pc is through a network switch. I setup the /etc/network/interfaces file manually in this way:

    auto lo
    iface lo inet loopback

    auto eth0
    address 170.71.66.48
    netmask 255.255.255.0
    network 170.71.64.0
    broadcast 170.71.64.1
    gateway 170.71.64.1
    dns-nameservers 138.71.2.13 138.71.254.1

    auto eth1
    address 192.168.1.100
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255

    The problem that I have is that I can connect to the network for 2 to 5 minutes after is start, then I lose the connection. To recover the internet connection, I have to execute /etc/init.d/networking stop start. Also, when the internet connection is down I still can connect to the w98 pc with samba. I do not see any message when executing dmesg. Does any know what can be the cause of this problem?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,384
    This public IP assignment doesnt make any sense
    address 170.71.66.48
    netmask 255.255.255.0
    network 170.71.64.0
    broadcast 170.71.64.1
    gateway 170.71.64.1
    The address 170.71.66.48 is not in the network 170.71.64.0/255.255.255.0
    Also, given the netmask of 255.255.255.0, the broadcast is wrong.

    Can you verify the information on the network settings?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Apr 2010
    Posts
    2

    My bad

    My bad the IP should be
    170.71.64.48
    And broadcast
    170.71.64.255

Posting Permissions

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