Got it

[All About Switches] A PC Fails to Obtain an IP Address from the Switch Connected to It

Latest reply: Mar 9, 2018 05:52:25 1150 1 1 0

Involved Products and Versions

All products and versions

Networking

As shown in Figure 1-1, the switch is connected to the PC through the interface GE1/0/1 that is configured as an access interface. The DHCP server is configured on the switch to dynamically assign IP addresses to the PC.

Figure 1-1 Networking diagram of the failure of the PC to obtain an IP address from the switch connected to it

20180309092232646001.png

 

Fault Symptom

The PC fails to obtain an IP address.

Cause Analysis

Check the configurations on the interface GE1/0/1. It is found that remark 8021p is configured. If the interface is an access interface, the access interface removes the VLAN tag from the outbound packets. Therefore, when the remark 8021p command is run in the outbound direction, the packet contents are modified. As a result, the forwarded DHCP packets are incorrect packets. Therefore, the PC fails to obtain an IP address.

#
acl number 4000
 rule 5 permit destination-mac e411-5b50-43dd
traffic classifier TV operator and
 if-match acl 4000
traffic behavior TV
 remark 8021p 4
traffic policy TV
 classifier TV behavior TV
interface GigabitEthernet1/0/1
 traffic-policy TV outbound
#

Troubleshooting Procedure

Delete the remark 8021p 4 configuration from the switch. The PC can then obtain an IP address.

Conclusions and Suggestions

If a traffic policy containing remark 8021p is applied to the outbound direction on an interface, the VLAN of the interface must work in tagged mode.

  • x
  • convention:

WoodWood
Created Mar 9, 2018 05:52:25 Helpful(0) Helpful(0)

[All About Switches] A PC Fails to Obtain an IP Address from the Switch Connected to It-2632141-1
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.