I'm not sure if it is what you want, but the easiest thing would be to
use the loopback interface, whick is probably already set up. By default
the IP address is 127.0.0.1 or you can access it as "localhost".

Just start your server (you can start sendmail if you didn't write your
server yet) and connect to it using telnet:
# /etc/rc.d/init.d/sendmail start

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.9.3/8.9.3; Sat, 18 Nov 2000
10:22:57 -0300
type this> ehlo localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1],
pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
type this too> help
214-This is Sendmail version 8.9.3
214-Topics:
214-    HELO    EHLO    MAIL    RCPT    DATA
214-    RSET    NOOP    QUIT    HELP    VRFY
214-    EXPN    VERB    ETRN    DSN
214-For more info use "HELP <topic>".
214-To report bugs in the implementation send email to
214-    [EMAIL PROTECTED]
214-For local information send email to Postmaster at your site.
214 End of HELP info
then type this> quit
221 localhost.localdomain closing connection
Connection closed by foreign host.
$


Localhost is useful whenever you want to connect to the same computer
using TCP/IP, and it doesnt' require any additional configuration. :)
SMTP is a very human readable/writable protocol. (it even supports the
command "help") Telnet can be used as a client for almost any protocol.
(so long as you can speak it =) )

"Mike A. Harris" wrote:
> 
> On Thu, 16 Nov 2000, Del Campo, Damian wrote:
> 
> >Date: Thu, 16 Nov 2000 12:21:42 +1100
> >From: "Del Campo, Damian" <[EMAIL PROTECTED]>
> >To: "'RedHat, DevList'" <[EMAIL PROTECTED]>
> >Content-Type: text/plain
> >Subject: Self Network
> >
> >How can one set up on a single computer, a virtual network such that you can
> >simulate two network locations.
> >Reason for this is to develop & test simple network software ie, setup
> >connection and communicate between server and client as if each was on a
> >different computer and talking over a network (IP).
> >
> >I have been told that this is very easy but never found out how.
> >PS I am running RH6.1
> 
> IP aliasing.  Run linuxconf, and set up an ip alias for your
> machine.  If you're running the same service on both IP's such as
> a webserver for each that responds differently, you need to use
> virtual hosting.  There are howto's on this on the doc CD.
> 
> Another option is to use VMware to do it, which simulates
> multiple machines 100% by running multiple OS's simultaneously.
> This is the best test bed for a 1 machine setup.

-- 
Ivan Jager



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to