> Source: [sk111017](https://support.checkpoint.com/results/sk/sk111017)

# sk111017 - Topology is not set correctly in SmartDashboard for interfaces named "Internal" and "External"

| Property | Value |
|----------|-------|
| Solution ID | sk111017 |
| Date Created | 2016-04-14 |
| Last Modified | 2023-03-22 |
| Technical Level | General |
| Products | Security Management Server, SmartConsole, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |

## Symptoms

- Topology in SmartDashboard for interfaces named "Internal" and "External" (e.g., on UTM-1, Power-1, DLP-1 appliances) is always set based on their names:

* For interface named "Internal" is always set to "*Internal (leads to the local network)*"
* For interface named "External" is always set to "*External (leads out to the Internet)*"

*Example scenario*:

1. Interface named "Internal" is assigned with "external" IP address, and default route leads via this interface
2. Interface named "External" is assigned with "internal" IP address
3. Open the corresponding object in SmartDashboard
4. Go to "*Topology* " tab - click on "*Get...* " button - click on "*Interfaces with Topology...*"
5. Topology is not set correctly for these interfaces:  
   * For interface "Internal" it is set to "*Internal (leads to the local network)*"
   * For interface "External" it is set to "*External (leads out to the Internet)*"

## Cause

This is the current design.

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R77.30](http://supportcontent.checkpoint.com/solutions?id=sk106162) - since *Take_143*

For **other [supported](http://www.checkpoint.com/support-services/support-life-cycle-policy/index.html) versions** , [Check Point Support](http://www.checkpoint.com/support-services/contact-support/index.html) can supply a **Hotfix** .  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPinfo files](http://supportcontent.checkpoint.com/solutions?id=sk92739) from the Security Management Server and Security Gateways involved in the case.

**Code was improved in the following way:**

* By default, topology for all interfaces is calculated based on their IP addresses.

* If required, topology for interfaces named "Internal" and "External" can be calculated based only on their names (if the value of environment variable *DIRECTION_BY_IFC_NAME* is set to 1).

**Hotfix installation instructions:**

1. Hotfix has to be installed on ***Multi-Domain Security Management Server***.

   **Note:** In Management HA environment, this procedure must be performed on *both* Management Servers.
2. Procedure:

   * Using CPUSE on Gaia OS:

     Refer to [sk92449: CPUSE - Gaia Software Updates (including Gaia Software Updates Agent)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE):
     * Section "[(4-A-c)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Portal)" / "[(4-A-d)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Clish)" - refer to import instructions for *Offline procedure*
     * Section "[(4-B-a)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to install a CPUSE package - Installing a Hotfix package / Minor Version package)" - refer to installation instructions for *Hotfixes*
   * Using Legacy CLI on Gaia/SecurePlatform/IPSO OS:

     1. Transfer the hotfix package to the machine (into some directory, e.g., */some_path_to_fix/*).

     2. Unpack the hotfix package:

        ***\[Expert@HostName:0\]# cd /some_path_to_fix/***   
        ***\[Expert@HostName:0\]# tar -zxvf fw1_wrapper_\<HOTFIX_NAME\>.tgz***
     3. Install the hotfix:

        ***\[Expert@HostName:0\]# ./fw1_wrapper_\<HOTFIX_NAME\>***
        **Note:** The script will stop all of Check Point services (*cpstop*) - read the output on the screen.
     4. Reboot the machine.

If it is required to calculate the topology for interfaces named "Internal" and "External" based only on their names, then:

1. Set value of environment variable ***DIRECTION_BY_IFC_NAME*** is set to 1 (one):

   * Show / Hide instructions to set the value *on-the-fly*  

     * On Gaia / SecurePlatform / Linux / IPSO OS:

       * In Bash shell (default shell for Expert mode):

         ***\[Expert@HostName\]# export DIRECTION_BY_IFC_NAME=1
         \[Expert@HostName\]# echo $DIRECTION_BY_IFC_NAME***
       * In Csh shell:

         ***\[admin@HostName \~\]# setenv DIRECTION_BY_IFC_NAME 1
         \[admin@HostName \~\]# echo $DIRECTION_BY_IFC_NAME***

       **Notes:**
       * To verify that the environment variable was applied, run:  
         ***# echo $DIRECTION_BY_IFC_NAME***   
         Output should show "`1`"

       * To unset the environment variable, run:  
         ***unset DIRECTION_BY_IFC_NAME***
     * On Windows OS:

       1. Open Windows Command Prompt

       2. Run:

          ***set DIRECTION_BY_IFC_NAME=1***

       **Notes:**
       * To verify that the environment variable was applied, run:  
         ***set \| findstr DIRECTION_BY_IFC_NAME***   
         Output should show "`DIRECTION_BY_IFC_NAME=1`"

       * To unset the environment variable, run:  
         ***set DIRECTION_BY_IFC_NAME=***

     <br />

     <br />

   * Show / Hide instructions to set the value *permanently*  

     * On Gaia / SecurePlatform / Linux / IPSO OS:

       1. Add the following line to file ***$CPDIR/conf/.CPprofile.sh*** script  
          (above the '*INFODIR=/opt/CPinfo-10 ; export INFODIR*' line):

          ***DIRECTION_BY_IFC_NAME=1 ; export DIRECTION_BY_IFC_NAME***
       2. Add the following line to file ***$CPDIR/conf/.CPprofile.csh*** script  
          (above the '*setenv INFODIR "/opt/CPinfo-10"*' line):

          ***setenv DIRECTION_BY_IFC_NAME 1***
       3. Restart Check Point services:

          ***# cpstop ; cpstart***

       **Notes:**
       * To verify that the environment variable was applied, run:  
         ***# echo $DIRECTION_BY_IFC_NAME***   
         Output should show "`1`"

       * To unset the environment variable:  
         1. Delete it from the *$CPDIR/conf/.CPprofile.sh* script and from the *$CPDIR/conf/.CPprofile.csh* script
         2. Restart Check Point services (*cpstop ; cpstart* )  
            If this is not possible, then log out from all shells except the last one, and in the last shell, run:  
            ***unset DIRECTION_BY_IFC_NAME***

       <br />

       <br />

     * On Windows OS:

       Use system settings to set the new system environment variable *DIRECTION_BY_IFC_NAME* with value of 1
       :   
           1. Start menu - ***Run...*** - ***"%WINDIR%\\system32\\rundll32.exe" sysdm.cpl,EditEnvironmentVariables*** - click on OK

              Alternatively:
              1. Desktop - right-click on the "*My Computer* " icon - click on "*Properties*"
              2. Go to "*Advanced*" tab.
              3. At the bottom, click on "*Environment Variables...*" button.

              <br />

              <br />

           2. Under "*System variables* " - click on "*New...*"

              * name: ***DIRECTION_BY_IFC_NAME***
              * value: ***1***
              * and click "*OK* " to close the "*New System Variable*" window.

              <br />

              <br />

           3. Click on "*OK* " to close the "*Environment Variables* " window.   

           4. Click on "*OK* " to close the "*System Properties* " window.   

           5. Reboot the machine.

       **Notes:**
       * To verify that the environment variable was applied, run in Windows Command Prompt:  
         ***set \| findstr DIRECTION_BY_IFC_NAME***   
         Output should show "`DIRECTION_BY_IFC_NAME=1`"

       * To unset the environment variable, delete it from the "*Environment Variables*" window and reboot.
2. Open the corresponding object in SmartDashboard

3. Go to "*Topology* " tab - click on "*Get...* " button - click on "*Interfaces with Topology...*"

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
