Ethernet port configuration example, Network requirements, Configuration procedure – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 127: Troubleshooting ethernet port configuration, 12 troubleshooting ethernet port configuration

Advertising
background image

15-12

To do…

Use the command…

Remarks

Display brief configuration
information about one or all ports

display brief interface

[ interface-type
[ interface-number ] ] [ | { begin |
include

| exclude }

regular-expression

]

Display current type-specific ports

display port

{ hybrid | trunk |

combo

}

Display port information about a
specified unit

display unit unit-id interface

Clear the statistics of the port

reset counters interface
[ interface-type | interface-type
interface-number

]

After 802.1X is enabled, the port
information cannot be reset.

Ethernet Port Configuration Example

Network requirements

As shown in

Figure 15-1

:

z

Switch A is connected to Switch B through trunk port GigabitEthernet 1/0/1.

z

Configure the default VLAN ID for the trunk port as 100.

z

Allow the packets of VLAN 2, VLAN 6 through VLAN 50 and VLAN 100 to pass the port.

Figure 15-1

Network diagram for default VLAN ID configuration

Configuration procedure

The following configuration is used for Switch A. Configure Switch B in a similar way.

# Enter port view of GigabitEthernet 1/0/1.

[device] interface GigabitEthernet1/0/1

# Set GigabitEthernet 1/0/1 as a trunk port and allow the packets of VLAN 2, VLAN 6 through VLAN 50
and VLAN 100 to pass the port.

[device-GigabitEthernet1/0/1] port link-type trunk

[device-GigabitEthernet1/0/1] port trunk permit vlan 2 6 to 50 100

# Create VLAN 100.

[device] vlan 100

# Configure the default VLAN ID of GigabitEthernet 1/0/1 as 100.

[device-GigabitEthernet1/0/1] port trunk pvid vlan 100

Troubleshooting Ethernet Port Configuration

Symptom

: Default VLAN ID configuration failed.

Solution

: Take the following steps.

Advertising