[Top] [Table Of Contents] [Prev] [Next] [Index]

Ethernet Interface        4


This chapter describes how to use the command line interface to configure the Ethernet interface and subinterfaces of the PortMaster. Detailed command definitions follow a command summary table.

Examples in this chapter are from a PortMaster 2R, which uses Ether0 for its Ethernet interface. All PortMaster products use this same designation. In addition, the PortMaster IRX-211 uses Ether1 for a second Ethernet interface.

Displaying Ethernet Information

To display information about your configuration, use the following commands:

Summary of Ethernet Commands

The Ethernet commands in Table 4-1 configure the Ether0 Ethernet interfaces and-except as noted-the Ether1 interface on the IRX-211.  

 

Ethernet Configuration

Command Syntax

 

set Ether0 address Ipaddress [/NM]|[Netmask]

- seepage 4-3

set Ether0 broadcast high|low

- seepage 4-4

set Ether0 ifilter Filtername

- seepage 4-5

set ether0 ip enabled|disabled 1 - seepage 4-6

set ether0 ipx enabled|disabled 1

- seepage 4-6

set Ether0 ipxframe ethernet_802.2|ethernet_802.2_ii|ethernet_802.3|
ethernet_ii

- see page 4-7

set Ether0 ipxnet Ipxnetwork

- see page 4-8

set Ether0 netmask Netmask

- see page 10-7

set Ether0 ofilter Filtername

- see page 4-9

set Ether0 ospf accept-rip on|off

- see page 11-7

set Ether0 ospf on|off

- see page 11-8

set Ether0 rip on|broadcast|listen|off

- see page 10-19

set Ether0 route-filter incoming|outgoing Filtername

- see page 10-8

show Ether0

- see page 4-10

1 This command is available only on the Ether0 port, even on the IRX-211.

Ethernet Commands

These commands affect the Ethernet interface of the PortMaster. The Ethernet interface of the PortMaster is called Ether0 on all models. In addition, the IRX-211 has a second Ethernet interface, called Ether1. All Ether0 commands can be used for Ether1, except as noted in this section.

set Ether0 address

This command sets the IP address of the Ethernet interface.

set Ether0 address Ipaddress [/NM]|[Netmask]

Ether0

Ethernet interface.

Ipaddress

IP address or hostname.

/NM

Optional netmask-an integer between 1 and 32 that indicates the number of high-order bits set to 1. Enter a slash (/) between the IP address and the netmask in bits.

Netmask

Optional netmask expressed in dotted decimal notation. Enter a space between the IP address and the netmask.

Usage

For more information about setting the IP address, refer to the hardware installation guide for your PortMaster.

Note ¯ If you change the IP address of the Ethernet interface, you must disable and then re-enable IP on the Ethernet interface for the change to take effect.

Example

Command> set ether0 address 172.16.200.1
Local (ether0) address changed from to 172.16.200.1

See Also

set Ether0 netmask - page 10-7

set Ether0 broadcast

This command determines which broadcast address the PortMaster will use.

set Ether0 broadcast high|low

Ether0

Ethernet interface.

high

Use a host part of all ones (for example, 192.168.1.255) in the broadcast address.

low

Use a host part of all zeros (for example, 192.168.1.0) in the broadcast address. This is the default.

Usage

This setting should match the broadcast address used by all hosts and routers on the same network segment.

Example

Command> set ether0 broadcast high
ether0 broadcast address changed from low to high

set Ether0 ifilter

This command sets a packet filter for evaluating packets entering the PortMaster on the Ethernet interface.

set Ether0 ifilter Filtername

Ether0

Ethernet interface.

Filtername

Input filter name that is in the filter table. Filtername can be up to 15 characters.

Usage

The filter must be created before it can be used. Refer to the PortMaster Configuration Guide for more information on how to construct a filter. If the filter is changed, this command must be re-entered for the changes to be seen by the Ethernet interface.

Neither the interface nor the PortMaster needs to be reset or rebooted for the filter to be effective. You remove the filter by entering the command without a filter name.

Note ¯ You can set the filtername to the Ethernet interface before the filter is created, but doing so allows packets to pass through without any packet filtering.

Example

Command> set ether0 ifilter ether0.in
ether0 filters enabled: in = ether0.in, out =

See Also

set Ether0 ofilter - page 4-9

show filter - page 15-25

show table filter - page 15-26

