Subinterface e DHCP
Inviato: mar 30 giu , 2015 3:48 pm
Ciao a tutti,
sto facendo un po di pratica per preparare l'esame CCENT
Ho configurato uno switch con due VLAN 10 e 20, su x porte ed una porta in trunk collegata ad un router sulla FastEthernet 0/0
Ho configurato sulla FastEthernet 0/0 del router due subinterface:
FastEthernet 0/0.10 - IP 10.10.10.254
FastEthernet 0/0.20 - IP 10.10.20.254
ho configurato due pool dhcp e tutto funziona.
La mia domanda è, configurando x subinterface su una porta fisica poi posso usare la porta fisica ?
Mi spiego meglio aiutandomi con la configurazione che ho fatto:
Router#sh running-config
Building configuration...
!
ip dhcp excluded-address 10.10.10.254
ip dhcp excluded-address 10.10.20.254
!
ip dhcp pool primo
network 10.10.10.0 255.255.255.0
default-router 10.10.10.254
ip dhcp pool secondo
network 10.10.20.0 255.255.255.0
default-router 10.10.20.254
!
!
interface FastEthernet0/0
no ip address
duplex full
speed 100
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.10.10.254 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.10.20.254 255.255.255.0
!
------------------------------------------------------------------------------------------------------------
Se io volessi assegnare un indirizzo IP alla FastEthernet 0/0 posso farlo ?
Che "vincoli" ho nel caso?
Ho provato ad assegnare l'indirizzo 1.1.1.254 però non mi ba più il DHCP...
Spero di essere stato chiaro...
Grazie
sto facendo un po di pratica per preparare l'esame CCENT
Ho configurato uno switch con due VLAN 10 e 20, su x porte ed una porta in trunk collegata ad un router sulla FastEthernet 0/0
Ho configurato sulla FastEthernet 0/0 del router due subinterface:
FastEthernet 0/0.10 - IP 10.10.10.254
FastEthernet 0/0.20 - IP 10.10.20.254
ho configurato due pool dhcp e tutto funziona.
La mia domanda è, configurando x subinterface su una porta fisica poi posso usare la porta fisica ?
Mi spiego meglio aiutandomi con la configurazione che ho fatto:
Router#sh running-config
Building configuration...
!
ip dhcp excluded-address 10.10.10.254
ip dhcp excluded-address 10.10.20.254
!
ip dhcp pool primo
network 10.10.10.0 255.255.255.0
default-router 10.10.10.254
ip dhcp pool secondo
network 10.10.20.0 255.255.255.0
default-router 10.10.20.254
!
!
interface FastEthernet0/0
no ip address
duplex full
speed 100
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.10.10.254 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.10.20.254 255.255.255.0
!
------------------------------------------------------------------------------------------------------------
Se io volessi assegnare un indirizzo IP alla FastEthernet 0/0 posso farlo ?
Che "vincoli" ho nel caso?
Ho provato ad assegnare l'indirizzo 1.1.1.254 però non mi ba più il DHCP...

Spero di essere stato chiaro...
Grazie