1、DHCP配置
接口配置:
192.168.1.1/24,网关:192.168.1.2
2、三层核心配置
en
conf t
ip routing
int g0/1
switchport trunk encapsulation dot1q
switchport mode trunk
int g0/2
no switchport
ip address 192.168.1.2 255.255.255.0
ip helper-address 192.168.1.1
int Vlan100
ip address 192.168.100.1 255.255.255.0
ip helper-address 192.168.1.1
int Vlan200
ip address 192.168.200.1 255.255.255.0
ip helper-address 192.168.1.1
show ip rout
3、二层接入配置
en
conf t
interface Vlan100
interface Vlan200
interface GigabitEthernet0/1
switchport mode trunk