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

Re: do I need to ifconfig as well as netroute?



On Fri, May 29, 1998 at 01:42:51PM +0100, Ian Lynagh wrote:
> My IP address is 192.168.37.2
> My friends IP addresses are 10.x.y.z
> I want to be able to ping them/have them telnet to me etc.
I assume, you live on the same ethernet wire ?

You want ip aliasing.
You need a free ip address in the 10.x.y.z net, say 10.1.2.3

# modprobe ip_alias
# ifconfig eth0:0 10.1.2.3 netmask 255.0.0.0 broadcast 10.255.255.255
# route add -net 10.0.0.0 dev eth0:0

The reason why route alone does not work is (and please may someone more
knowledgeable than me correct me if I am wrong!) that arp requests for the
own/other IP are not answered or generated right.


Nils

--
*-----------------------------------------------------------------------------*
| Quotes from the net:  L> Linus Torvalds, W> Winfried Truemper               |
| L>this is the special easter release of linux, more mundanely called 1.3.84 |
| W>Umh, oh. What do you mean by "special easter release"?. Will it quit      |
* W>working today and rise on easter?                                         *

Attachment: pgpHEhUQrspZc.pgp
Description: PGP signature


Reply to: