HI,
Where is the public Ip? in a PC or a modem that has an interface towards your network that you can change …
Because u need to have an IP of ether1. u can use a classe C like 172.30.1.0/24 to do all and still save some IPs
starting the PC with public Ip. Must be 172.30.1.1/30 that connects to your C1 ether port that will be 172.30.1.2/30
then C1 wlan is 172.30.1.5/30 that connects to S1 172.30.1.6/30. the other side S2 will be 172.30.1.9/30 and the wlan on C2 is 172.30.1.10/30. The ether of C2 is 172.30.1.13/30 and the PC (or other thing) must be 172.30.1.14/30.
On that PC gateway is 172.30.1.13 on C2 gateway is 172.30.1.9 on base station gateway is 172.30.1.5 and finally on C1 gateway is 172.30.1.1
On PC with publicIP add route 172.30.1.14 (PC at C2) gateway 172.30.1.2 , on C1 add route 172.30.1.14 gateway 172.30.1.6 at base station add route 172.30.1.14 gateway 172.30.1.10 .
At the public Ip machine u need to masquerade your internal Ips
I hope u can understand this.
I didnt understood very well the public Ip side. Always remember that each SIDE of a connection must have an IP of the same network (unless u use pppoe or other L2 ). So , your ether of C1 MUST be on the same network. If the public Ip is delivery at C1 Ethernet than u dont need de 172.30.1.1 and 1.2 of my former reply
U need to know gateway (PGW) and dns server(PDNS) from your public IP
At C1 the gateway will be your PGW and DNS the PDNS (at /ip/dns dont forget to click on “allow remote requests”. on /Ip/firewall/nat put a rule srcnat action masquerade. before u go further see from a “new terminal window” if u have internet at C1. then do all the other routes and Ips as I told before. At the PC connected to C2 dont forget to put the DNS (can be the PDNS).
hi ,
i did according to u and i can ping it dns ip and public ip in client1 side.
i give rules in firewall according to u.
internet is not working client side.
Client1:
212.75.249.64/29---->ether2(public ip ) & Gateway=212.75.49.61
10.7.254.1/24---->wlan1
10.7.254.10/25----->ether1