<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need CLI Command to see Interfaces and Associated IP Information in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135366#M20390</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;From clish you can use the ‘show interfaces’ command to show all interfaces.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can then run ‘show interface &amp;lt;interface_name&amp;gt;’.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;From expert you can use the ‘ip’ set of commands.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/CLI-Reference-_interface_.htm" target="_blank"&gt;https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/CLI-Reference-_interface_.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://linux.die.net/man/8/ip" target="_blank"&gt;https://linux.die.net/man/8/ip&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 05:43:59 GMT</pubDate>
    <dc:creator>mcatanzaro</dc:creator>
    <dc:date>2021-12-02T05:43:59Z</dc:date>
    <item>
      <title>Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135354#M20384</link>
      <description>&lt;P&gt;Can you advise how to see&amp;nbsp;Interfaces and Associated IP Information from CLI&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 20:29:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135354#M20384</guid>
      <dc:creator>subrun_jamil</dc:creator>
      <dc:date>2021-12-01T20:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135366#M20390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;From clish you can use the ‘show interfaces’ command to show all interfaces.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can then run ‘show interface &amp;lt;interface_name&amp;gt;’.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;From expert you can use the ‘ip’ set of commands.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;References:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/CLI-Reference-_interface_.htm" target="_blank"&gt;https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/CLI-Reference-_interface_.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://linux.die.net/man/8/ip" target="_blank"&gt;https://linux.die.net/man/8/ip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 05:43:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135366#M20390</guid>
      <dc:creator>mcatanzaro</dc:creator>
      <dc:date>2021-12-02T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135368#M20391</link>
      <description>&lt;P&gt;[Expert@R81-standalone:0]# &lt;STRONG&gt;ip ad | grep "inet"&lt;/STRONG&gt;&lt;BR /&gt;inet 127.0.0.1/8 scope host lo&lt;BR /&gt;inet 192.168.133.129/24 brd 192.168.133.255 scope global eth0&lt;BR /&gt;inet 10.10.10.129/24 brd 10.10.10.255 scope global eth1&lt;BR /&gt;inet 172.17.0.1/16 scope global docker0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW&amp;nbsp; Does anyone know what &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Docker&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;is doing in my firewall ?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;[Expert@R81-standalone:0]# &lt;STRONG&gt;docker --version&lt;/STRONG&gt;&lt;BR /&gt;Docker version 1.13.1, build 07f3374/1.13.1&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 06:13:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135368#M20391</guid>
      <dc:creator>Yuri_Slobodyany</dc:creator>
      <dc:date>2021-12-02T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135369#M20392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Are you running any jumbo hotfix accumulators?&lt;/P&gt;
&lt;P&gt;R81 JHF T10 removed the docker interface:&lt;/P&gt;
&lt;TABLE id="limitationTable" class="footnote" border="1" width="100%" cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;PRJ-19150,&lt;BR /&gt;PMTR-57495&lt;/TD&gt;
&lt;TD&gt;Gaia OS&lt;/TD&gt;
&lt;TD&gt;"Docker0" bridge interface with assigned IP address from class B private pool may appear in the system, causing routing issues.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AFAIK docker is mainly for the SMC web application.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 06:23:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135369#M20392</guid>
      <dc:creator>mcatanzaro</dc:creator>
      <dc:date>2021-12-02T06:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135370#M20393</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;nope - running vanilla Take 392 (it is a lab environment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@R81-standalone:0]# docker --version&lt;BR /&gt;Docker version 1.13.1, build 07f3374/1.13.1&lt;BR /&gt;[Expert@R81-standalone:0]# ip ad | grep docker&lt;BR /&gt;6: docker0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN&lt;BR /&gt;inet 172.17.0.1/16 scope global docker0&lt;BR /&gt;[Expert@R81-standalone:0]#&lt;BR /&gt;[Expert@R81-standalone:0]# fw ver&lt;BR /&gt;This is Check Point's software version R81 - Build 959&lt;BR /&gt;[Expert@R81-standalone:0]# fwm ver&lt;BR /&gt;This is Check Point Security Management Server R81 - Build 287&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 06:38:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135370#M20393</guid>
      <dc:creator>Yuri_Slobodyany</dc:creator>
      <dc:date>2021-12-02T06:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need CLI Command to see Interfaces and Associated IP Information</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135433#M20412</link>
      <description>&lt;P&gt;I wrote this one to show me the VSID, name, MAC, and IP address for every interface on every VS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;printf "%5s%12s%19s%19s\n" "VSID" "Interface" "MAC Address" "IP Address/Prefix";for vsid in $(ip netns list 2&amp;gt;/dev/null | cut -d' ' -f3 | cut -d')' -f1;ls /proc/vrf/ 2&amp;gt;/dev/null | sort -n);do vsenv $vsid&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 || vsx set $vsid&amp;gt;/dev/null 2&amp;gt;&amp;amp;1;for iface in $(ifconfig -a | egrep "^[^ ]" | awk '{print $1}' | egrep -v "^(lo[0-9]*$|usb)");do printf "%5s" $vsid;printf "%12s" $iface;printf "%19s" $(ip addr show $iface | grep ' link/ether ' | awk '{print $2}');printf "%19s" $(ifconfig $iface | grep ' inet ' | cut -d':' -f2 | cut -d' ' -f1);echo "";done;done&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Works on SecurePlatform (really old versions), GAiA with 2.6 kernel (up through R80.30), and GAiA with 3.10 kernel (R80.40 and later).&lt;/P&gt;
