CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have 52 attendees signed up from 14 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 8/25, 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-12-28
Westy Westy is offline
Junior Member
 
Join Date: 2005-12-20
Posts: 24
Rep Power: 0
Westy has an average reputation (10+)
Default Using sysconfig or the command line to change nic speed and duplex settings

i'm asking how to use sysconfig or the command line to change the nic speed and duplex settings. i posted up a few days back now, and got a reply to use the web gui to change the settings, which worked great. but, i'd like to know how to do it from the command line or sysconfig.
Reply With Quote
  #2 (permalink)  
Old 2005-12-29
maurox maurox is offline
Member
 
Join Date: 2005-11-17
Location: Italy
Posts: 82
Rep Power: 3
maurox has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

On splat there are two commands:
ethtool and miitool.
try with a mii-tool ( or ethtool) --help for see all the options ; commands can be put at the end of /etc/rc.local startup script to survive reboot.
Maurox
Reply With Quote
  #3 (permalink)  
Old 2005-12-29
Westy Westy is offline
Junior Member
 
Join Date: 2005-12-20
Posts: 24
Rep Power: 0
Westy has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

I tried both mii and ethtool, neither worked. also tried editing the ifcfg-eth0 file and rebooted the server, that didn't work either.
Reply With Quote
  #4 (permalink)  
Old 2005-12-30
maurox maurox is offline
Member
 
Join Date: 2005-11-17
Location: Italy
Posts: 82
Rep Power: 3
maurox has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

Neither works ?
what didn't work , the command or the speed ?
Are you in expert mode ?
Reply With Quote
  #5 (permalink)  
Old 2005-12-30
Westy Westy is offline
Junior Member
 
Join Date: 2005-12-20
Posts: 24
Rep Power: 0
Westy has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

I was in Expert mode. The nic is set to 10 Mb's half duplex. Here's the commands I used.

ifdown eth0 'take the interface down
ethtool -s eth0 speed 100 duplex full autoneg off 'make the changes
ifup 'bring the interface up
ethtool eth0 'check the interface settings

next i tried.

ifdown eth0
mii -tool -F 100baseTx-FD eth0
ifup etho
ethtool eth0

next i tried, editing the ifcfg-eth0 file by adding this line to the end of the file.

ethtool_opts="speed 100 duplex full autoneg off"

And, then restarted the server.

None of these attempts worked. Ethtool showed the interface was still set to 10 Mb's half duplex, and I still had collisions occuring.

uname -r returns 2.4.21-20cp

Do these commands work on your SPLAT box?
Reply With Quote
  #6 (permalink)  
Old 2005-12-30
SamuelB SamuelB is offline
Junior Member
 
Join Date: 2005-12-30
Posts: 7
Rep Power: 0
SamuelB has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

Are you using NGX R60? If so, have you tried the eth_set utility?
Reply With Quote
  #7 (permalink)  
Old 2006-01-04
Westy Westy is offline
Junior Member
 
Join Date: 2005-12-20
Posts: 24
Rep Power: 0
Westy has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

I am using NGX R60, and no, I've not tried the eth_set utility. I'll have a look at Help on the command syntax. Thanks for letting me know about eth_set.
Reply With Quote
  #8 (permalink)  
Old 2006-01-04
Youngy Youngy is offline
Member
 
Join Date: 2005-09-20
Posts: 83
Rep Power: 3
Youngy has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

I found this whilst looking for fixes to the issue you posted up. I hope it helps!

Using mii-tool or ethtool to configure speed and duplex in secure platform



NOTE: mii-tool does not work with all NIC's. ethtool has been provided to configure non mii-compliant NIC's.

In expert mode, use "mii-tool" to hard code link speed and duplex settings of network interfaces.

For example:
# mii-tool eth1 -F 100baseTx-FD

This will force the eth1 interface to 100 Mbps link speed, full duplex.

# mii-tool eth0 -F 10baseT-HD

Will force eth0 to 10Mbps link speed and half duplex.

The commands can be put at the end of the /etc/rc.local startup script in order to survive a reboot.

The full usage of the command is:
mii-tool [-v, --verbose] [-V, --version] [-R, --reset] [-r, --restart] [-w, --watch] [-l, --log] [-A, --advertise=media,...] [-F, --force=media] [interface ...]

OPTIONS
-v, --verbose
Display more detailed MII status information. If used twice, also display raw MII register contents.
-V, --version
Display program version information.
-R, --reset
Reset the MII to its default configuration.
-r, --restart
Restart autonegotiation.
-w, --watch
Watch interface(s) and report changes in link status. The MII interfaces are polled at one second intervals.
-l, --log
Used with -w, records link status changes in the system log instead of printing on standard output.
-F media, --force=media
Disable autonegotiation, and force the MII to either 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD operation.
-A media,..., --advertise=media,...
Enable and restart autonegotiation, and advertise only the specified media technologies. Multiple technologies should be separated by commas. Valid media are 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD
Reply With Quote
  #9 (permalink)  
Old 2006-01-09
Westy Westy is offline
Junior Member
 
Join Date: 2005-12-20
Posts: 24
Rep Power: 0
Westy has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

Here's a tidbit I found in CP SecureKnowledge. Solution ID: sk26592
This is for a 1 gb nic. If it's a 100 mhz, drop a zero.
modify the /etc/modules.conf file by adding this line.

option e1000 Duplex=2,2,2 Speed=1000, 1000, 1000

I'm a bit puzzled because this is what my modules.conf looks like now.
alias eth0 e100
alias eth1 e100
alias scsi_hostadapter sym53c8xx
alias scsi_hostadapter cpqarray
alias scsi_hostadapter1 sym53c8xx
alias usb-controller usb-ohci
Reply With Quote
  #10 (permalink)  
Old 2006-10-31
JasonS JasonS is offline
Junior Member
 
Join Date: 2006-10-31
Location: Australia
Posts: 1
Rep Power: 0
JasonS has an average reputation (10+)
Default Re: Using sysconfig or the command line to change nic speed and duplex settings

I have used the ethtool and it has been successful, exact command:
ethtool -s eth0 speed 100 duplex full autoneg off
i also added this to the rc.local file and it survives a reboot. not sure were i read it but you can't force a speed 1000, this only works if autonegotiated. though that may have been old.
Reply With Quote
Reply

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 17:33.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0