beautypg.com

Useful cli commands for ethernet interfaces – Amer Networks E5Web GUI User Manual

Page 160

background image

3.4.2.1. Useful CLI Commands for Ethernet Interfaces

This section summarizes the CLI commands most commonly used for examining and
manipulating cOS Core Ethernet interfaces.

Ethernet interfaces can also be examined through the Web Interface or InControl, but for some
operations the CLI must be used.

Showing Assigned Interfaces

To show the current interface assigned to the IP address wan_ip:

Device:/> 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:

Device:/> show Address IP4Address InterfaceAddresses/wan_net

Property

Value

---------------------

------------------------

Name:

wan_net

Address:

0.0.0.0/0

UserAuthGroups:

NoDefinedCredentials:

No

Comments:

Network on interface wan

To show the current interface assigned to the gateway wan_gw:

Device:/> show Address IP4Address InterfaceAddresses/wan_gw

Property

Value

---------------------

---------------------------------

Name:

wan_gw

Address:

0.0.0.0

UserAuthGroups:

NoDefinedCredentials:

No

Comments:

Default gateway for interface wan

By using the tab key at the end of a line, tab completion can be used to complete the command:

Device:/> show Address IP4Address InterfaceAddresses/wan_

[] [ []]:

InterfaceAddresses/wan_br

InterfaceAddresses/wan_gw

InterfaceAddresses/wan_dns1

InterfaceAddresses/wan_ip

InterfaceAddresses/wan_dns2

InterfaceAddresses/wan_net

Here, tab completion is used again at the end of the command line:

Device:/> set Address IP4Address

[] []:

dnsserver1_ip

InterfaceAddresses/wan_br timesyncsrv1_ip

InterfaceAddresses/aux_ip

InterfaceAddresses/wan_dns1

InterfaceAddresses/aux_net InterfaceAddresses/wan_dns2
InterfaceAddresses/dmz_ip

InterfaceAddresses/wan_gw

InterfaceAddresses/dmz_net InterfaceAddresses/wan_ip

Chapter 3: Fundamentals

160

This manual is related to the following products: