Hi all,
I’ve got an ADSL connection with a public IP address, that I’m trying to assign directly to one MK interface.
I’ve configured the ADSL as bridge, and assigned the public IP to on MK interface, network is as follows
ADSL rotuer (as bridge) <-----> MK
I’ve assigned the public IP address to the MK interface that connects to the ADSL router, masquerading all outgoing traffic from MK. MK Interface have two IP addresses: the public one and a private one in the same subnet of the router.
Router’s logs tell me that everithing is OK, but connection doesn’t work, despite I’m able to reach the router from MK. Is there something I’m doing wrong?
If you expected the result to be different then you’re doing something wrong. Please post your configuration if you want to know exactly what but from your explanation i see that the private and public is in the same subnet would be a clue to what’s going wrong.
Some routers (e.g. Cisco 1721) allow to assign more than one IP address on their interface, these are called “secondary IP address”. This is useful in order to save public IP address to connect two (or more) routers.
In my understanding MK should be able to manage such a configuration, so I gave two IP addresses on one interface (WAN interface), that will masquerade all IP traffic on its public IP and communicates with the (bridged) ADSL router on its private IP address.
Configuration is as follows
ADSL <----------------> MK
172.17.1.1
MK
IP 1 172.17.1.254
IP 2 81.73.132.xxx
DG 81.73.132.254
MASK 255.255.255.0
What subnet is assigned to your block of IPs? If it is not a /24 then you might want to delete the address and re-add it with the proper subnet mask so that the network and broadcast addresses match the intended subnet mask.
Thank you jarosoup for reply,
I’ve corrected the subnet.
My ISP assigned me:
IP address 81.73.132.120
Subnet mask 255.255.255.0
DG 81.73.132.254
I can assign these to an ADSL router (DLink 504T) on the WAN interface, and everithing is ok. What I’m trying to do is to assign this address to MK (behind DSL504T), using the ADSL router as a bridge, in order to use the single public IP address on MK withouth asking the ISP for an IP public subnet (8 IPs).
Ip route print is as follows
DST-ADDRESS PREF-SRC G GATEWAY DIS
0 ADC 81.73.132.0/24 81.73.132.120
1 ADC 172.17.0.0/16 172.17.1.254
2 ADC 192.168.5.4/32 192.168.5.1
3 ADC 192.168.5.5/32 192.168.5.1
4 ADC 192.168.5.7/32 192.168.5.1
5 ADC 192.168.5.239/32 192.168.5.1
6 ADC 192.168.5.240/32 192.168.5.1
7 ADC 192.168.5.250/32 192.168.5.1
8 ADC 192.168.5.251/32 192.168.5.1
9 ADC 192.168.5.253/32 192.168.5.1
10 ADC 192.168.5.254/32 192.168.5.1
11 ADC 192.168.5.0/24 192.168.5.1
12 A S ;;; Per raggiungere i clienti PPPoE Pace
192.168.6.0/24 r 192.168.100.3
13 ADC 192.168.100.0/24 192.168.100.2
14 A S 0.0.0.0/0 r 172.17.1.2
r 192.168.100.253
r 192.168.100.253
15 A S 0.0.0.0/0 r 192.168.100.1
16 S 0.0.0.0/0 81.73.132.120 r 81.73.132.254
172.17.1.254/16 is to communicate with the ADSL router, that has (on LAN interface) 172.17.1.1/16. I’ve added a static route to DSL504T that tells him how to reach 81.73.132.120 (on MK), and it works fine (I’m able to ping 81.73.132.120 from DSL504T)