Re: CS 1.2.1 dual g4 ethernet(was: Yaboot/dualg4...)


Subject: Re: CS 1.2.1 dual g4 ethernet(was: Yaboot/dualg4...)
From: goo (goo@radek.org)
Date: Sun Oct 08 2000 - 00:36:07 MDT


>> What do you get when you do "ifconfig -a" ? Does it recognize that you have
>> an eth0?
>
> Yes, it sees the card.

This is good...

>> I'm not sure whether CS's kernel has Mac ethernet built-in or whether it
>> builds the modules...you might have to modprobe the modules. But if
>> ifconfig says you have an eth0, then you just need to use ifconfig to, well,
>> configure it.
>
> Hmmm...and...um...how do I do that? =)
>
> I'm still a lowly newbie. =)

Typically (as in, "the way I do it"), you'll have a network startup script
that looks something like this:

    IF="eth0"
    IPADDR="192.168.1.45"
    NETMASK="255.255.255.0"
    GATEWAY="192.168.1.1"

    ifconfig $IF $IPADDR netmask $NETMASK up
    route add default gw $GATEWAY dev eth0

For variable-expansion-impaired:

    ifconfig eth0 192.168.1.45 netmask 255.255.255.0 up
    route add default gw 192.168.1.1 dev eth0

Mind you, this just sets up IP addresses. If you want to handle stuff like
www.yahoo.com, you need DNS set up, which is a different beast altogether.

goo



This archive was generated by hypermail 2a24 : Sun Oct 08 2000 - 00:43:22 MDT