set ether0 ip

This command enables or disables the IP protocol on the interface.

set ether0 ip enabled|disabled

enabled

Enables IP. This is the default.

disabled

Disables IP.

Usage

This command is available only on the Ether0 interface, even on the IRX-211.

Example

Command> set ether0 ip enabled
ether0 status for protocol IP changed from Disabled to Enabled

set ether0 ipx

This command enables or disables the IPX protocol on the interface.

set ether0 ipx enabled|disabled

enabled

Enables IPX.

disabled

Disables IPX.

Usage

This command is available only on the Ether0 interface, even on the IRX-211.

Example

Command> set ether0 ipx enabled
ether0 status for protocol IPX changed from Disabled to Enabled

See Also

set ipx on - page 3-8

set Ether0 ipxframe

This command sets the IPX frame type.

Note ¯ This command should be entered on one line, without any breaks. The line break shown here is due to the limited space available.

set Ether0 ipxframe ethernet_802.2|ethernet_802.2_ii|
ethernet_802.3|ethernet_ii

Ether0

Ethernet interface.

ethernet_802.2

Use Ethernet 802.2 protocol. This is the default encapsulation used by Novell NetWare 4.0.

ethernet_802.2_ii

Use Ethernet 802.2_ii protocol. This encapsulation is not commonly used.

ethernet_802.3

Use Ethernet 802.3 protocol. This is the default encapsulation used by Novell NetWare 3.11.

ethernet_ii

Use Ethernet II protocol. This encapsulation is sometimes used for networks that handle both TCP/IP and IPX traffic.

Usage

The encapsulation method and frame type were selected when your Novell IPX network servers were installed. The PortMaster IPX settings should match those of your IPX network.

Example

Command> set ether0 ipxframe ethernet_ii
ether0 IPX frame type set to ethernet_ii

See Also

set Ether0 ipxnet - page 4-8

set ipx on - page 3-8

set Ether0 ipxnet

This command sets the IPX network number for the Ethernet interface.

set Ether0 ipxnet Ipxnetwork

Ether0

Ethernet interface.

Ipxnetwork

A 32-bit hexadecimal value.

Usage

The IPX network number should be entered in hexadecimal format, as shown in the example. You must enable IPX before using this command.

Example

Command> set ether0 ipxnet 0x0000000f
ether0 IPX network changed from 00000000 to 0x0000000f

See Also

set Ether0 ipxframe - page 4-7

set ipx on - page 3-8

set user ipxnet - page 13-13

set Ether0 ofilter

This command sets a packet filter for evaluating packets exiting the PortMaster on the Ethernet interface.

set Ether0 ofilter Filtername

Ether0

Ethernet interface.

Filtername

Output filter name, up to 15 characters, that is in the filter table.

Usage

The filter must be created before it can be used. Refer to the PortMaster Configuration Guide for more information on how to construct a filter. If the filter is changed, this command must be re-entered for the changes to be seen by the Ethernet interface.

Neither the interface nor the PortMaster needs to be reset or rebooted for the filter to be effective. You remove the filter by entering the command without a filter name.

You can set the filtername to the ethernet interface before the filter is created, but doing so allows packets to pass through without any filtering.

Example

Command> set ether0 ofilter ether0.out
ether0 filters enabled: in = ether0.in, out = ether0.out

See Also

set Ether0 ifilter - page 4-5

show filter - page 15-25

show table filter - page 15-26

show Ether0

Shows configuration values for the Ethernet interface.

show Ether0

Command> show ether0

 

Ethernet Status:

IP - Enabled

IPX - Disabled

 

 

 

Interface Addr:

pm2.edu.com (192.168.96.6)

Netmask:

255.255.255.0

 

Broadcast Address:

192.168.96.0

 

 

 

 

IPX Network:

00000000

 

IPX Frame Type:

ETHERNET_802.2

 

Ethernet Address:

00:c0:05:01:06:20

 

Routing:

OSPF, RIP(Listen)

 

OSPF Accept RIP:

off

 

OSPF Cost:

1

 

OSPF Hello Interval:

10

 

OSPF Dead Time:

40

 

Input Filter:

 

 

Output Filter:

 

 

Explanation

Ethernet Status

Shows IP and IPX protocols enabled for the Ethernet port.

Interface Addr

The IP address for the Ethernet interface.

Netmask

The netmask used on the network.

