Network questions
Mark Haney
mhaney at ercbroadband.org
Tue Mar 10 21:04:50 UTC 2009
Asif Iqbal wrote:
> On Tue, Mar 10, 2009 at 3:05 PM, Mark Haney <mhaney at ercbroadband.org> wrote:
>> Asif Iqbal wrote:
>>
>>>>> ethtool -s <interface> speed 100 duplex full autoneg off
>>>>>
>>>>> Is there a way I can modify the interfaces file to stick these options, as
>>>>> well,
>>>>> short of writing a init script?
>> You know, it's amazing what a little trip to google will do.
>>
>> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking
>>
>> Try to google these things before coming to the list with something that
>> was answered a decade ago before there were GUIs for everything.
>
> So I do have to write init script for the speed and duplex setting to
> survive the reboot. That is what I suspected if you read my email
> carefully.
>
Really? Did you /read/ the link I sent you? Obviously not. Okay, well
I'll hold your hand then. No, you do not need to write an init script
for that. There are VERY FEW things that need that kind of expertise to
do any more. This has been an option for a decade at least. Here's how
you do it:
#
# File: /etc/sysconfig/network-scripts/ifcfg-eth0
#
DEVICE=eth0
IPADDR=192.168.1.100
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
See the last line? (In case you missed that part, too.) That line
passes the ethtool parms to the NIC at initialization time either at
boot (as in the case of this one) or whenever you bring the interface up.
I ask again nicely. Google this stuff first before you ask the list.
We're hear to help /after/ you've done all the research you can do based
on your knowledge level. We're not here to do it for you, we're here to
help you learn it for yourself.
Geez.
--
Frustra laborant quotquot se calculationibus fatigant pro inventione
quadraturae circuli
Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415
Call (866) ERC-7110 for after hours support
More information about the ubuntu-users
mailing list