Configuring VLANs

The following commands add four AppleTalk cable VLANs, in groups of three commands each. The appletalk­ cable-vlancommand adds a cable VLAN and, with the optional name parameter, names the VLAN. The static command adds specific ports within the port-based VLAN to the AppleTalk cable VLAN. The router-interfacecommand identifies virtual interface that connects to the AppleTalk cable range the VLAN is for.

HP9300(config-vlan-10)# appletalk-cable-vlan 1 name cable-one HP9300(config-vlan-10)# static ethe 2/1 to 2/2 ethe 3/1 to 3/2 HP9300(config-vlan-10)# router-interface ve 1 HP9300(config-vlan-10)# appletalk-cable-vlan 2 name cable-two HP9300(config-vlan-10)# static ethe 3/3 to 3/4 HP9300(config-vlan-10)# router-interface ve 2 HP9300(config-vlan-10)# appletalk-cable-vlan 3 name cable-three HP9300(config-vlan-10)# static ethe 3/5 to 3/6 HP9300(config-vlan-10)# router-interface ve 3 HP9300(config-vlan-10)# appletalk-cable-vlan 4 name cable-four HP9300(config-vlan-10)# static ethe 3/7 to 3/8 HP9300(config-vlan-10)# router-interface ve 4

Syntax: appletalk-cable-vlan <vlan-id> [name <string>]

The <vlan-id> can be from 1 – 8.

The name <string> parameter specifies a name and can be a string up to 32 characters long.

Configuring the Router Interfaces

The following commands configure the router interfaces (virtual interfaces) associated with the AppleTalk cable VLANs. The interface ve commands add the virtual interfaces to the system. (The router-interfacecommands above refer to these interfaces but do not add them. You must add the interfaces using the interface ve command.)

For each virtual interface, additional commands configure the AppleTalk routing parameters for the interface. Notice that each virtual interface has a separate set of routing parameters. The routing parameters on each virtual interface are independent of the routing parameters on other virtual interfaces. Since each AppleTalk cable VLAN is associated with a separate virtual interface, each AppleTalk cable VLAN has a distinct set of routing parameters, separate from the routing parameters on other AppleTalk VLANs. In effect, each virtual interface contains a separate AppleTalk routing switch.

The appletalk address command configures the AppleTalk interface address on the virtual interface. The appletalk cable-rangecommand specifies the cable range for the network. The appletalk routing command enables AppleTalk routing on the virtual interface. The zone-namecommands add zones to the network. For information about the AppleTalk routing commands, see the “Configuring AppleTalk” on page 15-1.

The write memory command at the end of the example saves the configuration to the startup-config file.

HP9300(config-vlan-10)# interface ve 1

HP9300(config-vif-1)# appletalk cable-range 10 - 19

HP9300(config-vif-1)# appletalk address 10.1

HP9300(config-vif-1)# appletalk zone-name AA

HP9300(config-vif-1)# appletalk routing

HP9300(config-vif-1)# interface ve 2

HP9300(config-vif-2)# appletalk cable-range 20 - 29

HP9300(config-vif-2)# appletalk address 20.1

16 - 31