OpenWrt Forum Archive

Topic: IP address listed in openwrt administrative console is wrong

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Am I being stupid? I don't think so, but...

The IP address of my router is listed in (WhiteRussian) openwrt administrative console as 'xx.35.72.1', that's vlan1, but this didn't seem to work with VNC (remote operation of another computer I use to help someone admin their machine), eventually I used whatismyip.com and it listed my IP as something different. I used another 2 webpages that list your IP and they listed it as the same as whatsmyip.com. The IP addresses are similar though, the first 2 IP sections are the same, the second 2 are different.

What's going on?

Many thanks.

Just some quick sanity checks...

By "Administrative Console" do you mean webif Status -> Connections?

Could it be as simple as refreshing browser cache?

You might compare SSH/(telnet) command: ifconfig vlan1

Also.  No chance the ISP is playing a game with customer connections?

(Last edited by Bill_MI on 25 Jun 2007, 18:05)

Bill_MI wrote:

Just some quick sanity checks...

By "Administrative Console" do you mean webif Status -> Connections?

Could it be as simple as refreshing browser cache?

You might compare SSH/(telnet) command: ifconfig vlan1

Also.  No chance the ISP is playing a game with customer connections?

Many thanks for the reply.

By "Administrative Console" I mean using the web browser on my PC to connect to the router. No, refreshing the cache (which I'd already done) made no difference.

On the status of the "Administrative Console" (web browser) page it says this (ip address has 'xx' added by me):

Ethernet/Wireless Physical Connections
IP address HW type Flags HW address Mask Device
192.168.1.2 0x1 0x2 00:01:02:1C:0C:31 * br0
xx.xx.72.1 0x1 0x2 00:0B:FC:43:B8:A8 * vlan1

You were right to suggest comparing with the 'ifconfig vlan1' command which outputs this (though I've added 'xx' to the beginning of the ip address):

root@OpenWrt:~# ifconfig vlan1
vlan1     Link encap:Ethernet  HWaddr 00:17:31:DC:0A:EB
          inet addr:xx.xx.75.183  Bcast:255.255.255.255  Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:794449575 errors:0 dropped:0 overruns:0 frame:0
          TX packets:397565354 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1924699300 (1.7 GiB)  TX bytes:1518222416 (1.4 GiB)

The 2 ip addressess are different, but the correct one is listed by 'ifconfig vlan1'.

By the way, rebooting the router makes no difference.

This is very strange, anyone got any ideas?

Many thanks.

(Last edited by mattstan on 25 Jun 2007, 20:00)

mattstan wrote:

Ethernet/Wireless Physical Connections
IP address HW type Flags HW address Mask Device
192.168.1.2 0x1 0x2 00:01:02:1C:0C:31 * br0
xx.xx.72.1 0x1 0x2 00:0B:FC:43:B8:A8 * vlan1

mattstan wrote:

root@OpenWrt:~# ifconfig vlan1
vlan1     Link encap:Ethernet  HWaddr 00:17:31:DC:0A:EB
          inet addr:xx.xx.75.183  Bcast:255.255.255.255  Mask:255.255.248.0

Note that both the IP and the MAC address are different.  The fact that the IP listed for vlan1 in the web interface ends in .72.1, and that the MAC address is in the Cisco range, makes me think that is the next hop in your ISP's network.  The MAC listed for 192.168.1.2 is a 3COM MAC address, and your router is an Asus based on the MAC listed for vlan1.  Based on all of this info the only logical conclusion that can be drawn is that "Ethernet/Wireless Physical Connections" lists machines the router is connected to.

Note: I haven't used White Russian for years, and haven't done anything with the web interface apart from a quick glance, but I can't draw any other conclusions based on the above info.

I see the problem... that page is connections that vlan1 has.  Namely, to your ISP's gateway.

Much is coming back to me now because I went through this attempting to get my IP for DynDNS updating in a quick and dirty fashion.  And it didn't exist natively.  I ended up creating my own page JUST for this purpose (but mine is the ppp0 connection, not vlan1).  Otherwise, this is just one of those anomalies of the webif.

Many thanks guys. The confusing thing is that the 'admin console' (connect to router from web browser) clearly implies that the IP address of the router is as shown, which it is not.

IP address  HW type Flags HW address             Mask   Device
xx.xx.72.1  0x1        0x2   00:0B:FC:43:B8:A8    *       vlan1

When I need my router's IP in future I'll just use 'ifconfig vlan1' or whatsmyip.com as they both seem pretty quick.


Bartman007 -- "I haven't used White Russian for years" --

Should I be upgrading to Kamikaze then Bart? What advantages would there be? WR seems excellent, I realised when I rebooted the router yesterday to see if that 'updated' the 'admin console' IP address, that the router had been on and continuously connected for 5 months without ever being turned off or rebooted and I've never had a single problem with it. OpenWRT rocks !!

Not quite as long as an old Linux distribution I had (Red Hat something about 6-7 years ago) which was running on an ancient 286 PC with 64MB RAM, it served only as a (rather slow) database server running MySQL. It wasn't rebooted or turned off for 2 years, and ran flawlessly (after 2 years I needed a faster machine, otherwise who knows how long it would have served me). I doubt Microsoft has ever had an OS that would do that.

Thanks all.

The discussion might have continued from here.