Hey, I am currently studying networking and i have been given a scenario which I
ID: 3623014 • Letter: H
Question
Hey, I am currently studying networking and i have been given a scenario which I need to practically do, well one part of the scenario says:"Office H has some administrative workers who should be allocated even numbered IP addresses. Even numbered IP addresses are to be allowed ssh and ftp access, but other IP addresses for this office and the other offices are not."
The problem is I dont know how to make a specific computer request an even numbered IP address, because the way I learnt how to configure DHCP it will only give out whats available
e.g
ip dhcp pool dhcpC
network 192.168.10.0
default-router 192.168.10.1
this is how i do it, any chance someone can tell me if there is a way to send out even numbered IP addresses to certain computers.
and how would i block FTP and SSH access for even numbered IP addresses, I know its got to do with ACL's, but I dont know what type of ACL to put on.
Thank you.
PS: Here is the IP addresses for all routers, might help if your going to use them
Office C :
F0/0 - 192.168.10.1
S0/0 - 192.168.1.1
S0/1 - N/A
Office H
F0/0 - 192.168.20.1
S0/0 - 192.168.2.1
S0/1 - 192.168.1.2
Office M
F0/0 - 192.168.30.1
S0/0 - 192.168.3.1
S0/1 - 192.168.2.2
Office R
F0/0 - 192.168.40.1
S0/0 - N/A
S0/1 - 192.168.3.2
Explanation / Answer
Hey, In order to determine which IP addresses are even for whatever you need it for you should probably after prompting for the IP address use the % symbol to determine whether or not the IP address is divisable by 2. For example if{Ipaddress%2=0 (allow it to access) else{ do not allow access } I am not a programmer however this may help. Good luck.