I am so confused with fundamentals that I used to be an expert in,
so I have this topology
Please answer to my questions separately,
Question 1) So if I have two DNS severs, and ofc two IP address(81.1.1.30 & 31) available from the ISP
This config would be suffice for Port forwarding?
Switch3650(config)#ip nat inside source static 192.168.1.50 80 81.1.1.30 80
Switch3650(config)#ip nat inside source static 192.168.1.51 80 81.1.1.31 80
Switch3650(config)#int vlan 1
Switch3650(config-if)#ip nat inside
Switch3650(config)#int fa1/2
Switch3650(config-if)#ip nat outside
and configuration of my outside interface only has to have one IP address configured or two?
Switch3650(config)#int fa1/2
Switch3650(config-if)#ip add 81.1.1.30 255.255.255.254
**or** defining two ip addresses on my interface
Switch3650(config)#int fa1/2
Switch3650(config-if)#ip add 81.1.1.30 255.255.255.255
Switch3650(config-if)#ip add 81.1.1.31 255.255.255.255 secondary
am I achieving the same result here? so when do we use secondary ip, when we can't cover our available valid(public) IPs with subnet mask in one line?
so what will happen if I only put one ip address on the outside interface? the nat won't translate anymore, because it can't find the outside interface, because it's not listed in the routing table, right?
Switch3650(config-if)#ip add 81.1.1.30 255.255.255.255
Question 2)
so let's say I wanna PAT overload the rest of my network which they are not those two servers and they are clients with ip ranges from 192.168.1.1 to 192.168.1.49 how should I calculate the wild card mask?
Switch3650(config)#access-list 1 permit 192.168.1????????????
Switch3650(config)#ip nat inside source list 1 81.1.1.30 80 overload
this is what I put
**0 0** 0 0 0 0 0 1 = 1
**0 0** 1 1 0 0 0 1 = 49
according to this algorithm
Network Address is 0 which is wrong it has to be 1, because it starts from 1,
what am I missing?
the Netmask has to be I guess: 192 equal to wildcard of 63
Please please answer to all my questions, I am so confused
Thanks