VLAN Configuration 331

In as Ethernet interface is connected with a LAN Switch port. As the Ethernet subinterface of every specified VLAN ID can act as an independent gateway, this subinterface and other Ethernet subinterface in the same VLAN ID should belong to the same subnet segment.

Please implement the following configuration under Ethernet subinterface view.

Table 364 Configure IP address of Ethernet subinterface

Operation

Command

 

 

Configure IP address of Ethernet subinterface

ip address ip-address mask

 

 

Delete IP address of Ethernet subinterface

undo ip address [ ip-address ]

 

 

By default, no IP address is defined.

Ethernet subinterface acts as a gateway in VLAN and so the subnet number of its IP address must be correct. The default gateway of LAN Switch ports that belong to the same VLAN should be set as the IP address of this subinterface. Besides, the IP address of Ethernet subinterface can be set only when this subinterface has finished the configuration of VLAN ID.

Display and Debug Table 365 Display and Debug VLAN

VLAN

 

 

Operation

Command

 

 

 

 

 

Display the relevant information of all the configured

display vlan

 

VLAN

 

 

 

 

 

Enable the debugging of the Ethernet

debugging ethernet

 

 

 

Typical VLAN Configuration Example

I. Networking Requirements

Two PCs respectively belongs to two VLANs and a router is used to implement data forwarding between two different VLANs.

II. Networking Diagram

Figure 123 Networking diagram for configuring VLAN forwarding

P1

P2

P3

P4

P5

P6

P7

P8

Console

LAN Switch

P1: Port 1

1)

 

PC 1

 

PC 2

Router

 

 

 

 

 

 

 

 

 

 

III. Configuration Procedure

1Configure the 3Com Routers:

a Create and enter the view of Ethernet subinterface Ethernet0.1

Page 335
Image 335
3Com 10014299 manual Configure IP address of Ethernet subinterface, Display and Debug Display and Debug Vlan, Display vlan