[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Another network forwarding question.



On 17 Jan 1997, Rob Browning wrote:
>I was trying to set up a debian box as a gateway from a small 4-bit
>subnet to a larger 8-bit (class C?) subnet.  I have the kernel
>configured properly (I think), and I have the two network interfaces
>on the gateway and the routes set up.
Let's assume, the 8-bit net is 192.168.1.[0-255]
and your smaller 4-bit net is 192.168.1.[16-31]
Let's also assume that gateway has ip 192.168.1.17

If all machines on the bigger subnet have netmask 255.255.255.0
they try to reach all host on 192.168.1.* directly by asking:
   Who is (e.g.) 192.168.1.19 ?

And there 192.168.1.17 should answer: "That's me" and should forward the
packets to the smaller subnets. (This is just a longer wording of saying
that your administrators are right)

man arp tells you that

  arp -h 'hardwareadress' 192.168.1.17 netmask 255.255.255.240 pub

should do the trick. 'hardwareadress' is the Ethernet adress of the card
sitting on the 8-bit Class C subnet. It's the 6 Byte number separated by
colons that you get from the output of the ifconfig command.

Hope that helps

Nils

--
     \              /                        | Nils Rennebarth
    --* WINDOWS 42 *--                       | Schillerstr. 61 
     /              \                        | 37083 Göttingen
                                             | ++49-551-71626
   Micro$oft's final answer                  | http://www.nus.de/~nils


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: