FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
jfelix09
Staff
Staff
Article Id 358437
Description This article describes how to identify the PPPoE interface IP address via FortiGate CLI.
Scope FortiGate
Solution

When PPPoE is configured under FortiGate interface in 'config system settings' and an IP is assigned to the interface, the system will assign a specific name to each PPPoE interface (i.e. ppp<ID>).

To identify the IP address assigned to each interface 'ppp<ID>' via the CLI, use the following commands. 

 

First, obtain the index of the matching interface that was used to configure the PPPoE settings (note that this example uses 'VLAN176' as the interface name, change '<INTERFACE-NAME>' accordingly): 

 

diagnose netlink interface list | grep <INTERFACE-NAME>

 

Screenshot 2024-11-18_vlan176png.png

 

For each interface, the system will assign an 'index' (typically the assignment is dynamic and doesn't follow a specific pattern).

The PPPoE interface ('ppp<ID>') should be linked with the 'VLAN176' interface 'index=XX' (change 'link=XX' accordingly with the interface 'index'):

 

diagnose netlink interface list | grep link=XX

 

Screenshot 2024-11-18_link22.png

 

After obtaining the interface name 'if=ppp<ID>', run the following command to know the IP address for the 'ppp<ID>' interface (change 'ppp1' accordingly): 

 

diagnose ip address list | grep ppp1

 

Screenshot 2024-11-18_ip.png

 

Related articles:

Contributors