|
|
Joined: Sep 2021
Posts: 25 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 25 Likes: 2 |
Hello,
running Mame with the -log option I find the line "Network interface -1 not found", either with the hp9k370 (or 360) and the ct486 machines.
Supposedly I can't set any network because of that.
How to fix it?
|
|
|
|
Joined: Nov 2016
Posts: 58
Member
|
Member
Joined: Nov 2016
Posts: 58 |
If you're running under Windows, you need to install the OpenVPN TAP/TUN driver and create a TAP adapter first. Then you can select it as the active network adapter using the in-emulation menu.
|
|
|
|
Joined: Sep 2021
Posts: 25 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 25 Likes: 2 |
I'm running Linux so I used taputil.sh to create the tap:
$ sudo -s ./taputil.sh -c web 192.168.2.30 192.168.2.99
$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface loopback 0.0.0.0 255.0.0.0 U 0 0 0 lo 192.168.2.30 192.168.2.99 255.255.255.255 UGH 0 0 0 tap-mess-1000-0
$ ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether 18:c0:4d:1f:3b:fe brd ff:ff:ff:ff:ff:ff 3: tap-mess-1000-0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether 5e:8e:a5:87:fd:e4 brd ff:ff:ff:ff:ff:ff
$ mame hp9k370 -sl2 98643 -hard hp9.chd -rp /opt/mamer/ -window -mouse -log
error.log: ... ... [:sl2:98643:lance] Network interface -1 not found ... ...
|
|
|
|
Joined: Sep 2021
Posts: 25 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 25 Likes: 2 |
|
|
|
|
Joined: Nov 2016
Posts: 58
Member
|
Member
Joined: Nov 2016
Posts: 58 |
Sorry for the late response, I've been away. Under Linux, MAME creates the tap adapter for you. Perhaps the adapter you're creating is conflicting with what MAME wants to do, or possibly there's a permission problem working with /dev/net/tun?
|
|
|
|
Joined: Mar 2001
Posts: 16,892 Likes: 51
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,892 Likes: 51 |
MAME can't create the TAP adaptor on Linux, which is why you have to use taputil.sh. It used to (as in circa 2013) work really well, but I haven't followed its progress much.
|
|
|
|
Joined: Jun 2001
Posts: 471
Senior Member
|
Senior Member
Joined: Jun 2001
Posts: 471 |
You probably have a hp9k370.cfg (or similar), or possibly a default.cfg which sets the interface number to -1 (it should be zero, and zero is the default when not set).
|
|
|
|
Joined: Sep 2021
Posts: 25 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 25 Likes: 2 |
Many thanks to both of you for replying.
Actually I've found the "-1" in the hp9k370.cfg file and modifying to "0" eliminates the error message in the error.log file. I haven't found any example on how to set the interface number via command line.
What I'd like is to create a bridged network between 2 machines that are hosted on the same PC and I'm not sure that the taputil.sh script is the right choice for that.
Any suggestions would be very appreciated, thank you so much.
|
|
|
|
Joined: Aug 2012
Posts: 74
Member
|
Member
Joined: Aug 2012
Posts: 74 |
I seem to remember this working for me a while back The tutorial is for qemu but it should work for MAME too.
|
|
|
|
Joined: Sep 2021
Posts: 25 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 25 Likes: 2 |
I seem to remember this working for me a while back The tutorial is for qemu but it should work for MAME too. I've been struggling for months and now here is the solution, "oldie but goodie". I'm so grateful to all of you, it works great! 
Last edited by stef-ux; 05/10/22 08:26 PM.
|
|
|
Forums9
Topics9,069
Posts118,921
Members5,014
|
Most Online890 Jan 17th, 2020
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|