本帖最后由 陈小群 于 2015-9-2 12:17 编辑
拓扑:
PC1:属于Vlan 10 PC2:属于Vlan 20 DHCP服务器: ip dhcp pool vlan10 network 10.1.10.0 255.255.255.0 default-router 10.1.10.1 ip dhcp pool vlan20 network 10.1.20.0 255.255.255.0 default-router 10.1.20.1 interface FastEthernet0/0 ip address 10.1.30.1 255.255.255.0 duplex auto speed auto ip default-gateway 10.1.30.254 路由器: interface FastEthernet0/0.1 encapsulation dot1Q 10 ip address 10.1.10.1 255.255.255.0 ip helper-address 10.1.30.1 ! interface FastEthernet0/0.3 encapsulation dot1Q 30 ip address 10.1.30.254 255.255.255.0 交换机: interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport mode trunk |