CPUG

The Check Point User Group

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

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Check Point SecurePlatform (SPLAT)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-09-26
Posts: 856
Rep Power: 3
cciesec2006 has an average reputation (10+)
Default mii-tool and ethtool

Avoid mii-tool at all cost. It is not reliable. See below:

[Expert@gw1]# mii-tool eth13
eth13: negotiated 100baseTx-FD flow-control, link ok
[Expert@gw1]#
[Expert@gw1]#
[Expert@gw1]#
[Expert@gw1]# ethtool eth13
Settings for eth13:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
[Expert@gw1]#
Reply With Quote
  #2 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-01-25
Posts: 1,005
Rep Power: 4
melipla has an average reputation (10+)
Default Re: mii-tool and ethtool

Aye mii-tool doesn't appear to report >100mbps links properly. Its handy for getting a quick report of all the interfaces link state.
__________________
Its all in the documentation.
Reply With Quote
  #3 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-09-26
Posts: 856
Rep Power: 3
cciesec2006 has an average reputation (10+)
Default Re: mii-tool and ethtool

Quote:
Originally Posted by melipla View Post
Aye mii-tool doesn't appear to report >100mbps links properly. Its handy for getting a quick report of all the interfaces link state.
That's not true. See below:

[Expert@gw2]# ifconfig -a | grep eth
eth0 Link encap:Ethernet HWaddr 00:15:17:76:18:C6
eth1 Link encap:Ethernet HWaddr 00:15:17:76:18:C7
eth2 Link encap:Ethernet HWaddr 00:15:17:76:D4:FC
eth3 Link encap:Ethernet HWaddr 00:15:17:76:D4:FD
eth4 Link encap:Ethernet HWaddr 00:15:17:7C:F1:F1
eth5 Link encap:Ethernet HWaddr 00:15:17:7C:F1:F0
eth6 Link encap:Ethernet HWaddr 00:15:17:7C:F1:F3
eth7 Link encap:Ethernet HWaddr 00:15:17:7C:F1:F2
eth8 Link encap:Ethernet HWaddr 00:15:17:7E:0A:B5
eth9 Link encap:Ethernet HWaddr 00:15:17:7E:0A:B4
eth10 Link encap:Ethernet HWaddr 00:15:17:7E:0A:B7
eth11 Link encap:Ethernet HWaddr 00:15:17:7E:0A:B6
eth12 Link encap:Ethernet HWaddr 00:1A:64:C3:6F:9A
eth13 Link encap:Ethernet HWaddr 00:1A:64:C3:6F:9C
[Expert@gw2]# mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: no link
eth2: no link
eth3: no link
eth4: no link
eth5: no link
eth6: no link
eth7: no link
[Expert@gw2]#

As you can see, mii-tool does not report all interfaces.
Reply With Quote
  #4 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-01-25
Posts: 1,005
Rep Power: 4
melipla has an average reputation (10+)
Default Re: mii-tool and ethtool

You've just ruined my day. ;)

As a side note, what kind of nics are you using?
__________________
Its all in the documentation.
Reply With Quote
  #5 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-09-26
Posts: 856
Rep Power: 3
cciesec2006 has an average reputation (10+)
Default Re: mii-tool and ethtool

Quote:
Originally Posted by melipla View Post
You've just ruined my day. ;)

As a side note, what kind of nics are you using?
I use Intel PRO/1000 quad-NIC and dual-NIC:

Intel(R) PRO/1000 Network Driver - version 7.3.15-NAPI
Copyright (c) 1999-2006 Intel Corporation.
PCI: Setting latency timer of device 1c:00.0 to 64
e1000: 1c:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x4) 00:15:17:76:18:c6
divert: allocating divert_blk for eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
PCI: Setting latency timer of device 1c:00.1 to 64
e1000: 1c:00.1: e1000_probe: (PCI Express:2.5Gb/s:Width x4) 00:15:17:76:18:c7
divert: allocating divert_blk for eth1
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
PCI: Setting latency timer of device 24:00.0 to 64
e1000: 24:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x4) 00:15:17:76:d4:fc
divert: allocating divert_blk for eth2
e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
PCI: Setting latency timer of device 24:00.1 to 64
Reply With Quote
  #6 (permalink)  
Old 2008-09-10
Senior Member
 
Join Date: 2006-03-08
Location: New Zealand
Posts: 103
Rep Power: 3
rubber_chicken has an average reputation (10+)
Default Re: mii-tool and ethtool

On a more fundamental level I always understood that mii-tool was only there for legacy stuff and that it was on its way out slowly. Ethtool is the new replacement and this should only be used. At least thats been my understanding so thats driven my sole use of ethtool.
Reply With Quote
  #7 (permalink)  
Old 2008-09-11
Member
 
Join Date: 2006-04-07
Location: Penzberg, Germany
Posts: 44
Rep Power: 0
Izzio has an average reputation (10+)
Default Re: mii-tool and ethtool

don't ask me why but mii-tool without arguments shows just only the first 8 nics.

On systems with >8 nics I usually create a "emii-tool" script containing following line (i.e. 12nics):

mii-tool eth0 eth1 eth2 eth3 eth4 eth5 eth6 eth7 eth8 eth9 eth10 eth11

and it is fine to find out the link state of the nics

Ciao
Maurizio
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 11:12.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0