Community discussions

MikroTik App
 
juliuola
just joined
Topic Author
Posts: 1
Joined: Fri Dec 15, 2017 9:55 am

need assistant

Fri Dec 15, 2017 10:37 am

i have two different ip on my router
ISP with X.X.X.254/24 on ether1 (private IP)

with x.x.x.241/29 on ether2.
ether2 to ether5 was master-port

please i want to route a private ip 192.168.10.1 to my switch through ether5 to access internet

any help please
 
User avatar
mzrana
Trainer
Trainer
Posts: 44
Joined: Thu Sep 14, 2017 1:12 pm
Location: Lahore, Pakistan
Contact:

Re: need assistant

Sun Jan 14, 2018 8:12 pm

i have two different ip on my router
ISP with X.X.X.254/24 on ether1 (private IP)

with x.x.x.241/29 on ether2.
ether2 to ether5 was master-port

please i want to route a private ip 192.168.10.1 to my switch through ether5 to access internet

any help please
Please clear your point with export file.
 
lambert
Long time Member
Long time Member
Posts: 548
Joined: Fri Jul 23, 2010 1:09 am

Re: need assistant

Mon Jan 15, 2018 12:03 am

/ip firewall nat add chain=src-nat src-address=192.168.10.1 out-interface=ether1 action=masquerade 
Please note, I did not fire up a login to a MikroTik to test the above syntax. That rule may need a fix or two.

That rule intends to give exactly one private IP of 192.168.10.1 access to the Internet via NAT to the public IP on ether1.

If you want the all IPs in 192.168.10.0 through 192.168.10.254 to be able to access the Internet, you would change the src-address to 192.168.10.0/24.

Who is online

Users browsing this forum: No registered users and 6 guests