Godlike-Dodo / Dodo-Teaching-Network

0 stars 0 forks source link

DHCP VLAN #16

Open Godlike-Dodo opened 1 year ago

Godlike-Dodo commented 1 year ago

image

(VLAN10) subinterface Open de router enable config t interface Gig0/0/0.1 ip address 192.168.100.1 255.255.255.0 no shutdown end copy running-config startup-config show running-config

(VLAN20) subinterface config t interface Gig0/0/0.2 ip address 192.168.101.1 255.255.255.0 no shutdown end write memory show running-config

trunking (router)/ Trunking mode config t interface Gig0/0/0.1 encapsulation dot1q 10

config t interface Gig0/0/0.2 encapsulation dot1q 20

Open router cli enable config t ip ? ip dhcp pool ? ip dhcp pool vlan10 network 192.168.100.0 255.255.255.0

Open router cli enable config t ip dhcp pool vlan20 network 192.168.101.0 255.255.255.0

DHCP Exclusion vlan Open de router cli enable config t ip dhcp dhcp excluded-address 192.168.100.20 192.168.100.30 Ga naar je computer. Zet deze op DHCP. Zie welke ip adressen je krijgt. De exclusion ip adressen mag je pc NIET krijgen!

Default gateway + DNS Server uitdelen aan de PC’s (vlan10) enable config t ip dhcp pool vlan10 ? default-router 192.168.100.1 dns-server 8.8.8.8 end copy running-config startup-config

enable config t ip dhcp pool vlan20 ? default-router 192.168.101.1 dns-server 8.8.8.8 end copy running-config startup-config