[Top] [Table Of Contents] [Prev] [Next] [Index]
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.
To display information about your configuration, use the following commands:
The Ethernet commands in Table 4-1 configure the Ether0 Ethernet interfaces and-except as noted-the Ether1 interface on the IRX-211.
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]
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.
Command> set ether0 address 172.16.200.1
Local (ether0) address changed from to 172.16.200.1
set Ether0 netmask - page 10-7
set Ether0 broadcast
This command determines which broadcast address the PortMaster will use.
set Ether0 broadcast high|low
This setting should match the broadcast address used by all hosts and routers on the same network segment.
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
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.
Command> set ether0 ifilter ether0.in
ether0 filters enabled: in = ether0.in, out =
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
This command is available only on the Ether0 interface, even on the IRX-211.
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
This command is available only on the Ether0 interface, even on the IRX-211.
Command> set ether0 ipx enabled
ether0 status for protocol IPX changed from Disabled to Enabled
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
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.
Command> set ether0 ipxframe ethernet_ii
ether0 IPX frame type set to ethernet_ii
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
The IPX network number should be entered in hexadecimal format, as shown in the example. You must enable IPX before using this command.
Command> set ether0 ipxnet 0x0000000f
ether0 IPX network changed from 00000000 to 0x0000000f
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
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.
Command> set ether0 ofilter ether0.out
ether0 filters enabled: in = ether0.in, out = ether0.out
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
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.
add subinterface
This command adds a subinterface entry to the subinterface table.
add subinterface Name
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.
Command> add subinterface net2
New subinterface net2 successfully added
show table subinterface - page 4-16
delete subinterface
This command removes a subinterface entry from the table.
delete subinterface Name
You must use Name exactly as it is listed in response to a show table subinterface command.
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]
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
Command> set subinterface net2 broadcast high
net2 broadcast address changed from low to high
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
Command> set subinterface net2 port ether0
net2 changed from to ether0
show table subinterface
This command displays the subinterface table.
show table subinterface
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.