Network fine on OS9, but not on X

Kent West mol-general@lists.maconlinux.org
Thu, 22 May 2003 09:58:52 -0500


I'm fairly new to the Mac world.

I have installed Debian (stable) on my G4 with 256MB, and then installed 
MOL. It's a tri-boot machine, with OS/9, OS/X 10.2.6, and Debian.

I've gotten networking to work (both Appletalk and TCP/IP via DHCP) by 
installing dhcpd. But OS/X doesn't seem to recognize the tunX interface.

Here's my /etc/default/dhcp file:

westk[@westkmac]:/etc/mol> cat /etc/default/dhcp
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="tun0"


=============

And here's my /etc/molrc.net file (minus commented lines):


ifeq ${boot_type} newworld oldworld {    # Configure for MacOS only
    netdev:    eth0 -sheep
}
netdev:        tun${session} -tun

==============

My /etc/molrc.macos file:
include        ${etc}/molrc.video    # video configuration
include        ${etc}/molrc.input    # mouse and keyboard
include        ${etc}/molrc.net    # networking
ram_size:        128        # should probably be increased
disable_altivec:    no        #
sound_driver:        dsp        # (any | dsp | esd)
sound_device:        /dev/dsp
play_startboing:    no        # play startboing
blkdev:            /dev/cdrom    -cd ${cdboot}
ifeq ${session} 0 {
    # default configuration
    blkdev:        /dev/hda14    -rw
    blkdev:        /dev/hdb    -rw
    blkdev:        /dev/sda    -rw
    blkdev:        /dev/sdb    -rw
}
ifeq ${session} 4 {
    # alternate configuration (startmol --alt)
    blkdev:        /tmp/hfs.image    -rw
}
ifeq ${boot_type} oldworld {
    # oldworld booting (for MacOS 8.5 or older)
    blkdev:        /tmp/oldworld.image -rw
}


=============


My /etc/mol/molrc.osx file:

include        ${etc}/molrc.video    # video configuration
include        ${etc}/molrc.input    # mouse and keyboard
include        ${etc}/molrc.net    # networking
ram_size:        128
disable_altivec:    no
blkdev:            /dev/cdrom    -cd ${cdboot}
ifempty ${altconfig} {
    # default configuration
    blkdev:        /dev/hda    -rw
    blkdev:        /dev/hdb    -rw
    blkdev:        /dev/sda    -rw
    blkdev:        /dev/sdb    -rw
} else {
    # alternate configuration
    blkdev:        /tmp/osx.image    -rw
    #blkdev:        /dev/loop0    -rw
}


================
westk[@westkmac]:/etc/mol> sudo lsmod
Module                  Size  Used by    Not tainted
sheep                   5528   1
ethertap                3644   0
ipt_MASQUERADE          1904   2  (autoclean)
iptable_nat            17892   1  (autoclean) [ipt_MASQUERADE]
ip_conntrack           17644   1  (autoclean) [ipt_MASQUERADE iptable_nat]
ip_tables              14000   4  [ipt_MASQUERADE iptable_nat]
tun                     5232   6
mol                    51012   2
rtc                     1792   0  (autoclean)


=================
westk[@westkmac]:/etc/mol> sudo ifconfig (when both Mac OSes are running 
- tun0 disappears when I shut down OS/9)
eth0      Link encap:Ethernet  HWaddr 00:30:65:8D:B7:0A 
          inet addr:150.252.133.167  Bcast:150.252.135.255  
Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18521 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2912 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:3851760 (3.6 MiB)  TX bytes:383266 (374.2 KiB)
          Interrupt:41

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18160 (17.7 KiB)  TX bytes:18160 (17.7 KiB)

tun0      Link encap:Ethernet  HWaddr 00:FF:33:15:CC:FA 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

tun1      Link encap:Ethernet  HWaddr 00:FF:B9:9C:9F:F3 
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

====================

Mac OS/X 's "Network" preference has "Location" set to "Automatic" (with 
a pulldown offering "New" and "Edit"), it has "Show" set to "Network 
Port Locations" (with no other pulldown offerings), and in the 
configurations box it has only one entry: "Built-in Ethernet", but it's 
grayed out, and it has an empty box (I assume that's a checkbox, missing 
a checkmark) under the "On" column.

I'm having trouble finding any documentation for how to proceed. Can 
anyone point me in the right direction?

Thanks!

-- 
Kent