Switch:
1. F0/0 - 15等分切VLAN 10、 20、30
2. 與 Router 間連接的Port設定Trunk
3. 設定VLAN 10/20/30 的 IP Address
Router:
1. 與 Switch 間連接的 Port 設定Sub-Interface
2. Sub-Interface 設定各Vlan及GW
3.將各Sub-Interface啟動 Help-Address 功能並指定DHCP Server 的 IP 位址
Server:
1. 設定成Static IP
2.設定兩組 DHCP Pool
Router設定
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 10
ip address 192.168.10.254 255.255.255.0
ip helper-address 192.168.30.1
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 192.168.20.254 255.255.255.0
ip helper-address 192.168.30.1
!
interface FastEthernet0/0.3
encapsulation dot1Q 30
ip address 192.168.30.254 255.255.255.0
ip helper-address 192.168.30.1
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end