OpenWrt alias not working

Hi,

I have an AP Unifi AP AC lite. It has only one ethernet port and I am trying to use alias so that I can use a static IP to login to the the AP connected to my PC. I am trying to use eth0 for static as well as DHCP IP address. When the AP is connected to modem then I can login to it via SSH using the IP assigned by DHCP. But when it connect it to my PC with ethernet cable I am not able to login through SSH using he static IP. Below is the network file configuration:

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fdcb:9bde:4f7c::/48'

config interface 'lan'
	option ifname 'eth0'
	option force_link '1'
	option type 'bridge'
	option proto 'dhcp'

config interface 'lan2'
	option ifname 'br-lan'
	option proto 'static'
	option ipaddr '192.168.254.1'
	option netmask '255.255.255.0'

config interface 'wan'
	option ifname 'eth1'
	option proto 'dhcp'

Luci looks like this:

Got this error every time:

ssh: connect to host 192.168.254.1 port 22: No route to host 

How to make it work?

1 Like

hi,

have you set your PC into 192.168.254.0/24 range too? or by any other way to route traffic from your PC to AP?

Oops! I missed that and it wasted hours of my time. Thanks for pointing it out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.