&lt;P&gt;Separately, I also quite like this for showing physical interface information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;printf "%9s%13s%10s%8s%6s\n" "Interface" "PCIe Addr" "PCI-ID" "Driver" "Link?";ifconfig -a | egrep "^[^ ]" | awk '{print $1}' | egrep -v "^(lo$|usb|bond[0-9\.]+|gre(tap)?[0-9]+|Mgmt\.[0-9]|eth[-0-9]+\.)" | xargs -n 1 -I @ sh -c 'printf "%9s" @;printf "%13s" $(ethtool -i @ | grep "bus" | cut -d" " -f2);printf "%10s" $(lspci -n | grep $(ethtool -i @ | grep "bus" | cut -d: -f3-4) | cut -d" " -f3);printf "%8s" $(ethtool -i @ | grep "driver" | cut -d" " -f2);printf "%6s" $(ethtool @ | grep "Link" | cut -d" " -f3);echo ""'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA:0]# printf "%5s%12s%19s%19s\n" "VSID" "Interface" "MAC Address" "IP Address/Prefix";for vsid in $(ip netns list 2&amp;gt;/dev/null | cut -d' ' -f3 | cut -d')' -f1;ls /proc/vrf/ 2&amp;gt;/dev/null | sort -n);do vsenv $vsid&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 || vsx set $vsid&amp;gt;/dev/null 2&amp;gt;&amp;amp;1;for iface in $(ifconfig -a | egrep "^[^ ]" | awk '{print $1}' | egrep -v "^(lo[0-9]*$|usb)");do printf "%5s" $vsid;printf "%12s" $iface;printf "%19s" $(ip addr show $iface | grep ' link/ether ' | awk '{print $2}');printf "%19s" $(ifconfig $iface | grep ' inet ' | cut -d':' -f2 | cut -d' ' -f1);echo "";done;done
 VSID   Interface        MAC Address  IP Address/Prefix
    0        eth0  00:11:22:33:44:55         10.0.1.253
    0        eth1  00:11:22:33:44:56                   
    0        eth2  00:11:22:33:44:57                   
    0        eth3  00:11:22:33:44:58                   
    0        eth4  00:11:22:33:44:59                   
    0        eth5  00:11:22:33:44:5a                   
    0     gretap0  00:00:00:00:00:00                   
    0        gre0                                      
[Expert@DallasSA:0]# printf "%9s%13s%10s%8s%6s\n" "Interface" "PCIe Addr" "PCI-ID" "Driver" "Link?";ifconfig -a | egrep "^[^ ]" | awk '{print $1}' | egrep -v "^(lo$|usb|bond[0-9\.]+|gre(tap)?[0-9]+|Mgmt\.[0-9]|eth[-0-9]+\.)" | xargs -n 1 -I @ sh -c 'printf "%9s" @;printf "%13s" $(ethtool -i @ | grep "bus" | cut -d" " -f2);printf "%10s" $(lspci -n | grep $(ethtool -i @ | grep "bus" | cut -d: -f3-4) | cut -d" " -f3);printf "%8s" $(ethtool -i @ | grep "driver" | cut -d" " -f2);printf "%6s" $(ethtool @ | grep "Link" | cut -d" " -f3);echo ""'
Interface    PCIe Addr    PCI-ID  Driver Link?
     eth0 0000:02:00.0 8086:150c  e1000e   yes
     eth1 0000:03:00.0 8086:150c  e1000e    no
     eth2 0000:04:00.0 8086:150c  e1000e    no
     eth3 0000:05:00.0 8086:150c  e1000e    no
     eth4 0000:06:00.0 8086:150c  e1000e    no
     eth5 0000:07:00.0 8086:150c  e1000e    no
[Expert@DallasSA:0]# &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:50:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-CLI-Command-to-see-Interfaces-and-Associated-IP-Information/m-p/135433#M20412</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-12-02T19:50:51Z</dc:date>
    </item>
  </channel>
</rss>

