1. 程式人生 > >CISCO DHCP配置

CISCO DHCP配置

三層交換機作為DHCP伺服器

分別為vlan11vlan12分配IP地址

vlan11172.16.11.x

vlan12172.16.12.x

3560配置

enable

!

config t

!

vlan 11

vlan12

exit

!

interface FastEthernet0/1

switchport trunk encapsulation dot1q

!

interface FastEthernet0/2

switchport trunk encapsulationdot1q

interface Vlan11

ip address 172.16.11.1 255.255.255.0

!

interface Vlan12

ip address 172.16.12.1 255.255.255.0

ip dhcp poolvlan11

network172.16.11.0 255.255.255.0

default-router172.16.11.1

dns-server 172.16.11.1

ip dhcp excluded-address 172.16.11.1 172.16.11.10

!PT模擬器不支援

ip dhcp pool vlan12

network 172.16.12.0255.255.255.0

default-router172.16.12.1

dns-server 172.16.12.1

ip dhcp excluded-address 172.16.12.1 172.16.12.10

!PT模擬器不支援

2950_Switch0配置

enable

!

config t

!

vlan 11

vlan12

exit

!

interface FastEthernet0/1

switchport access vlan 11

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 12

switchport mode access

!

interface FastEthernet0/24

switchport mode trunk

2950_Switch1配置

enable

!

config t

!

vlan 11

vlan12

exit

!

interface FastEthernet0/1

switchport access vlan 11

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 12

switchport mode access

!

interface FastEthernet0/24

switchport mode trunk