DSL Modem access via RED

Hi !

I had a Draytek DSL Modem on Red where GUI can accessed via RED and ip was 192.168.1.1/24… it worked fine. the entry in firewall local for it was 192.168.1.1 (/24)

   ip addr add 192.168.1.2/24 dev red0 brd +
   iptables -I POSTROUTING -t nat -o red0 -d 192.168.1.2/24 -j MASQUERADE

Now i changed my modem to a Speedlink Smart 2 the ip is 169.254.2.1 (16)

   ip addr add 169.254.2.2/16 dev red0 brd +
   iptables -I POSTROUTING -t nat -o red0 -d 169.254.2.2/16 -j MASQUERADE

The only real differenc in modem settings is that i had to enable vlan7 for this device at dialin page

Ifconfig says its correct:

    red0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 169.254.2.2  netmask 255.255.0.0  broadcast 169.254.255.255

But i cant even ping the device 169.254.2.1

Ciao Gerd

169.254.x.x: This is called an Automatic Private IP address. An IP in this range means that the computer cannot see the network. Unfortunately, if there’s no network connectivity, the computer is unable to talk to the server. In those cases, the computer will actually give itself an IP starting with 169.254.*.*

When you see a 169.254.x.x address, you definitely have a problem. It could be as simple as an unplugged network cable, or it could be as complex as the network being down. A fair amount of troubleshooting is involved, but the bottom line is that your computer doesn’t even see the network.

3 Likes

Hi !

When i plugged it into my laptop i was able to connect and logon the web gui.

Ciao Gerd