Jeremy Begg schreef op 13-11-2017 om 11:03:
Hi,
I am trying to get SIMH up and running on the ethernet interface of a
Raspberry Pi 3. I have followed the intructions in 0readme_ethernet.txt,
installing the libpcap-dev, bridge-utils and uml-utilities packages before
building SIMH itself. I just ran 'make vax' and let it go, and the build to
completion.
[snip]
My TUN/TAP and bridge are set up in /etc/rc.local in Raspbian (jessie &
stretch), as follows:
<start of rc.local>
#!/bin/sh -e
# This script is executed at the end of each multiuser runlevel.
exec 2> /var/log/rc.local.log # stderr to logfile
exec 1>&2 # stdout as well
set -x # set verify :-)
# no wireless for the moment
ifconfig wlan0 0.0.0.0 down
IFACE="eth0"
MACADDR="08:00:2B:03:03:03"
# get current IP params
HOSTIP=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $2 }' |
gawk -F : -- '{ print $2 }'`
HOSTNM=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $4 }' |
gawk -F : -- '{ print $2 }'`
HOSTBC=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $3 }' |
gawk -F : -- '{ print $2 }'`
HOSTGW=`route -n | grep ^0.0.0.0 | gawk -- '{ print $2 }'`
# Make tun/tap
tunctl -t tap0 -u root
ifconfig tap0 up
# Make bridge
brctl addbr br0
brctl addif br0 $IFACE
brctl setfd br0 0
ifconfig $IFACE 0.0.0.0
# fix bridge MACaddress
ifconfig br0 hw ether $MACADDR
# start bridge
ifconfig br0 $HOSTIP netmask $HOSTNM broadcast $HOSTBC up
# set the default route to the br0 interface
route add -net 0.0.0.0/0 gw $HOSTGW
# bridge in the tap device
brctl addif br0 tap0
ifconfig tap0 0.0.0.0
# load kernel variables from /etc/sysctl.d
(https://wiki.debian.org/BridgeNetworkConnections)
/etc/init.d/procps restart
<end of rc.local>
then the
set xu mac=08:00:2B:19:02:54 type=DELUA
att xu tap:tap0
works fine for my VAX-11/780 LAVC-cluster
/Wilm
_______________________________________________
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh