TunTap Installed But No Internet Connectivity Inside SheepSh

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

User avatar
Old-School-BBSer
Apple Corer
Posts: 223
Joined: Sun Mar 01, 2015 8:58 am
Location: Guam

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Old-School-BBSer »

Okay, I just ran "sudo ifconfig bridge0 addm tap0" twice. The first time it just took me back to the terminal prompt without displaying anything. The second time, you can see below, it says that tap0 already exists. So I scrolled back a bit, and guess what? There is tap0 now listed as a member under bridge0. I am going to see if I really have Internet connectivity in SheepShaver. Hang on.

geezer@El-Capitan:~$ sudo ifconfig bridge0 addm tap0
geezer@El-Capitan:~$ sudo ifconfig bridge0 addm tap0
ifconfig: BRDGADD tap0: File exists
geezer@El-Capitan:~$


Here is proof:

tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
ether 66:47:fb:98:06:f2
media: autoselect
status: active
open (pid 38076)
bridge0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
ether 02:26:bb:95:96:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en0 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 4 priority 0 path cost 0
member: tap0 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 10 priority 0 path cost 0
media: autoselect
status: active
Bill Kochman
Armageddon BBS
Guam, Mariana Islands, USA
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Cat_7 »

This was just to check whether bridging and adding worked in your Mac OS version.
The bridge isn't up yet....

You still need
sudo ifconfig bridge0 up

On a side note, are you running any of these scripts at boot?
User avatar
Old-School-BBSer
Apple Corer
Posts: 223
Joined: Sun Mar 01, 2015 8:58 am
Location: Guam

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Old-School-BBSer »

I am going to run destroy, and then run through all the steps one more time.

I am curious if running each command separately will again connect tap0 to bridge0 as it did before.
Bill Kochman
Armageddon BBS
Guam, Mariana Islands, USA
User avatar
Old-School-BBSer
Apple Corer
Posts: 223
Joined: Sun Mar 01, 2015 8:58 am
Location: Guam

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Old-School-BBSer »

Okay, I just ran through all seven steps again very carefully, and I have an idea what may be going on.

Everything checked out okay until I got to the "sudo ifconfig bridge0 addm tap0" step.

After I ran that, and used ifconfig to check if tap0 had been added to the bridge, it was NOT showing.

So, I ran "sudo ifconfig bridge0 addm tap0" a second time, just like I did before.

This time, just like before, it told me "ifconfig: BRDGADD tap0: File exists".

Sure enough, when I ran ifconfig again, this time, it DID show tap0 as a member under bridge0. That is the same thing that happened before.

So, it seems to me that for some reason, there is some kind of delay now in adding tap0 to bridge0.

HA . . . HA . . . HA!!! :mrgreen: :twisted: :shock: :smile:

I just tricked that sucker!!!

Realizing that something was causing a very short delay so that the tap0 member was not being recognized fast enough, I added "sudo ifconfig bridge0 addm tap0" a SECOND time below the first one in my script . . . and I ran the script . . . and guess what?

geezer@El-Capitan:~$ /Applications/SheepShaver/SS.command ; exit;
Password:
SheepShaver V2.4 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/coreaudio audio output
Detected CPU features: MMX SSE SSE2 SSE3 SSSE3
PowerPC CPU emulator by Gwenole Beauchesne
ifconfig: BRDGADD tap0: File exists
logout
Saving session...
...copying shared history...
...saving history...WARNING: Unknown DiskStatus(6)
truncating history files...
...completed.

[Process completed]

I now have Internet connectivity in SheepShaver by forcing the issue with the double command.

Not legit, I imagine, but what else can I do?
Bill Kochman
Armageddon BBS
Guam, Mariana Islands, USA
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Cat_7 »

You can try to a second sleep command (& sleep 2) before tap0 gets added.

Ok, time for bed overhere...

Best,
Cat_7
User avatar
Old-School-BBSer
Apple Corer
Posts: 223
Joined: Sun Mar 01, 2015 8:58 am
Location: Guam

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Old-School-BBSer »

Cat_7 wrote:You can try to a second sleep command (& sleep 2) before tap0 gets added.

Best,
Cat_7
Are you saying that I change "sudo ifconfig bridge0 up" to "sudo ifconfig bridge0 up & sleep 2" and then have just one "sudo ifconfig bridge0 addm tap0" right below it?

Okay, get some rest, my friend. I won't change anything until I hear from you your tomorrow.

Goodnight.
Bill Kochman
Armageddon BBS
Guam, Mariana Islands, USA
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Cat_7 »

This all still is a great mystery to me, but if there is indeed a need for some delay, you can try to add a 2 second pause after the bridge is brought up and before tap0 is added:

sudo ifconfig bridge0 up & sleep 2
User avatar
Old-School-BBSer
Apple Corer
Posts: 223
Joined: Sun Mar 01, 2015 8:58 am
Location: Guam

Re: TunTap Installed But No Internet Connectivity Inside She

Post by Old-School-BBSer »

Trust me; I am as mystified as you are.

I have never had this happen before.

Unless Apple made some surreptitious change in macOS Sierra Beta 4 -- via an unannounced software download to my machine -- then the only other thing I can think of, is that maybe whatever happened when the power fluctuated while I was asleep, corrupted something somewhere.

You may recall that I initially mentioned that even when I went to re-install TunTap, it took a few times, because it kept hanging on the "Registering updated components" phase of the installation.

At any rate, 2 seconds was not enough, so I set it to 4 seconds, and now the script is working fine.

Thanks for taking the time to assist me with this. I really appreciate it.

Sadly, the developer behind TunTap still hasn't mailed me back yet since I first wrote to him. :(
Bill Kochman
Armageddon BBS
Guam, Mariana Islands, USA
Post Reply