[Simh] Tun/Tap in Mint for RSX-11M Plus 4.6 running in SimH PDP11
Jonathan Welch
jhwelch at gmail.com
Mon Jun 24 01:43:49 EDT 2019
For my recent VAX installation on windows I used NAT and initially tested
using an ethernet connection. I cannot telnet in but most outbound
connections work. At least eliminate one area of possible trouble by using
a wired connection for initial testing.
On Sun, Jun 23, 2019, 9:07 PM Will Senn <will.senn at gmail.com> wrote:
> This question may best be asked elsewhere but I'm struggling to make it
> work with SimH, so here it is :)
>
> tldr; How can I get tun/tap working with Mint 19 and SimH RSX-11M Plus
> 4.6 so that I can access the internet from the instance and telnet to it
> from another machine on the network?
>
> Here's the background... I am trying to get RSX-11M Plus 4.6 working in
> SimH with networking on my Mint 19.1 T430 Thinkpad and it's proving
> difficult (both in execution and understanding). I've tried this tap
> stuff before and remember being uber frustrated then, too. But now, I
> know way more about stuff then I did back then.
>
> System: T430 ThinkPad w/16GB Ram, SSD's, 1600x screen.
>
> OS: Linux Mint 19.1 (debian/ubuntu derivative).
>
> Software: SimH built with: make USE_READER_THREAD=1 USE_TAP_NETWORK=1
> USE_INT64=1 vax vax780 pdp11 pdp8
>
> What I'm trying to do: Get my RSX-11M talking to the internet and be
> able to telnet into it, preferably from another laptop on the network.
>
> What I've tried: followed a gist by Upi Temminen for getting it running
> on a pi:
>
> https://gist.github.com/desaster/c49b0f7afa5e061b8f33f159e521b6ee
>
> After installing parprouted, uml-utilities, tunctl, and simh as
> described, did the following:
>
> /etc/sysctl.conf
> net.ipv4.conf.all.proxy_arp=1
> net.ipv4.ip_forward=1
>
> sudo vi /etc/network/interfaces.d/tap
> auto tap-simh0
> iface tap-simh0 inet manual
> pre-up tunctl -t tap-simh0 -u simhuser
> up ip link set tap-simh0 up
> up /usr/sbin/parprouted wlp3s0 tap-simh0
> up /sbin/ip link set wlp3s0 promisc on
> post-down ip link set tap-simh0 down
> post-down tunctl -d tap-simh0
>
> auto tap-simh1
> iface tap-simh1 inet manual
> pre-up tunctl -t tap-simh1 -u simhuser
> up ip link set tap-simh1 up
> up /usr/sbin/parprouted wlp3s0 tap-simh1
> up /sbin/ip link set wlp3s0 promisc on
> post-down ip link set tap-simh1 down
> post-down tunctl -d tap-simh1
>
> rebooted
>
> used oscar's boot.ini, but with this section for ethernet:
>
> ; Ethernet
> set xu enable
> set xu type=deuna
> set xu mac=aa:00:04:00:0c:34
> attach xu tap:tap-simh0
> sho xu
>
> which resulted in:
>
> PDP-11 simulator V4.0-0 Current git commit id: b3fa1f9f
> Disabling XQ
> /opt/pidp11/systems/rsx11mplus/boot.ini-16> attach xu tap:tap-simh0
> libpcap version 1.8.1
> Eth: opened OS device tap-simh0
> XU address=17774510-17774517, vector=120, BR5, MAC=AA:00:04:00:0C:34
> type=DEUNA, throttle=disabled
> attached to tap:tap-simh0
> CPU 11/70, FPP, RH70, autoconfiguration enabled, idle disabled
> 4088KB
> RQ0: 'PiDP11_DU0.dsk' Contains an ODS1 File system
> RQ0: Volume Name: RSX11MPBL87 Format: DECFILE11A Sectors In Volume:
> 615000
> /opt/pidp11/systems/rsx11mplus/boot.ini-35> attach rq1 PiDP11_DU1.dsk
> RQ1: creating new file
> /opt/pidp11/systems/rsx11mplus/boot.ini-45> attach dz 10001
> Listening on port 10001
> DZ address=17760030-17760037*, vector=330-334*, BR5, lines=8
> attached to 10001, 8b, 0 current connections
>
> RSX-11M-PLUS V4.6 BL87 1920.KW System:"PIDP11"
>
> ...snip
> >; INSTALL TCP/IP
> >;
> >SET /NAMED
> >SET /UIC=[1,2]
> >* Load TCP/IP? [Y/N D:Y T:15S]:
> >load if:/vec/high
> >load ip:/vec/high
> >load ud:/vec/high
> >load tc:/vec/high
> LOA -- Warning - loadable driver larger than 4K
> >con onl if0:
> >con onl if1:
> >con onl ip:
> >con onl ud:
> >con onl tc:
> >ins lb:[ip]ethacp/fmap=yes
> >ins lb:[ip]ifconfig
> >ins lb:[ip]netstat
> >ins lb:[ip]ping
> >ins lb:[ip]tracert
> >ins lb:[ip]resacp
> >dfl "Frodo"=HOSTNAME/GBL
> >dfl "LOGICAL,DNS,FILE"=RESOLV$ORDER/GBL
> >dfl LB:[1,2]HOSTS.TXT=HOSTS/GBL
> >dfl "LOGICAL,FILE"=RESOLV$ORDER
> >ifc create 256
> >ifc start
> Starting IP.
> Starting UD.
> Starting TC.
> >ifc set if0: dhcp acp ethacp lin UNA-0
> >dfl ",RTR,DNS,DOM"="DHCP$IF0"/gbl
> >;.ifins if0 can if0
> >ins lb:[ip]dhcp
> >run dhcp
> >ifc set if1: add localhost
> 09:30:21 TCP/IP - ethernet ACP using DECnet DLX
> 09:30:21 Starting resolver V2.2
> >ifc set if1: sta ope
>
> DHCP - Failed to find any DHCP servers. Giving up...
>
> which explains why this don't work:
> >
> >PING GOOGLE.COM
> Unknown host: GOOGLE.COM
>
> ...snip
>
> if I:
>
> ip link show
>
> ...
>
> 4: tap-simh0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
> state UP mode DEFAULT group default qlen 1000
> link/ether 22:f2:0d:23:2d:63 brd ff:ff:ff:ff:ff:ff
>
> To my untrained eye, it would appear that tap-simh0 isn't getting an ip
> address :).
>
> Help?!
>
> Thanks,
>
> Will
>
> --
> GPG Fingerprint: 68F4 B3BD 1730 555A 4462 7D45 3EAA 5B6D A982 BAAF
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20190624/3d450764/attachment-0001.html>
More information about the Simh
mailing list