Configuring basic settings of an Ethernet interface

Configuring an Ethernet interface

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Ethernet interface view.

interface interface-type interface-number

N/A

3. Set the interface description.

description text

The default setting is in the format of interface-name Interface. For example, Ten-GigabitEthernet1/0/1 Interface.

4. Set the duplex mode of the Ethernet interface.

duplex { auto | full | half }

The default setting is auto for Ethernet interfaces.

Copper ports operating at 1000 Mbps or 10 Gbps and fiber ports do not support the half keyword.

5. Set the port speed.

speed { 1000 | 10000 | 40000 | auto }

The default setting is auto for Ethernet interfaces.

Support for the keywords depends on the interface type. For more information, execute the speed? command in interface view.

6. Configure the expected bandwidth of 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 Ethernet interface.

default

N/A

8. Bring up the Ethernet interface.

undo shutdown

By default, Ethernet interfaces are in up state.

Configuring an Ethernet subinterface

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create an Ethernet subinterface and enter its view.

interface interface-type interface-number.subnumber

N/A

3. Set the subinterface description.

description text

The default setting is in the format of interface-name Interface. For example, Ten-GigabitEthernet1/0/1.1 Interface.

4. Restore the default settings for the Ethernet subinterface.

default

N/A

5. 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.

6. Bring up the Ethernet subinterface.

undo shutdown

By default, Ethernet subinterfaces are in up state.