Opensuse 11.4 - help needed setting static ip address

Hi all,

I’m a total noob in openSuse and linux, so I might be somewhat slow in picking things up.
So, I installed openSuse 11.4 from a liveCD stick, and use the gnome desktop.

When setting the network to obtain a ip address from the dhcp server in my router, everything works like a charm. Even got internet connectivity.

Now, I want to set a fixed IP address for the eth0 connection so I can forward port 22 to that address so I can SSH to it from anywhere, but can’t get it done.
Whenever I check the radio button for Static IP Address and put in the desired values:
IP: 192.168.1.250 with a submask 255.255.255.255 and then apply those changes, I instantly lose all network connectivity.

When I then revisit the network settings page, I see that openSuse has changed the submask for me to /24. I’m not sure, but I guess that’s the reason why nothing works any more. I guess some other system setting is responsible for changing the submask. I have no clue where to begin and troubleshoot this.

Can some valiant person give me some directions on how to get a static ip address. A step by step explanation would be best :slight_smile:

Thanks,
hope to hear good news.

Using a subnet mask of 255.255.255.255 means there is but one node and you would be talking to yourself in most cases. Perhaps we need to know more about what you are trying to do. How many hardware network interfaces are being used and what is on each net? I am thinking YaST would normally not like such a subnet mask as what is the local router IP? There are more complex settings with Virtual LANs and such that might work, but I simply don’t know what you are trying to do.

Thank You,

Hi
Yup, won’t work with that netmask. You also need to login to your router and set the DHCP address range so it doesn’t interfere with any static ip address.

On 2011-10-16 20:46, MeesterP wrote:
> IP: 192.168.1.250 with a submask 255.255.255.255 and then apply those
> changes, I instantly lose all network connectivity.

That submask will not work.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

oi - that was stupid of me to type that in this post…
I didn’t use that mask, but 255.255.255.0 - the usual mask.

anyway, why does the networksetup tool change a mask to /24 and what does that mean ?

If i knew how to make screen shots, I would post some.

Thanks for the replies so far :slight_smile:

On 2011-10-16 21:56, MeesterP wrote:
>
> oi - that was stupid of me to type that in this post…
> I didn’t use that mask, but 255.255.255.0 - the usual mask.

Ah!!

> anyway, why does the networksetup tool change a mask to /24 and what
> does that mean ?

The same, just another nomenclature.

Well, the next thing to test is the gateway. Did you define it?

Then start pinging.

> If i knew how to make screen shots, I would post some.

Gnome: printscreen key.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

anyway, why does the networksetup tool change a mask to /24 and what does that mean ?

A /24 mask is the same thing as 255.255.255.0. The 24 comes from the number of 1’s set from the left. A mask has some continues count of 1’s from the left met with continues zero’s from the right and never mix. The ones that are set fix the portion of an IP to the left designating the subnet while the zero’s to the right designate the portion of the IP that designates the node address. So, if you list the number of 1’s set from the left for /24 can be used instead of the longer 255.255.255.0. In binary 255.255.255.0 is 11111111.11111111.11111111.00000000 and so count the ones and you got it, /24. This does not fix your problem, but does explain the /24.

Thank You,

See the red lines above :slight_smile:

yay - got it :slight_smile:

had to fill in the gateway in the routing tab, and the dns in the hostnames/dns tab…

sounds logical if you think about it…
too accustomed to Windows I guess, where a lot of things are organized differently, and some things are easier…

for instance, you plug a usb-stick in, and it gets mounted automatically. In openSuse, you have to create a mountpoint and mount the stick yourself before you can do anything …

Will take some time to get this in my grasp :slight_smile:

Thanks all,

There’s a spot for it, have a look. Also, this is good to remember: when you define a fixed IP, more often than not you need to also define the IP addresses of the nameservers and the IP address of the gateway (AKA IP of the router). Same as for windows.

On 2011-10-16 22:36, MeesterP wrote:
> See the red lines above

There are no red lines where I’m reading - thunderbird, via NNTP gateway.

Ok, you do have to configure a gateway, there is a place for it in the
configuration. Which tool are you using to configure?

Ah, I see you found it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2011-10-16 22:56, MeesterP wrote:
> for instance, you plug a usb-stick in, and it gets mounted
> automatically. In openSuse, you have to create a mountpoint and mount
> the stick yourself before you can do anything …

Nononono. That’s it if you really want to do it that way. Both Gnome and
KDE should mount USB sticks automatically for you. If they don’t, open
another thread in applications help.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)