The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: jrvalverde@cnb.uam.es (José R. Valverde)
Subject: [TUHS] simh+Quasijarus success
Date: Wed, 11 Aug 2004 13:15:33 +0200	[thread overview]
Message-ID: <20040811131533.2d8de811.jrvalverde@cnb.uam.es> (raw)
In-Reply-To: <Pine.LNX.4.44.0408111416510.6443-100000@cl.drevlanka.ru>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2686 bytes --]

On Wed, 11 Aug 2004 14:26:51 +0400 (MSD)
Sergey Lapin <slapin at drevlanka.ru> wrote:
ething interesting: I want to implement possibility to 
> allow outgoing connections from emulated VAX. As I understand, 4.3BSD  
> supports SLIP protocol. And I can get SLIP working through emulated serial 
>
Again, you don't need to. Just configure IP as usual using an emulated
Ethernet card. E.g. add to the SIMH configuration:

set xq mac=01-02-03-04-05-06
at xq0 eth0

Then boot as usual. When the system comes up, it will recognize an ethernet
card that you can configure as you want. E.g. on boot a message

qe0: delqa, hardware address 01:02:03:04:05:06

will appear in the system log, and you can use a /etc/netstart script like
the one that follows to configure the net:

- ------------------------- 8< cut here 8< -----------------------
#!/bin/sh -
#
#       @(#)netstart    1.1 (Berkeley) 1/10/99

routedflags=-q
rwhod=NO

# myname is my symbolic name
# my-netmask is specified in /etc/networks
#
#hostname=myname.my.domain
hostname=quasijarus.drevlanka.ru# should be the actual internet name of the emulated machine
mynetmask=81.211.111.250	# should be an actual valid IP address
mygateway=81.211.111.1		# should be the real IP of the gateway you use

hostname $hostname

ifconfig imp0 inet $hostname
ifconfig de0 inet $hostname netmask $mynetmask
ifconfig qe0 inet $hostname netmask $mynetmask
ifconfig lo0  inet localhost
route add $hostname localhost 0
hostid $hostname
route add default $mygateway 0
- ------------------------- 8< cut here 8< -----------------------

That should do the trick: now if you have a valid spare IP address to assign
the emulated machine, and use it above, your emulated system will behave like
any other Internet host.

Oh, and of course you will want to have a valid /etc/resolv.conf file so
users in the emulated host can resolve names,like e.g.

domain drevlanka.ru
nameserver 195.161.9.196
nameserver 81.211.111.254

See the manual and FAQ for SIMH for more details on what's going on and other
possible alternatives.

The same goes for 2.11BSD, which takes half the amount of space that 4.3BSD
does, and ultrix-3.1 which takes even less yet. E.g. from my setups here:

# du -sk 2.11bsd 4.4bsd ultrix-3.1
325328  2.11bsd
608952  4.3bsd
20524   ultrix-3.1

Which is to say, may be you will be better off using Ultrix-3.1, which BTW
also includes vi, more and much more... In this case just edit the /etc/rc
file to set the appropriate parameters to ifconfig and default route.

				j
-- 
	These opinions are mine and only mine. Hey man, I saw them first!

			    José R. Valverde

	De nada sirve la Inteligencia Artificial cuando falta la Natural


  reply	other threads:[~2004-08-11 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 10:26 Sergey Lapin
2004-08-11 11:15 ` José R. Valverde [this message]
2004-08-11 11:34   ` Sergey Lapin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040811131533.2d8de811.jrvalverde@cnb.uam.es \
    --to=jrvalverde@cnb.uam.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).