Subject: Re: ipnat and NetBSD
To: None <port-macppc@netbsd.org>
From: Andy <andy@softbook.com>
List: port-macppc
Date: 11/12/1999 07:28:44
Thanks a lot, that web page was most helpful!
<http://murphy.dyndns.org/NetBSD>

I've successfully configured ipnat on a 9500  with 2 network cards.  I'm
connected to the outside world via a RoadRunner cable modem ( thank God
they don't require that stupid authorization program any more!!) It works
great!
One puzzling thing though is that it still spits out a bunch of scary
messages at boot, like :
"corrupted lease file"
"cannot find "mc0:"
"cannot find "[" <-- what the heck is that?
but nothing is recorded in the messages log.
IAnother curious thing: aren't there supposed to be device files for the
network intefaces I have in /dev ?
 I sure don't have neither "mc0" ( built-=in Ethernet ) nor "de0 ( Asante
PCI 10/100 card)
However at boot time I see the following line on the screen:
Nov 11 22:13:12 sparky /netbsd: de0 at pci1 dev 13 function 0
Nov 11 22:13:12 sparky /netbsd: de0: interrupting at irq 27 <huh? IU
thiought there are no IRQ's on Macs:-))
Nov 11 22:13:12 sparky /netbsd: de0: Asante 21140A [10-100Mb/s] pass 2.2
Nov 11 22:13:12 sparky /netbsd: de0: address 00:00:94:a1:9c:2e
Nov 11 22:13:12 sparky /netbsd: de0: enabling 10baseT port

So the question is, should there be device files "de0" and "mc0" in /dev?
It seems to work without them just fine but I',m still curious.
If these files need to be there for ifconfig to be happy, how do I make
them? I tried MAKEDEV all - it didn't do anything
Thanks again for help

Andy


>Andy  (andy@softbook.com) wrote:
>
>>I'm having trouble configuring ipnat and DHCP client on  a PPC 9500 with 2
>>network cards and a RoadRunner cable modem ( which BTW does not reqiure a
>>login program to do authorization. Did they take down their TAS??)
>> I have 2 network cards, one internal ( mc0) and a PCI Asante something or
>>other (I don't have this machine here so off the top of my head..)
>>Anyway, I set up the dhclient stuff per doc found in the FAQ area,
>>recompiled the kernel with IPGATEWAY= yes, modified rc.conf, created
>>ipnat.conf and ipf.conf, yadda,yadda - all per docs I found in the FAQ.
>>Upon reboot here's what happens:
>>ifconfig complains: mc0: file not ,found de0: file not found and a sundry
>>of other messages most of which I don't remember unfortunately since the
>>machine is not where I'm writing this from
>>The dhclient gives me a lot of warnings( corrupted lease file among others)
>>but assigns an IP.
>>Then I see a message from ipnat : "starting. network translation....." but
>>it does not show on the process list ( silently fails? proc list is not
>>showing it ? )
>>If then I do ifconfig -au (to show all interfaces that are up ) I see both
>>mc0 ( internal) and de0 ( PCI Asante card) but it shows that the IP address
>>as 0.0.0.0.  on both interfaces!!!
>>I can use the Internet and my internal machines can ping me ( which means
>>both interfaces are working fine)   ipnat is not running. What am I missing?
>>Has anyone successfully done whgat I'm trying to do?
>>Pointers to more info??
>>Sorry for the confusing message. I will dig for more detailed logs if
>>anyone requests them
>
>I have a configuration working with IPNAT on an ADSL line configured with
>DHCP from my ISP using only a single ethernet interface -- not exactly
>the same but pretty close.  A description of my setup and the various
>configuration files can be found on my system at:
>
>  <http://murphy.dyndns.org/NetBSD>
>
>These files have been used by a couple of other people to successfully
>install similar setups on their systems.
>
>-bob