Brief Introduction to dhcp snooping Configuration

Source: Internet
Author: User

The previous article describes and explains the network topology of dhcp snooping. I do not know whether you are clear. Here we will describe the dhcp snooping configuration. Hope to help you.

Configuration

1. 2918

Switch # configure terminal // global configuration mode

Switch (config) # interface range fa0/1-12

Switch (config-if-range) # switchport access vlan 100

Switch (config-if-range) # interface range fa0/13-24

Switch (config-if-range) # switchport access vlan 200

Switch (config-if-range) # interface gig0/1 // Connect Port 4506

Switch (config-if) # // You can manually configure the TRUNK.

2. 4506

Switch # configure terminal

Switch (config) # vtp version 2

Switch (config) # vtp mode client

Switch (config) # vtp domain gzy

Switch (config) # vtp password gzy123

Switch (config) # vlan 100

Switch (config) # vlan 200

Switch (config) # ip dhcp snooping // enable the dhcp snooping function of the Switch

Switch (config) # ip dhcp snooping vlan 100,200 // enable dhcp snooping in VLAN100 and 200

Switch (config) # no ip dhcp snooping information option // disable embedding or deleting option 82 information in DHCP packets

Switch (config) # ip dhcp snooping database tftp: // 192.168.200.1/snooping. dat

// Save the dhcp snooping database in the snooping. dat file of the tftp Server IP address 192.168.200.1)

Switch (config) # ip arp inspection vlan 100,200 // enable DAI in VLAN100 and 200

Switch (config) # ip arp inspection validate src-mac ip // use the source MAC and IP address to check if the ARP packet is valid

Switch (config) # interface gig1/1 // connect to port 6506

Switch (config-if) # switchport trunk encapsulation dot1q

Switch (config-if) # switchport mode trunk

Switch (config-if) # ip dhcp snooping trust

Switch (config-if) # ip arp inspection trust

Switch (config-if) # interface gig2/2 // ports connected to port 2918

Switch (config-if) # switchport trunk encapsulation dot1q

Switch (config-if) # switchport mode trunk

Switch (config-if) # ip arp inspection limit none

Switch (config-if) # ip verify source vlan dhcp-snooping

Switch (config-if) # end

Switch (config) # copy run start

Remarks

Writing to the end is getting increasingly lazy, basically it is like this. The configuration on 6506 is simple. Because 2918 does not support the above functions, it can only be enabled on port 4506. However, in this way, these functions can only be enabled on port 4506 connected to port 2918 under, the spoofing on 2918 cannot be prevented. No way, Cisco's approach is strange. Currently, many access layer Switches of domestic manufacturers can implement these functions, such as Quidway, H3C, shenzhoudigital, and ruijie. Due to the limited level, you can correct the incorrect content.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.