Chapter 6 Interfaces

 

 

Table 17 interface Commands: MAC Setting (continued)

 

COMMAND

DESCRIPTION

type {internalexternalgeneral}

Sets which type of network you will connect this

 

interface. The NXC automatically adds default

 

route and SNAT settings for traffic it routes from

 

internal interfaces to external interfaces; for

 

example LAN to WAN traffic.

 

internal: Set this to connect to a local network.

 

Other corresponding configuration options: DHCP

 

server and DHCP relay. The NXC automatically

 

adds default SNAT settings for traffic flowing from

 

this interface to an external interface.

 

external: Set this to connect to an external

 

network (like the Internet). The NXC automatically

 

adds this interface to the default WAN trunk.

 

general: Set this if you want to manually

 

configure a policy route to add routing and SNAT

 

settings for the interface.

 

 

no use-defined-mac

Has the interface use its default MAC address.

use-defined-mac

Has the interface use a MAC address that you

 

specify.

6.4 Port Commands

This section covers commands that are specific to ports.

In CLI, representative interfaces are also called representative ports.

Table 18 Basic Interface Setting Commands

COMMAND

DESCRIPTION

no port <1..x>

Removes the specified physical port from its

 

current representative interface and adds it to its

 

default representative interface (for example, port x

 

--> gex).

 

 

port status Port<1..x>

Enters a sub-command mode to configure the

 

specified port’s settings.

[no] duplex <full half>

Sets the port’s duplex mode. The no command

 

returns the default setting.

exit

Leaves the sub-command mode.

[no] negotiation auto

Sets the port to use auto-negotiation to determine

 

the port speed and duplex. The no command turns

 

off auto-negotiation.

 

 

[no] speed <100,10>

Sets the Ethernet port’s connection speed in Mbps.

 

The no command returns the default setting.

show port setting

Displays the Ethernet port negotiation, duplex, and

 

speed settings.

show port status

Displays statistics for the Ethernet ports.

 

59

NXC CLI Reference Guide