Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IP Numbers

0 views
Skip to first unread message

Jason M. Vanick

unread,
Feb 27, 1995, 2:50:08 PM2/27/95
to
I have a freebsd system setup as a router between 2 networks, and I want
to have the address of the system that is acting as a router be from the
other ethernet. Here's sorta what it looks like:

198.51.252.1 ----------- 199.89.229.1 (outside)
----------------------| FREEBSD |-----------------------
-----------

If the freebsd talks to the outside world (199.89.229.1), I want
it to identify itself as 198.51.252.1... is this possible?

Thanks!
- Jason
--
Jason Vanick ----------------------------------- ja...@admin.marist.chi.il.us
Director of Computer Services & Systems Administrator at Marist High School
Alternate: ja...@marist.marist.chi.il.us Snail Mail: 4200 W. 115th Street
Voice: (312)881-6360 Chicago, Il. 60655

Peter da Silva

unread,
Feb 28, 1995, 10:04:33 AM2/28/95
to
In article <3itadg$1...@gagme.wwa.com>,

Jason M. Vanick <ja...@gagme.wwa.com> wrote:
> If the freebsd talks to the outside world (199.89.229.1), I want
> it to identify itself as 198.51.252.1... is this possible?

IP numbers belong to interfaces, not hosts. You have a dual homed host.
When it talks on a given interface it will identify it as that interface.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast du Heute schon deinen Wolf umarmt?"

Terry Lambert

unread,
Mar 2, 1995, 12:15:41 AM3/2/95
to
cra...@munin.fnal.gov (Matt Crawford) wrote:

] > Jason M. Vanick <ja...@gagme.wwa.com> wrote:
] > > If the freebsd talks to the outside world (199.89.229.1), I want
] > > it to identify itself as 198.51.252.1... is this possible?
] Peter da Silva sez:
] > IP numbers belong to interfaces, not hosts. You have a dual homed host.

] > When it talks on a given interface it will identify it as that interface.
]
] Well, it's possible to code an application such that the packets it
] sends have a source address corresponding to the interface of your
] choice -- see bind(2) -- but it's probably not worth your while to
] hack every program you've got to do that.

Use the IP tunnel device. Two instance of it, in fact.


Terry Lambert
te...@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.

Brant Katkansky

unread,
Mar 4, 1995, 12:20:38 PM3/4/95
to
In article <3j3k9t$s...@park.uvsc.edu>,
Terry Lambert <te...@cs.weber.edu> wrote:

>cra...@munin.fnal.gov (Matt Crawford) wrote:
>]
>] Well, it's possible to code an application such that the packets it
>] sends have a source address corresponding to the interface of your
>] choice -- see bind(2) -- but it's probably not worth your while to
>] hack every program you've got to do that.
>
>Use the IP tunnel device. Two instance of it, in fact.
>

I've compiled support for the tun device into the kernel of my gateway,
but have no idea how to use it.

There doesn't seem to be a man page for the tun device. I even ftp'd a
new copy of the manpages dist from 2.0-950210-SNAP to make sure I didn't
miss it during the upgrade.

Is there someplace in particular I should look for information regarding
this device?

--
b...@dtr.com | Internet / UNIX shell access from $6.00/month -
DTR/net | http://www.dtr.com/ or email to in...@dtr.com for
| more information. Available starting mid-March 1995.

Terry Lambert

unread,
Mar 7, 1995, 2:26:50 PM3/7/95
to
b...@dtr.com (Brant Katkansky) wrote:
] In article <3j3k9t$s...@park.uvsc.edu>,

] Terry Lambert <te...@cs.weber.edu> wrote:
] >cra...@munin.fnal.gov (Matt Crawford) wrote:
] >]
] >] Well, it's possible to code an application such that the packets it
] >] sends have a source address corresponding to the interface of your
] >] choice -- see bind(2) -- but it's probably not worth your while to
] >] hack every program you've got to do that.
] >
] >Use the IP tunnel device. Two instance of it, in fact.
] >
]
] I've compiled support for the tun device into the kernel of my gateway,
] but have no idea how to use it.
]
] There doesn't seem to be a man page for the tun device. I even ftp'd a
] new copy of the manpages dist from 2.0-950210-SNAP to make sure I didn't
] miss it during the upgrade.
]
] Is there someplace in particular I should look for information regarding
] this device?

Actually, I think there *is* a man page. Did you do a full install?

The suggestion for using the tunnel device is that it allows you
to pretend to have multiple interfaces when in fact you do not.

This removes the "hack every program you've got" limitation, but
won't necessarily solve the problem without one or more additional
small programs being written.

The author of the tunnel device's email address is listed in the
source code for the device. Have you tried contacting the author?

0 new messages