Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 6.0.1 upgrade dhcp problem



 >  > So the -U option gave no output, even when I used it on the PC whose
 >  > fxp0 NIC works (after configuring the NIC via sysinst's menu).
 >
 >That is very odd, but could be explained because you're running this
 >with root on a cd, and so quite likely no writeable storage anywhere.

/ isn't writeable but other partitions are:

# df -h
Filesystem         Size       Used      Avail %Cap Mounted on
root_device         43M        43M         0B 100% /
tmpfs              1.4M       444K       1.0M  30% /dev
tmpfs              972M       8.0K       972M   0% /tmp
tmpfs              972M       8.0K       972M   0% /var
tmpfs              972M       4.0K       972M   0% /etc
#

There isn't much in /var or /tmp immediately after booting and dropping into a shell:

# ls -lR /var
total 4
drwxr-xr-x  2 root  wheel   0 Feb  7 07:50 db
drwxr-xr-x  2 root  wheel  20 Feb  7 07:50 run

/var/db:

/var/run:
total 4
-rw-r--r--  1 root  wheel  2064 Feb  7 07:50 utmpx
# ls -lR /tmp
total 4
-rw-r--r--  1 root  wheel  63 Feb  7 07:50 gettytab
#

I tried dhcpcd's -U switch before attempting to configure the NIC, just to see what it'd say:

# dhcpcd -U fxp0
dhcpcd[55]: fxp0: no lease to dump
#
# dhcpcd --nohook mtu fxp0
dhcpcd[57]: version 5.5.4 starting
dhcpcd[57]: Kernel is not configured to accept IPv6 RAs
dhcpcd[57]: fxp0: carrier acquired
dhcpcd[57]: fxp0: carrier lost
dhcpcd[57]: fxp0: waiting for carrier
dhcpcd[57]: fxp0: carrier acquired
dhcpcd[57]: fxp0: broadcasting for a lease
dhcpcd[57]: fxp0: offered 192.168.36.135 from 192.168.36.24
dhcpcd[57]: fxp0: ignoring offer of 192.168.36.135 from 192.168.36.1
dhcpcd[57]: fxp0: acknowledged 192.168.36.135 from 192.168.36.1
dhcpcd[57]: fxp0: checking for 192.168.36.135
dhcpcd[57]: fxp0: leased 192.168.36.135 for 604800 seconds
dhcpcd[57]: forked to background, child pid 60
#
# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=1400<TCP4CSUM_Rx,UDP4CSUM_Rx>
        enabled=0
        address: 00:10:dc:7b:92:a9
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::210:dcff:fe7b:92a9%fxp0 prefixlen 64 scopeid 0x3
#

This created some files in /var and /tmp:

# ls -lR /var
total 8
drwxr-xr-x  2 root  wheel  20 Feb  7 07:51 db
drwxr-xr-x  2 root  wheel  40 Feb  7 07:51 run

/var/db:
total 4
-r--r--r--  1 root  wheel  346 Feb  7 07:51 dhcpcd-fxp0.lease

/var/run:
total 8
-rw-r--r--  1 root  wheel     3 Feb  7 07:51 dhcpcd-fxp0.pid
-rw-r--r--  1 root  wheel  2064 Feb  7 07:50 utmpx
#
# ls -lR /tmp
total 12
-rw-r--r--  1 root  wheel    39 Feb  7 07:51 dhcpcd-lease
-rw-r--r--  1 root  wheel  1020 Feb  7 07:51 dhcpcd-lease-all
-rw-r--r--  1 root  wheel    63 Feb  7 07:50 gettytab
#

But dhcpcd -U still didn't give any output:

# dhcpcd -U fxp0
#

I tried cat'ing /var/db/dhcpcd-fxp0.lease but it must be a binary file because that messed up the terminal session, but the two dhcpcd-* files in /tmp were text files:

# cat /tmp/dhcpcd-lease
host-name=
domain-name=test.com
#
# cat /tmp/dhcpcd-lease-all
IFS='
'
OPTIND=1
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
PS1='# '
PS2='> '
PS4='+ '
PWD=/
from=from
hook=/libexec/dhcpcd-hooks/99-print-sysinst
if_down=false
if_suffix=
if_up=true
ifflags=4294936643
ifmetric=203
ifmtu=1500
ifwireless=0
interface=fxp0
interface_order=fxp0
new_broadcast_address=192.168.37.255
new_dhcp_lease_time=604800
new_dhcp_message_type=5
new_dhcp_server_identifier=192.168.36.1
new_domain_name=test.com
new_domain_name_servers='192.168.36.1 192.168.36.24'
new_domain_search='test.com'
new_ip_address=192.168.36.135
new_network_number=192.168.36.0
new_ntp_servers='192.168.36.18 192.168.36.24'
new_routers=192.168.36.30
new_subnet_cidr=23
new_subnet_mask=255.255.254.0
pid=60
reason=BOUND
signature='# Generated by dhcpcd from fxp0'
signature_base='# Generated by dhcpcd'
signature_base_end='# End of dhcpcd'
signature_end='# End of dhcpcd from fxp0'
skip=mtu
skip_hooks='lookup-hostname mtu'
state_dir=/var/run/dhcpcd
x=192.168.36.24
#

Is that what `dhcpcd -U fxp0' was intended to display?


Ray


Home | Main Index | Thread Index | Old Index