(OT): networking problem (using Sarge as router)

From: H. S. (greatexcalibur_at_yahoo.com)
Date: 04/29/04

  • Next message: Broughton, Derek: "RE: [debian-user] Wireless Optical Mouse (MS brand-ish)"
    To: debian-user@lists.debian.org
    Date: Thu, 29 Apr 2004 12:20:10 -0400
    
    

    Hi,

    This is a bit off topic, but since it involves Knoppix and Sarge network
    interfaces files, I thought maybe I could get some help here.

    I am trying to add another computer to my internal home network. My main
    computer, say HomeR (running Debian Sarge 2.4.24-1-686), working as a
    router has two NICs. It's eth0 connects to the high speed modem and eth1
    connects to a switch and has the configuration:
    #-------------------------------------------------------------------
    #> cat /etc/network/interfaces
    # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
    # /usr/share/doc/ifupdown/examples for more information.
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

    # The loopback interface
    auto lo
    iface lo inet loopback

    # The first network card - this entry was created during the Debian
    installation
    # (network, broadcast and gateway are optional)
    auto eth0
    iface eth0 inet static
             address 192.168.1.0
             netmask 255.255.255.0
             network 192.168.0.0
             broadcast 192.168.0.255
    # gateway 192.168.10.1
             pre-up /etc/iptables/iptables.sh panic
             pre-up /etc/iptables/iptables.sh preup_start
    auto eth1
    iface eth1 inet static
             address 192.168.0.2
             netmask 255.255.255.0
             network 192.168.0.0
             broadcast 192.168.0.255
    # gateway 192.168.1.0
      #-------------------------------------------------------------------
    The route command on HomeR gives:
    #> route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    a.b.c.d 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    0.0.0.0 a.b.c.d 0.0.0.0 UG 0 0 0 ppp0

    where a.b.c.d is the IP that my ISP provides each time I connect to it.

    My two internal computer are connected to the swith from their NICs.

    One of my internal home computers, say Home1, is 192.168.0.10 and is
    working fine (ping, internet, ssh, etc. towards HomeR and outside). The
    other, say Home2, is the one I am trying to add. I put in Knoppix and
    set Home2 up as 192.168.0.11, with netmask 255.255.255.0, gateway
    192.168.0.2 and with the nameserves which are listed in
    /etc/resolve.conf of HomeR (the router machine).

    I cannot ping to or from 192.168.0.11 any other computer. Domain names
    do not get resolved. If I try pinging it from HomeR, I get:
    # ping -c4 192.168.0.11
    PING 192.168.0.11 (192.168.0.11) 56(84) bytes of data.
     From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
     From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
     From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
     From 192.168.0.2 icmp_seq=4 Destination Host Unreachable

    --- 192.168.0.11 ping statistics ---
    4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
    , pipe 3

    But if I disconnect Home1 from the internal LAN, and do 'tcpdump -i
    eth1' on HomeR, and ping HomeR from Home2, I get:
    # tcpdump -i eth1
    tcpdump: listening on eth1
    03:19:03.838878 arp who-has 192.168.0.2 tell 192.168.0.11
    03:19:03.838928 arp reply 192.168.0.2 is-at 0:50:ba:50:3:87
    03:19:04.833008 arp who-has 192.168.0.2 tell 192.168.0.11
    03:19:04.833039 arp reply 192.168.0.2 is-at 0:50:ba:50:3:87
    03:19:05.833046 arp who-has 192.168.0.2 tell 192.168.0.11
    03:19:05.833091 arp reply 192.168.0.2 is-at 0:50:ba:50:3:87

    But if I do 'tcpdump -i eth0' on Home2 and ping Home2 from HomeR, I get
    no activity. So it seems that Home2 is able to send packets to the
    192.168.0.0 network, but no other machine is able to send any to
    192.168.0.11(Home2).

    Any ideas what could be going wrong or how do I go about solving this?

    Thanks a ton,
    ->HS

    -- 
    (Remove all underscores,_if any_, from my email address to get the 
    correct one. Apologies for the inconvenience, but this is to reduce spam.)
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Broughton, Derek: "RE: [debian-user] Wireless Optical Mouse (MS brand-ish)"

    Relevant Pages

    • Re: Problem with bcm43xx-80211 Revisited
      ... Andrew Robinson wrote: ... PING 192.168.1.1 56bytes of data. ... eth1 marked up and with an IP address assigned. ... It seems like some kind of timing problem, like ifcfg-eth1 is getting run before the bcm43xx-mac80211 module has made eth1 the network interface. ...
      (Fedora)
    • Re: Problem with bcm43xx-80211 Revisited
      ... PING 192.168.1.1 56bytes of data. ... eth1 marked up and with an IP address assigned. ... It seems like some kind of timing problem, like ifcfg-eth1 is getting run before the bcm43xx-mac80211 module has made eth1 the network interface. ... I just like seeing the setting in a parameter file. ...
      (Fedora)
    • need help in adding a computer to internal home network (host unreachable)
      ... I am trying to add another computer to my internal home network. ... It's eth0 connects to the high speed modem and eth1 ... The route command on HomeR gives: ...
      (comp.os.linux.networking)
    • Re: (network issue) can nobody understand this?
      ... > I am trying to add another computer to my internal home network. ... > iface lo inet loopback ... > iface eth1 inet static ... > working fine (ping, internet, ssh, etc. towards HomeR and outside). ...
      (comp.os.linux.networking)
    • Re: simple ping; pinging 101
      ... when the cable is plugged into eth0, and the network script on arrakis ... then arrakis can ping caladan. ... problem with eth1. ...
      (Fedora)