Thanks, I was wondering about two network cards in my laptop as well...

What I would suggest, is that if you're looking for more info, you could
analyze /etc/pcmcia/network, which is the actual script that does the
setup of the card(s). I haven't really looked at it myself, but from there
you may be able to get a better understanding of how network.opts is used.

Hugo van der Merwe


On Tue, 6 Jun 2000, Lee Bradshaw wrote:

> On Wed, Jun 07, 2000 at 12:22:46AM +0800, Nazareth Shu wrote:
> > Dear All:
> > 
> >     Thank Lee Bradshaw & Hugo van der Merwe reply my questions so quickly, 
> > after taking a look at both files " /etc/init.d/network "
> > and " /etc/pcmcia/network.opts ", I still have the same questions about the 
> > IPs:
> > 
> >     1. In my " /etc/init.d/network " simply has two entries :
> > 
> >         ifconfig lo 127.0.0.1
> >         route add -net 127.0.0.0
> 
> I thought you were using a desktop machine when you asked about two
> network cards. This network file looks ok for a laptop.
> 
> >     2. In my " /etc/pcmcia/network.opts " has following information :
> 
> On my potato laptop, there is a comment:
> 
> # The address format is "scheme,socket,instance,hwaddr".
> 
> You could try something like
> 
>   case "$ADDRESS" in
>   *,*,*,MAC_ADDRESS_FOR_ETH0) # replace MAC_ADD... with the real MAC address
>     IF_PORT="auto"
>     BOOTP="n"
>     IP_ADDR="192.168.2.254"
>     NETMASK="255.255.255.0"
>     ...
>     ;;
>   *,*,*,MAC_ADDRESS_FOR_ETH1)
>     IF_PORT="auto"
>     BOOTP="n"
>     IP_ADDR="192.168.3.253"
>     ...
>     GATEWAY="192.168.3.254"
>     ...
>     ;;
>   esac
> 
> I don't know what format the MAC address is in. You may want to insert
> an echo $ADDRESS to see what it looks like.

Reply via email to