Changing IP address

super noob here just 3 days old for openwrt

i am using redmi ax6000 stock layout 23.05.2 right now and it is running great so far.
however i have some questions about changing IP address.

  1. for me to configure settings in openwrt i need to go to 192.168.1.1. i was searching and happen to see a lot of people trying to change that ip address. do we need to change that for security reason?

  2. the physical setup that im using right now is, router-LAN cable-1 PC + 1 phone (wifi).

i could easily change my ip address when i was using my old router by just changing MAC address. so i tried to change my ip address in openwrt by Network-device-configure on wan. although my ip address were successfully changed, it also changed into same ip as my PC. How do i change my wifi ip address only?

  1. I changed my internet IP address on my PC that is connected directly to my router via LAN cable?

help would be much appreciated :slight_smile:

No

Where ?
On the router, or on the client?

How ?
You change the WAN side MAC address.
Your pc doesn't have an internet IP, it sits on the router.

1 Like

im sorry i dont understand whats the difference between router ip address and client ip address.

I just went into Network-devices-click on configure on wan section and changed the MAC address there.
but when i typed whatsmyip on my PC and my phone, it showed the same ip address

router have two IPs, the internet facing, and the client facing.
the clients have IPs in the same subnet as the routers lan IP.
google network router 101.

that can happen, depending on the way your ISP works.
you might also be CGNATed, then it doesn't really matter.

post the two left most digits (so everything left of the 2nd dot) of your WAN side IP address, from your router.

i believe i would like to change the internet facing ip address for my wifi and LAN.

How do i set different IP for my wifi and PC(connected via LAN)

where can i see the WAN side ip address in openwrt?

there's no guarantee you can, and it's shared by your wifi and lan, no need to point it out.
the wifi is a part of your lan.

they are different, or you need to define different.

in network -> interfaces

Try to fix only broken things, and add only the features you need; there is no need to start changing all the configuration "just because". Be happy and enjoy OpenWrt.

3 Likes

It can also be seen on the main Overview page upon logging in, under "IPv4 Upstream".

oh i can see the ip addresses of the connected devices. however, when i go to "whatsmyip" on google, all the connected devices shows the same ip addresses. so i assume correct and right ip addresses are shown in my overview page?

Yes, it is.

1 Like

Yes, this would be the result of IPv4 Network Address Translation. In Linux-based systems, it's called "masquerade".

See: https://en.wikipedia.org/wiki/Network_address_translation

This is why other posters inquired if you were correctly matching the WAN IP to verify your Public IP check results.

1 Like

awesome however im still confused why all my ip adresses change when i only change my wan mac address

@lleachii's answer below is better.

1 Like

is there anything i should setup for security? i havent changed anything except my wifi password and mac address so far. every other things are in default settings

Default is perfectly OK.

2 Likes

Because you keep making your ISP think it's another device by changing your MAC address. If your ISP does not offer this as some service, I suggest stopping.

:warning: This could be theft-of-service in some jurisdictions, especially if you're also doing this for other nefarious reasons. I would stop doing that - as they will also see you're using up they available Public DHCP leases for other customers.

You were already told that a default config on official OpenWrt is OK. I agree.

2 Likes