148
Router(config-subif)#ip address 192.168.3.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa 0/0.40
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip address 192.168.4.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa 0/0.50
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip address 192.168.5.1 255.255.255.0
Router(config-subif)#exit
Router
ga quyidagi komanda yoziladi:
Router(config)#
Router(config)#ip
access-list extended TEST
Router(config-ext-nacl)#permit icmp any any
Router(config-ext-nacl)#permit tcp 192.168.1.0 0.0.0.255 host 192.168.5.2 eq 80
Router(config-ext-nacl)#permit tcp 192.168.2.0 0.0.0.255 host 192.168.5.3 eq 80
Router(config-ext-nacl)#permit tcp 192.168.3.0 0.0.0.255 host 192.168.5.4 eq 20
Router(config-ext-nacl)#permit tcp 192.168.3.0 0.0.0.255 host 192.168.5.4 eq 21
Router(config-ext-nacl)#permit tcp 192.168.4.0 0.0.0.255 host 192.168.5.5 eq 80
Router(config-ext-nacl)#exit
Router(config)#int fastEthernet 0/0.50
Router(config-subif)#ip
access-group TEST out
Router(config-subif)#exit
Topshiriq
–
Standart ACL bo`yicha tarmoq yarating va qoidalar ro`yxati bo`yicha
konfiguratsiya
sozlamalarini kiriting.
–
Extended ACL bo`yicha tarmoq yarating va qoidalar ro`yxati bo`yicha konfiguratsiya
sozlamalarini kiriting.
–
Ikkala usul bo`yicha marshrutizator kiritilgan qoidalar ro`yxatini tahlil qiling
Dostları ilə paylaş: