D-Link DFL-260E User Manual for DFL-260E - Page 112
Useful CLI Commands for Ethernet Interfaces
View all D-Link DFL-260E manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
3.4.2. Ethernet Interfaces Chapter 3. Fundamentals This same operation could also be done through the Web Interface. A summary of CLI commands that can be used with Ethernet interfaces can be found in Section 3.4.2.1, "Useful CLI Commands for Ethernet Interfaces". The Difference Between Logical and Physical Ethernet Interfaces The difference between logical and physical interfaces can sometimes be confusing. The logical Ethernet interfaces are those which are referred to in a NetDefendOS configuration. When using the Web Interface, only the logical interfaces are visible and can be managed. When using the CLI, both the logical and physical interfaces can be managed. For example, to change the name of the logical interface if1 to be lan, the CLI command is: gw-world:/> set Interface Ethernet if1 Name=lan This changes the logical name of the interface (and all references to it) but does not change the underlying physical name. For example, the CLI command ifstat shows the names of only the physical interfaces and this list is unaffected by the above name change. In the CLI, a physical interface is represented by the object EthernetInterface. To display all the characteristics of an interface, for example for interface if1, the CLI command is: gw-world:/> show EthernetInterface if1 The output from this command shows details about the physical Ethernet card including the bus, slot and port number of the card as well as the Ethernet driver being used. These details are not relevant to the logical interface object associated with the physical interface. 3.4.2.1. Useful CLI Commands for Ethernet Interfaces This section summarizes the CLI commands most commonly used for examining and manipulating NetDefendOS Ethernet interfaces. Ethernet interfaces can also be examined through the Web Interface but for some operations the CLI must be used. Showing Assigned Interfaces To show the current interface assigned to the IP address wan_ip: gw-world:/> show Address IP4Address InterfaceAddresses/wan_ip Property Value Name: wan_ip Address: 0.0.0.0 UserAuthGroups: NoDefinedCredentials: No Comments: IP address of interface wan To show the current interface assigned to the network wan_net: gw-world:/> show Address IP4Address InterfaceAddresses/wan_net Property Name: Address: Value wan_net 0.0.0.0/0 112