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
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.
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.
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: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)