Thursday, March 14, 2013

DHCP on VLAN

 



Switch>enable
Switch#conf t
Switch(config)#vlan 200
Switch(config-vlan)#name TEST_VLAN
Switch(config-vlan)#exit

Switch(config)#int fa0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 200

Switch(config-if)#exit

Switch(config)#int fa0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 200

Switch(config-if)#exit

 

Switch(config)#int vlan 200
Switch(config-if)#ip address 192.168.200.1 255.255.255.0
Switch(config-if)#description DHCP_POOL_4TEST
Switch(config-if)#exit

 

Switch(config)#ip routing
Switch(config)#ip dhcp pool vlan200

Switch(dhcp-config)#network 192.168.200.0 255.255.255.0

Switch(dhcp-config)#default-router 192.168.200.1

Switch(dhcp-config)#exit

Switch(config)#ip dhcp excluded-address 192.168.200.1

Switch(config)#exit

No comments:

Post a Comment