Date: Sat, 11 Dec 2004 16:31:49 -0500 From: Gerard Samuel <fbsd-questions@trini0.org> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: [Solved] Re: sleepy fxp0 Message-ID: <41BB6745.7090906@trini0.org> In-Reply-To: <41BB4FA6.3070308@mac.com> References: <41BB461C.2050603@trini0.org> <41BB4FA6.3070308@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger wrote: > Gerard Samuel wrote: > [ ... ] > >> This box currently uses DHCP to get its IP address. >> When it boots up, and I log in, and immediately try to >> initiate any network activity from this box, it takes about >> 2-3 seconds for said network activity to start. >> For example, if I were to ping, or startx, it takes >> about 2-3 seconds for either ping or startx to actually start. > > [ ... ] > >> Is this normal? > > > That sounds more like the puase associated with doing IPv6 versus a > IPv4 DNS lookup, assuming it happens when you are trying to ping some > remote IP...? > > You might also be seeing a pause due to ethernet autoselection; if you > manually configure the interface and the switch port to manual 100/FD, > doing so might also remove a brief pause. [Fixing the speed is > impractical for a roaming laptop, but it might be worth trying as a > test... ] Well you pushed me in the right direction to solve this. Looking over the man pages for ifconfig and rc.conf, here is what I did. 1. Figure out what media options are available for the card $ ifconfig -m fxp0 fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> capability list: =8<VLAN_MTU> inet 192.168.0.16 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:80:29:65:e2:96 media: Ethernet autoselect (100baseTX <full-duplex>) status: active supported media: media autoselect media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media 100baseTX mediaopt hw-loopback 2. According to the rc.conf man page, I added a file /etc/start_if.fxp0 with -> ifconfig fxp0 media 100baseTX mediaopt full-duplex To manually set media and media options at bootup. Thats it. I rebooted, and the network is available immediately at bootup, instead of waiting a few seconds to auto configure. Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41BB6745.7090906>