交换机
Sys
Int g0/0/1 port link-type access
Port default vlan 10
Q
Int g0/0/2 port link-type access
Port default vlan 20
Q
Int g0/0/3 port link-type trunk
port trunk allow-pass vlan 10 20
路由器
Sys
Int g0/0/0.10 ip address 192.168.10.254 24
Q
Int g0/0/0.20 ip address 192168.20.254 24
Ip pool pool10
Network 192.168.10.0 mask 24
Gateway-list 192.168.10.254
Lease day 2
Dns-list 10.10.10.10
Q
Ip pool pool20
Network 192.168.20.0 mask 24
Gateway-list 192.168.20.254
Dns-list 20.20.20.20
Lease day 2
Q
全局dhcp
Dhcp enable
Int g0/0/0/.10
dhcp select global