【R1】interface Gigabitehernet 0/0
【R1-Gigabitehernet0/0】ip address 192.168.3.201 255.255.255.0
【R1】interface Gigabitehernet 0/1
【R1-Gigabitehernet0/01】ip address 172.1.1.1 255.255.255.0
【R1】interface loopback 0
【R1-loopback0】ip address 10.0.0.1 255.255.255.0
【R1】vlan batch 100 200
【R1】display vlan
【R1】dhcp enable
【R1】ip pool 100
【R1-ip-pool-100】network 10.80.24.0 mask 255.255.255.0
【R1-ip-pool-100】gateway-list 10.80.24.254
【R1-ip-pool-100】dns-list 8.8.8.8
【R1-ip-pool-100】excluded-ip-address 10.80.24.250 10.80.24.254
【R1-ip-pool-100】lease day 3
【R1】interface Ethernet 0/0
【R1-Ethernet0/0】port link-type access
【R1-Ethernet0/0】port default vlan 100
//【R1】interface Ethernet 0/1
//【R1-Ethernet0/1】port link-type trunk
//【R1-Ethernet0/1】port trunk allow-pass vlan all
//【R1】interface Ethernet 0/1
//【R1-Ethernet0/2】port hybrid pvid vlan 200
//【R1-Ethernet0/2】port hybrid untagged vlan all
【R1】interface vlanif 100
【R1-vlanif100】ip address 10.80.24.254 255.255.255.0
【R1-vlanif100】dhcp select global
【R1】ospf 1 router-id 1.1.1.1
【R1-ospf-1】area 0
【R1-ospf-1-area-0.0.0.0】network 192.168.20.0 0.0.0.255
【R1-Gigabitehernet0/01】ospf enable 1 area 0
【R1-Gigabitehernet2/0/1.1】dotlq termination vid 100
【R1-Gigabitehernet2/0/1.1】ip add 10.1.1.1 255.255.255.0
【R1-Gigabitehernet2/0/1.1】arp broadcast enable