Using lanadmin -V to Administer VLANs

Using the lanadmin -V Command for Administering VLANs

lanadmin -V modify vlanid 53 pri 3 5000

Successfully modified lan5000

Old value: vlanid 454 pri 6

New value: vlanid 53 pri 3

After the modification, the lanscan -voutput will display:

Hardware

Station

Crd

Hdw

Net-Interface

NM MAC

HP-DLPI

DLPI

Path

Address

In#

State

NamePPA

ID Type

Support

Mjr#

VLAN0

0x001083FF9951

5000

UP

lan5000 snap5000

14 ETHER

Yes

119

Extended Station

LLC Encapsulation

Address

Methods

0x001083FF9951

 

Driver Specific Information vlan

.......................................................................

Vlan ID Phy-PPA Priority ToS

Priority-Override ToS-Override Name

 

53

0

3

0

CONF_PRI

IP_HEADER

UNNAMED

Using lanadmin to Delete a VLAN

Before deleting a VLAN, ensure that there are no applications or upper layer protocols active on the VLAN by running:

lanadmin -p <VPPA>.

This command displays the applications and commands that are presently using the interface. For example, if the only thing done to lan5000 is configure an IP address, the lanadmin -pcommand output would look like:

lanadmin -p 5000

ifconfig ifconfig

Since ifconfig command is used to configure an IP address the same is displayed. There are two entries because when an IPv4 address is configured using ifconfig, it configures both IP and ARP on the interface.

To remove the IP and ARP streams, do:

ifconfig lan5000 unplumb.

The lanadmin -p 5000 output will not show any entries now, which means the interface can be deleted. To delete this VLAN use the delete option as follows:

52

Chapter 5