VIRL Server Network Interface Locator

    Summary

    This script is meant to assist users with identifying of all system recognized network interfaces. It may be used on a bare-metal system or virtual machine. It should also be noted that this script is not specific to VIRL and may be used on any Linux OS.

     

    NOTE: This script is not specific to VIRL and may be used on any Linux system.

     

    Creating and Using the Script

    1. Download script
    2. Open script using a text editor like Notepad or TextEdit
    3. Connect to VIRL PE via SSH and log in
          Username: virl
          Password:  VIRL
    4. Create a blank file named int_locator.sh using the following commands:
        vim int_locator.sh
          Press the letter  i to Insert text
          Paste entire contents of the script into the new file
          Press  esc  key to close edit mode
          Type  :  followed by the letter  x  to save and close the file
    5. Make script executable
        chmod u+x int_locator.sh
    6. Run script
        ./int_locator.sh

     

    **Take a look at Other Logs section in How to: Collect Logs For VIRL Troubleshooting for other ways to add scripts to your VIRL server.

     

    Running the script

    virl@tech-spprt:~$ ./int_locator.sh

     

    Interface [MAC]: IP Addr    Driver (Status)

          eth0 [00:50:56:b9:77:80]: 10.87.94.131    e1000 (up)

          eth1 [00:50:56:b9:24:db]: No IP Address    e1000 (up)

          eth2 [00:50:56:b9:41:0b]: No IP Address    e1000 (up)

          eth3 [00:50:56:b9:4a:fc]: No IP Address    e1000 (up)

          eth4 [00:50:56:b9:9b:fd]: 172.16.10.250    e1000 (up)

     

     

    If you need assistance with troubleshooting, take a look at How to: Collect Logs For VIRL Troubleshooting

    If you are trying to configure a static IP address on VIRL 1.2.8x and lower, make sure to use How To: Configure Static IP Address Manually

    int_locator.sh (827 bytes) Download