Vladimir Blecic writes:
> I had a same problem like other but I had a little more luck resolving it.
> System is able to obtain ip address / DNS from DHCP at boot time, and I wrote 
> this using it.

A few minor nits ...

> (4) If you have installed bcf driver, remove it and reboot the system.
>         # rem_drv bfe (not bcf !)
>         # sync
>         # init 0

"sync" isn't needed.  And if you really wanted to reboot "init 0"
isn't the right thing to do.  "reboot" works, as does "init 6".

> Also I think it is easier not to mess with static IP if you have DHCP ready:
> /etc/nodename (put your hostname here, for DNS)

This will override the name provided by DHCP.  This is helpful if the
name provided is useless or just plain missing (which is all too often
true for ISPs).

> touch /etc/dhcp.bfe0 (zero size file, necessary for plumb)

Actually, that doesn't plumb the interface.  That triggers DHCP at
boot time.  To trigger plumbing at boot time, do this:

  # touch /etc/hostname.bfe0

> touch /etc/resolv.conf (for DNS)

That shouldn't be necessary.  Also, you left out /etc/nsswitch.conf.

> for this part:
>         # ifconfig bfeN HOSTNAME
>         # ifconfig bfeN      ( ensure IP address is correct)
>         # ifconfig bfeN up   ( and then you can test with ping, telnet, ftp 
> ...)

That recipe doesn't quite look right.  First of all, if the "HOSTNAME"
value isn't in /etc/hosts, then that first ifconfig will hang
attempting to look up the "HOSTNAME" via name services.  For a static
address configuration, I would suggest this instead:

   # ifconfig bfeN plumb IPADDR/PREFIXLEN broadcast + up
   # echo IPADDR/PREFIXLEN > /etc/hostname.bfeN

Or, for a more concrete example:

   # ifconfig bfe0 plumb 192.168.1.1/24 broadcast + up
   # echo 192.168.1.1/24 > /etc/hostname.bfe0

> you can obtain address/DNS from DHCP:
> 
>         # ifconfig bfeN auto-dhcp
>         # ifconfig bfeN      ( ensure IP address is correct)
>         # ifconfig bfeN up   ( and then you can test with ping, telnet, ftp 
> ...)

dhcpagent (the DHCP client) will automatically set the IFF_UP bit.  Do
*NOT* try to manage it yourself via ifconfig.

I would have done this:

  # ifconfig bfeN plumb
  # ifconfig bfeN dhcp start

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to