Broadcast Address

The IP address used as the local broadcast address.

IPX Network

The IPX network segment address.

IPX Frame Type

The IPX frame type that identifies the encapsulation method used on the IPX interfaces.

Ethernet Address

The Ethernet hardware MAC address.

Routing

OSPF Accept RIP

RIP routes learned on the Ethernet interface that are propagated into OSPF as Type 2 external routes.

OSPF Cost

Cost of sending a packet on the interface.

OSPF Hello Interval

Interval in seconds that elapses between the transmission of hello packets on the interface.

OSPF Dead Time

Number of seconds the PortMaster waits after ceasing to receive a neighbor router's hello packets and before identifying the remote router as unreachable.

Input Filter

The name of the input filter attached to the Ethernet interface.

Output Filter

The name of the output filter attached to the Ethernet interface.

 

 

Ethernet Subinterface Commands

In ComOS 3.8 and later, you can configure a single Ethernet port for multiple IP subnets. The MAC address for the subinterfaces is the same as for the primary interface.

Note ¯ IPX, RIP, OSPF, packet filtering, and route propagation are not supported on the subinterfaces.

The commands in Table 4-2 configure and manage Ether0 and Ether1 for subinterfaces.  
Ethernet Subinterface Configuration

Command Syntax

 

add subinterface Name

- see page 4-13

delete subinterface Name

- see page 4-14

set subinterface Name address Ipaddress [/NM]|[Netmask]

- see page 4-14

set subinterface Name broadcast high|low

- see page 4-15

set subinterface Name port Portlabel

- see page 4-16

show table subinterface

- see page 4-16

add subinterface

This command adds a subinterface entry to the subinterface table.

add subinterface Name

Name

Name of the subinterface configuration in the subinterface table. Name can contain up to 11 characters.

Usage

The new interface is displayed in the ifconfig output after the subinterface is configured with an IP address and a port label. The interface name is system generated.

Example

Command> add subinterface net2

New subinterface net2 successfully added

See Also

show table subinterface - page 4-16

delete subinterface

This command removes a subinterface entry from the table.

delete subinterface Name

Usage

You must use Name exactly as it is listed in response to a show table subinterface command.

Example

Command> delete subinterface net2

set subinterface address

This command assigns an IP address or an IP address and netmask to the

subinterface configuration.

set subinterface Name address Ipaddress [/NM]|[Netmask]

Name

Name of the subinterface configuration. Name can be up to 11 characters.

Ipaddress

IP address or 39-character hostname.

/NM

Optional netmask-an integer between 1 and 32 that indicates the number of high-order bits set to 1. Enter a slash (/) between the IP address and the netmask in bits.

Netmask

Optional netmask expressed in dotted decimal notation. Enter a space between the IP address and the netmask.

Examples

Command> set subinterface net2 address 192.168.11.1 255.255.255.0

Overlapping with interface et01

net2 changed from 192.168.11.1/24 to 192.168.11.1/24

 

Command> set subinterface net2 address 192.168.55.6/27

net2 changed from 192.168.55.6/24 to 192.168.55.6/27

 

Command> set subinterface net2 netmask 255.255.255.0

net2 netmask changed from 0.0.0.0 to 255.255.255.0

 

set subinterface broadcast

This command determines the broadcast address for the subinterface.

set subinterface Name broadcast high|low

Name

Name of the subinterface configuration. Name can be up to 11 characters.

high

Uses a host part of all ones in the broadcast address.

low

Uses a host part of all zeros in the broadcast address.

Example

Command> set subinterface net2 broadcast high

net2 broadcast address changed from low to high

See Also

set Ether0 broadcast - page 4-4

set subinterface port

This command is associates the subinterface configuration with a physical port.

set subinterface Name port Portlabel

Name

The name of the subinterface configuration in the subinterface table. Name can be up to 11 characters.

Portlabel

ether0 or ether1.

Example

Command> set subinterface net2 port ether0

net2 changed from to ether0

show table subinterface

This command displays the subinterface table.

show table subinterface

Example

Command> show table subinterface

Subinterface Interface Addr Netmask Broadcast Addr Port Name

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

net2 192.168.55.6 255.255.255.0 192.168.55.255 ether0

 



[Top] [Table Of Contents] [Prev] [Next] [Index]

spider@livingston.com
Copyright © 1998, Lucent Technologies. All rights reserved.