Community discussions

MikroTik App
 
AEllis
just joined
Topic Author
Posts: 5
Joined: Mon Oct 25, 2010 11:44 am

Help with Assigning External IP Address

Mon Oct 25, 2010 12:01 pm

Hi All

I have been working on this problem for weeks and need some help.

I have one Internet connection which is a /29 Subnet with 5 Static IPs This is plug into 1 port of my MikroTik RB450G. And i need to be able to set the lan IP to go out the correct external IP.

eg. LAN IP 10.1.1.1 needs to go out WAN IP 201.124.98.130
LAN IP 10.1.1.20 needs to go out WAN IP 201.124.98.131
LAN IP 10.1.1.30 needs to go out WAN IP 201.124.98.132
LAN IP 10.1.1.40 needs to go out WAN IP 201.124.98.133
LAN IP 10.1.1.50 needs to go out WAN IP 201.124.98.134

Currently all LAN IP Address are going out IP 201.124.98.130 which i dont want.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Help with Assigning External IP Address

Mon Oct 25, 2010 3:12 pm

/ip firewall nat
add chain=srcnat action=src-nat src-address=10.1.1.20 to-address= 201.124.98.131 out-interface=WAN
add chain=dstnat action=dst-nat dst-address=201.124.98.131 to-address=10.1.1.20 out-interface=WAN
add chain=srcnat action=src-nat src-address=10.1.1.30 to-address= 201.124.98.132 out-interface=WAN
add chain=dstnat action=dst-nat dst-address=201.124.98.132 to-address=10.1.1.30 out-interface=WAN
add chain=srcnat action=masquerade  out-interface=WAN
That shows two IPs and the fallback at the end.
This is pretty explicitly covered in the NAT manual: http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT
 
AEllis
just joined
Topic Author
Posts: 5
Joined: Mon Oct 25, 2010 11:44 am

Re: Help with Assigning External IP Address

Mon Oct 25, 2010 10:25 pm

Thanks that worked perfectly.

Who is online

Users browsing this forum: Bing [Bot], garibaldo, Google [Bot], subnet and 135 guests