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>
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
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
Related articles: |