en conf t interface f0/0 ip addressn192.168.0.1 255.255.255.0 no shutdown
show ip route --查看路由表
(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.2 -所的.2段的都转发给192.168.1.2这个网关 (静态路由配置)
三层交换机配置dhcp中继转发:
switch(config)#interface vlan vlan-id
switch(config-if)#ip helper-address 192.168.1.3