Para criar pools dhcp em determinadas interfaces Vlans, é necessário primeiro atribuir endereço ip na mesma, feito isso crie o escopo, e o pool será fornecido pelo gateway da interface correspondente, exemplo:
Vlan1: 192.168.0.1/24
Vlan2: 192.168.1.1/24
Configurando Escopo 1:
Username: XXXX
Password:
SW01>en
Password:
SW01#conf t
SW01(config)#ip dhcp pool nome_pool
SW01(dhcp-config)#network 192.168.0.0 255.255.255.0
SW01(dhcp-config)#default-router 192.168.0.1
SW01(dhcp-config)#dns-server 192.168.0.1
SW01(dhcp-config)#exit
SW01(config)#
Configurando Escopo 2:
Username: XXXX
Password:
SW01>en
Password:
SW01#conf t
SW01(config)#ip dhcp pool nome_pool
SW01(dhcp-config)#network 192.168.1.0 255.255.255.0
SW01(dhcp-config)#default-router 192.168.1.1
SW01(dhcp-config)#dns-server 192.168.1.1
SW01(dhcp-config)#exit
SW01(config)#
Pronto, a interface 192.168.0.1 e 192.168.0.1 irá fornecer os ip`s de suas respectivas redes.
Vlan1: 192.168.0.1/24
Vlan2: 192.168.1.1/24
Configurando Escopo 1:
Username: XXXX
Password:
SW01>en
Password:
SW01#conf t
SW01(config)#ip dhcp pool nome_pool
SW01(dhcp-config)#network 192.168.0.0 255.255.255.0
SW01(dhcp-config)#default-router 192.168.0.1
SW01(dhcp-config)#dns-server 192.168.0.1
SW01(dhcp-config)#exit
SW01(config)#
Configurando Escopo 2:
Username: XXXX
Password:
SW01>en
Password:
SW01#conf t
SW01(config)#ip dhcp pool nome_pool
SW01(dhcp-config)#network 192.168.1.0 255.255.255.0
SW01(dhcp-config)#default-router 192.168.1.1
SW01(dhcp-config)#dns-server 192.168.1.1
SW01(dhcp-config)#exit
SW01(config)#
Pronto, a interface 192.168.0.1 e 192.168.0.1 irá fornecer os ip`s de suas respectivas redes.
Nenhum comentário:
Postar um comentário