Configuring a VE interface

Before you configure IPoEoA and PPPoEoA, you must specify a VE interface.

To configure a VE interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a VE interface and enter VE interface view.

interface virtual-ethernet interface-number

If the interface already exists, use this command to enter the VE interface view.

You can create a maximum of 1024 VE interfaces.

3. Configure the description for the interface.

description text

By default, the description is in the format of interface-name Interface, for example, Virtual-Ethernet 0 Interface.

4. Configure the MTU for the interface.

mtu size

By default, the MTU for the interface is 1500 bytes.

5. Configure the MAC address for the interface.

mac-address mac-address

By default, the VE interface uses the bridge MAC address as its MAC address.

6. Configure the expected bandwidth for the interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

7. Restore the default settings for the interface.

default

N/A

8. Shut down the interface.

shutdown

By default, the interface is up.

To configure a VE subinterface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a VE subinterface and enter VE subinterface view.

interface virtual-ethernet interface-number.subnumber

By default, no VE subinterfaces exist.

3. Configure the description for the subinterface.

description text

By default, the description is in the format of interface-name Interface.

4. Configure the MTU for the subinterface.

mtu size

By default, the MTU for the subinterface is 1500 bytes.

5. Configure the expected bandwidth for the subinterface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the subinterface baud rate divided by 1000.

6. Restore the default settings for the interface.

default

N/A

7. Shut down the subinterface.

shutdown

By default, the subinterface is up.