Some of the content in DHCP configuration is started by dai. So here we will summarize the content in this regard. Next, let's take a detailed look at the specific operations of DHCP dai startup. The DHCP dai STARTUP configuration command is as follows:
- Ip subnet-zero
- Ip dhcp excluded-address 192.168.1.1
- !
- Ip dhcp pool test
- Network 192.168.1.0 255.255.255.0
- Default-router 192.168.1.1
- Dns-server 192.168.1.1
- Lease infinite
- !
- Ip dhcp snooping vlan 1 (based on DHCP)
- Ip dhcp snooping information option allow-untrusted
- Ip dhcp snooping database flash: snooping specifies the location where snooping data is stored)
- Ip dhcp snooping starts DHCP snooping)
- Ip arp inspection vlan 1 DHCP dai enabled)
- Ip arp inspection validate src-mac dst-mac ip detection project)
- !
- !
- !
- Interface GigabitEthernet1/0/31
- Switchport mode access
- Ip arp inspection trust if you set the trust, you can change the IP address. Setting the untrust cannot change the IP address, because the DAI detection)
- Spanning-tree portfast
- !
- Interface GigabitEthernet1/0/32
- !
- Nterface GigabitEthernet1/0/44
- !
- Interface GigabitEthernet1/0/45
- Switchport mode access
- Switchport port-security
- Switchport port-security violation restrict
- Spanning-tree portfast
- Ip verify source port-security
- !
- !
- Switch # sh ip arp inspection
The above is all the settings for DHCP dai to start.