How to bind multiple IP in a VLAN interface

A Antony Lee 3 years ago
3 5 0

Hi all I would like to bind multiple IP, within the same subnet, in a VLAN interface. However, when I did it, the error message "Invalid IP address: A secondary IP address with the same subnet is already assigned for the interface vlan1." showed up. The reason why I want to bind multiple IP within the same subnet to a VLAN interface is to configured multiple 1-to-1 NAT.  e.g.  192.168.1.10 is NAT to 10.100.10.5 and 192.168.1.11 is NAT to 10.100.10.6. Regards Antony

Please register or login to post a reply

5 Replies

A Antony Lee

Hi Adrian Sorry for late reply. I have tested RFS with 4.3.x. I have two findings: 1.    In CLI, the secondary IP can be added within the same subnet of primary IP. 2.    In GUI, the secondary IP still cannot be added with an IP lay in the same subnet as primary.        Please check the attached image. In anyway, the WiNG 4.3.x can solve my issue, even it must work with CLI. However, I can't find the latest implementation for WS5100 has this feature. That is still a problem to me that I need upgrade the old WS5100. Regards Antony

A Antony Lee

Hi Alex

Thx. I have already read the doc before. I can do the static NAT as described inside it.

What I am not able to do is binding two IPs, within the same subnet, onto the same vlan.

The static NAT in the example is performaning the translation on the ip of VLAN 4094 into the internal ip. If I want to translate another IP, say 76.1.160.2, I am unable to reach the translated machine by 76.1.160.2 as the network cannot resolve 76.1.160.2.

Therefore, I would like to bind two IPs on the VLAN4094 as follow:

interface vlan4096  description INTERNET  ip address 76.7.160.1/24  ip address 76.7.160.2/24 secondary  ip address 76.7.160.3/24 secondary  ip nat outside !

Where the 76.7.160.2 & 76.7.16.3 will be translated into two different machines inside the private newtork.

A Adrian Vesa

interface vlan5  ip address 192.168.5.71/24  ip address 192.168.5.72/24 secondary RFS7000#sh int vlan 5 Interface vlan5 is UP   Hardware-type: VLAN, Mode: Layer 3, Address: 00-15-70-38-02-de   Index: 6, Metric: 1, MTU: 1500,  Status-flags:   IP-Address: 192.168.5.71/24, broadcast 192.168.5.255, primary   IP-Address: 192.168.5.72/24, broadcast 192.168.5.255, secondary     input packets 0, bytes 0, dropped 0, multicast packets 0     input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0     output packets 33, bytes 924, dropped 0     output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0     collisions 0 Tested with Wing 4.3. If I understood your question right, I am not sure about that...

A Antony Lee

Hi Adrian Thansk for advise. You are right. These is what I was looking for, I am using WS5100 with firmware 3.3.3. When I added the second interface with the same subnet in the VLAN, I got error. You mentioned in WiNG 4.3, it should be no problem. I think that I would try the newest firmware or try in a RFS switch to see whether it is the limitation of my running version. Regards Antony

A Alexandre Silva

Antony See the section  Static NAT on the attached document to configure what you are trying to achieve. More of these can be found at: http://motopedia.mot.com/wiki/EWLAN-HOW-TOs Hope this helps.

CONTACT
Can’t find what you’re looking for?