Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 1996 09:30:52 -0100
From:      Darius Moos <>
To:        Jeff Newton <>
Cc:        FreeBSD-questions <>
Subject:   Re: Ifconfig (setup a point to point link)
Message-ID:  <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
You can not span a continous C-class over two different network-
segments. That is what you are trying to do.
Your options:
 1. introducing a RFC-private net
 2. subnetting
 3. arping

  (Assuming the router is connected to the internet
   NIC1, NIC2 element of {ed0, ed1, ep0, de0, ...})

  ifconfig NIC1 inet netmask 0xffffff00
  ifconfig NIC2 inet netmask 0xffffff00
  Disadvantage: You have to use proxying or network-address-translation

  ifconfig NIC1 inet netmask 0xffffff80
  ifconfig NIC2 inet netmask 0xffffff80

  Disadvantage: Waste of
  Variants: You can tune the netmask to your needs:
      netmask 0xffffff80 gives you 2 subnets with each having 126 usable plus broadcast and network.
      netmask 0xfffffffc gives you 64 subnets with each having 2 usable plus broadcast and network.
      Tune the netmask to your needs.

  (LIP element of {, ...,};
   HWADRofNIC2 := ethernet-hardwareadr. of NIC2)
  ifconfig NIC1 inet netmask 0xfffffffc
  ifconfig NIC2 inet netmask 0xffffff00
  arp -s LIP HWADRofNIC2         

  You have to arp for every possible LIP.
  Disadvantage: hardware-dependent to the HWADRofNIC2

Darius Moos.

Jeff Newton wrote:
> Hi all,
> After hours of banging my head against the wall trying to solve this
> problem, I thought I'd ask the gurus out there for some assistance.
> I have a multi-homed freebsd box I'd like to use as a firewall/gateway.
> Here's the way I want to set it up:
> router (XXX.XXX.XXX.254)
> |
> |
> point to point link
> |
> |
> gateway
> |
> |
> I've only got one C class and people have said you can't put the same
> network on two interfaces...others say that a point to point link should
> work (its easily done with Linux).
> I figure ifconfig spits up at me cause I don't have the syntax righ for
> the point to point right.  Can someone show me how to do this?  Can this
> be done by adding static routes in a particular order.
> Any advice would be much appreciated.
> --
> Jeff Newton
> Systems Administrator
> Tantalus Communications
> Datapark Internet Services Inc.

Want to link to this message? Use this URL: <>