CPUG: The Check Point User Group

Resources for the Check Point Community, by the Check Point Community.


Tim Hall has done it again! He has just released the 2nd edition of "Max Power".
Rather than get into details here, I urge you to check out this announcement post.
It's a massive upgrade, and well worth checking out. -E

 

Results 1 to 12 of 12

Thread: How to identify the onboard nics on Linux

  1. #1
    Join Date
    2009-11-24
    Posts
    7
    Rep Power
    0

    Default How to identify the onboard nics on Linux

    Hi,

    Does anyone here know what's the command to identify the onboard nics on a Linux server?

    Thanks,
    B.

  2. #2
    Join Date
    2006-09-26
    Posts
    3,193
    Rep Power
    16

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by beaulavie@yahoo.com View Post
    Hi,

    Does anyone here know what's the command to identify the onboard nics on a Linux server?

    Thanks,
    B.
    Use "ethtool" to do it

  3. #3
    Join Date
    2009-06-10
    Location
    NE Ohio
    Posts
    1,202
    Rep Power
    12

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by cciesec2006 View Post
    Use "ethtool" to do it
    FYI, that works on my Intel NICs, but didn't on my Broadcoms.

  4. #4
    Join Date
    2009-11-24
    Posts
    7
    Rep Power
    0

    Default Re: How to identify the onboard nics on Linux

    ethtool result looks the same to me.. it's not be able to verify if it's the onboard or external nic.

  5. #5
    Join Date
    2006-02-09
    Location
    Charleston, SC
    Posts
    1,172
    Rep Power
    15

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by belvdr View Post
    FYI, that works on my Intel NICs, but didn't on my Broadcoms.
    Amazing how we pay loads of $$$ for Enterprise class hardware and they stick in the cheapest/crappiest NICs on the planet as the on-boards... I would pay a few hundred extra $$$ if HP would just use Intels for the built-in NICs.
    There's no place like 127.0.0.1

  6. #6
    Join Date
    2009-04-30
    Location
    Colorado, USA
    Posts
    2,249
    Rep Power
    14

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by beaulavie@yahoo.com View Post
    ethtool result looks the same to me.. it's not be able to verify if it's the onboard or external nic.
    Whenever I set up a new firewall I identify which NIC is which ethX like this:

    - unplug all network cables
    - plug a network cable attached to a switch into a NIC on the firewall
    - wait 10-15 seconds
    - run ethtool eth0, ethtool eth1... etc etc until you find the one port that reports "Link Detected: yes"
    - make a note of it
    - unplug the network cable from the firewall and plug it into the next firewall NIC

    rinse and repeat...

  7. #7
    Join Date
    2006-02-09
    Location
    Charleston, SC
    Posts
    1,172
    Rep Power
    15

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by ShadowPeak.com View Post
    Whenever I set up a new firewall I identify which NIC is which ethX like this:

    - unplug all network cables
    - plug a network cable attached to a switch into a NIC on the firewall
    - wait 10-15 seconds
    - run ethtool eth0, ethtool eth1... etc etc until you find the one port that reports "Link Detected: yes"
    - make a note of it
    - unplug the network cable from the firewall and plug it into the next firewall NIC

    rinse and repeat...

    Whenever I get new hardware, I do something similar except I just stick in the SPLAT CD and start an install. When it comes time to configure the first interface, only one shows a link. I make a drawing of the NIC ports and start mapping them one at a time by moving the cable and refreshing. I then have a port map drawing for that hardware platform. I can then use this drawing for all installs on the same model of server.


    EDIT: If I am changing versions of CP/SPLAT, I double check each port on my standby gateway to make sure the numbering is unchanged.
    There's no place like 127.0.0.1

  8. #8
    Join Date
    2009-11-24
    Posts
    7
    Rep Power
    0

    Default Re: How to identify the onboard nics on Linux

    Yep that's how i do it too.. just that wondering if there is a way for me to identify the onboard/external from the command line.

  9. #9
    Join Date
    2009-04-30
    Location
    Colorado, USA
    Posts
    2,249
    Rep Power
    14

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by beaulavie@yahoo.com View Post
    Yep that's how i do it too.. just that wondering if there is a way for me to identify the onboard/external from the command line.
    Without causing a link transition and checking the result with ethtool or during the install I think the answer is no.

  10. #10
    Join Date
    2008-02-19
    Posts
    1
    Rep Power
    0

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by ShadowPeak.com View Post
    Without causing a link transition and checking the result with ethtool or during the install I think the answer is no.
    I did use this before and here is the info from the man page
    ethtool -p|--identify DEVNAME Show visible port identification (e.g.
    blinking)

  11. #11
    Join Date
    2009-04-30
    Location
    Colorado, USA
    Posts
    2,249
    Rep Power
    14

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by habdelra View Post
    I did use this before and here is the info from the man page
    ethtool -p|--identify DEVNAME Show visible port identification (e.g.
    blinking)
    I'll have to give that a try. Thanks for the tip.

  12. #12
    Join Date
    2009-06-10
    Location
    NE Ohio
    Posts
    1,202
    Rep Power
    12

    Default Re: How to identify the onboard nics on Linux

    Quote Originally Posted by habdelra View Post
    I did use this before and here is the info from the man page
    ethtool -p|--identify DEVNAME Show visible port identification (e.g.
    blinking)
    That's what didn't work on my Broadcom NICs. It was tested on a DL380 G5. My G6 has the onboard disabled in the BIOS, and are in production, so I'm not screwing with that.

    Say you have 8 NICs, you can blink them all for 10 seconds each with the following in expert mode:

    Code:
    for ID in $(seq 0 7); do ethtool -p eth${ID} 10; done
    If SPLAT had a version of bash greater than 3.0, then we could simplify with a built-in range, but oh well.
    Last edited by belvdr; 2010-03-11 at 09:35.

Similar Threads

  1. R70 with HP DL380 G6 internal NICS
    By bluecheck in forum Interoperability
    Replies: 12
    Last Post: 2010-05-07, 15:46
  2. Box HCL - Onboard NICs - DL380G5
    By Adam Carter in forum Check Point SecurePlatform (SPLAT)
    Replies: 3
    Last Post: 2009-02-23, 16:51
  3. how to identify installed modules
    By svelladurai in forum Miscellaneous
    Replies: 7
    Last Post: 2009-01-12, 21:00
  4. How to identify all hardware installed
    By rubber_chicken in forum Check Point SecurePlatform (SPLAT)
    Replies: 1
    Last Post: 2008-07-01, 15:23
  5. SPLAT NG with AI R55 and 3COM NICs
    By cciesec2006 in forum Check Point SecurePlatform (SPLAT)
    Replies: 0
    Last Post: 2008-06-10, 13:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •