doubt about eth0 IP address settings

Hi

I have installed openSuse 11 on a partition which previously had ubuntu gutsy gibbon. In ubuntu I had set my eth0 IP address as 192.168.0.2

After installing OpenSuse 11, I never mentioned that my eth0 IP address is 192.168.0.2, but doing an ifconfig showed the same settings as I used to have on Ubuntu. So Just wanted to know how does OpenSuse know my previous eth0 IP address settings?

Thanks
Aman Jain
India

That IP is assigned by your router config
Normally you leave the Yast settings to DHCP

so should I conclude that having the same IP as previous one is just by chance, or is there any logic behind it; btw my modem’s IP is 192.168.0.1

That does not happen accidentally. And openSUSE does not know your previous (ubuntu) ip settings. But your router does. In your router there’s a function called lease-time. Within the period of time given as lease-time, your router will remember your ip and will always assign the same ip-address to your NIC. It knows your NIC because of its unique MAC-Address.

Not by chance.
Remember this is not the same as your external IP address assigned by your ISP.

The router, usually defaults to 192.168.0.1 or at least my netgear does.
Just don’t worry about it. And if you don’t understand what it’s all about, don’t fiddle.

If you type 192.168.0.1 in to a browser it will normally start access to the web interface of the router
netgear default access is
admin
password