nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

Suse Enterprise Linux server Set Network card (NIC) to Full duplex setting

This is a discussion on Suse Enterprise Linux server Set Network card (NIC) to Full duplex setting within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Changing your Network Interface Speed, Duplex or Auto Negotiate settings on Suse Enterprise Linux server. 1 # Login as root ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Mastering Servers > Networking, Firewalls and Security

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 12th June 2007, 03:54 PM
raj's Avatar
raj raj is offline
Senior Member
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 342
Thanks: 48
Thanked 10 Times in 10 Posts
Rep Power: 7
raj will become famous soon enoughraj will become famous soon enough
Talking Suse Enterprise Linux server Set Network card (NIC) to Full duplex setting

Changing your Network Interface Speed, Duplex or Auto Negotiate settings on Suse Enterprise Linux server.

1 # Login as root user

2 # Change directory to /etc/sysconfig/network/scripts
Code:
cd /etc/sysconfig/network/scripts
3 # Create a file called eth0-setup
Code:
vi eth0-setup
4 # Set eth0 to 100 duplex full, add following config line:
Code:
#!/bin/sh
/usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off
5 # Softlink /etc/sysconfig/network/scripts/eth0-setup to /etc/sysconfig/network/if-up.d
Code:
ln -s /etc/sysconfig/network/scripts/eth0-setup /etc/sysconfig/network/if-up.d
6 # More information - read man page
Code:
man ethtool
Also chk out : Linux add ethtool duplex settings to a network card permanently | nixCraft
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #2 (permalink)  
Old 20th March 2008, 03:33 PM
jan jan is offline
Junior Member
 
Join Date: Mar 2008
OS: SUSE Linux Enterprise Server 10
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jan is on a distinguished road
Default

Hello,

I want to configure my network-card to run in full-duplex mode. The description above from raj seems to work for me but I want to understand my settings (SUSE Linux Enterprise Server 10):

contents of /etc/sysconfig/network/ifcfg-eth-id-00:14:5e:cc:40:ee
Code:
BOOTPROTO='none'
ETHTOOL_OPTIONS='speed=100 duplex=full autoneg=off'
NAME='IBM NetXtreme II BCM5708 Gigabit Ethernet'
STARTMODE='off'
UNIQUE='rBUF.2uuZ5oJ5QB6'
USERCONTROL='no'
_nm_name='bus-pci-0000:03:00.0'
Here you see the ETHTOOL_OPTIONS-variable. But I can't figure out when the ethtool was called with these options.

A grep over my etc-directory (grep -ri ethtool .) shows me only the entries in ifcfg*-files.

And here another confusing message (from /var/log/boot.msg):
Code:
    eth0      device: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 11)
    eth0      configuration: eth-id-00:14:5e:cc:40:ee
    eth0      Startmode is 'off'
skipped    eth1      device: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 11)
    eth1      configuration: eth-id-00:14:5e:cc:40:f0
    eth1      Startmode is 'off'
skipped    bond0
"ethtool bond0 speed=100 duplex=full autoneg=off" failed.
    bond0     enslaving interfaces:  eth0 eth1
    bond0     IP address: 10.40.0.16/22   as bonding master
doneSetting up service network  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .done
It seems that the ethtool can't be executed successfully.

Who can help me?
Reply With Quote
  #3 (permalink)  
Old 9th June 2010, 11:30 PM
mntnman's Avatar
Junior Member
 
Join Date: Jun 2010
OS: Ubuntu, SuSe, RedHat
Scripting language: Bash and friends
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mntnman is on a distinguished road
Smile Suse Enterprise Linux server Set Network card (NIC) to Full duplex setting

This is a reply to an old thread but I thought I'd point out that on SLES 11 you need to remove the "=". All works well after that.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How do I configure the network card from the command line? jerry Linux software 4 17th September 2007 03:52 PM
OpenBSD get or display network card IP address Subnet mask information rockdalinux Getting started tutorials 0 15th June 2007 10:06 PM
Migrate a web server to Red Hat Enterprise Linux 4 from 3 chimu Linux software 2 19th December 2006 12:08 AM
set or how to change dns setting ubuntu linux network chiku Linux software 1 17th July 2006 06:30 PM
network card not being recognized Linux software 1 28th January 2006 11:25 AM


All times are GMT +5.5. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40