LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot setup static IP with openSUSE (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-setup-static-ip-with-opensuse-628712/)

Fournier 03-17-2008 12:09 PM

Cannot setup static IP with openSUSE
 
Hey all. I'm new to Linux on the desktop. I've set it up on a web server so I'm quite familiar with the command line.

With that aside, I'm having difficulty setting up a static IP address with openSUSE. DHCP is not an option, so I can't connect to the network (and therefore no internet) without setting up the IP address.

In Windows, all I had to do was go into the ethernet card's properties and set the following:

IP Address: 172.20.12.4
Subnet Mask: 255.255.0.0
Default Gateway: 172.18.5.1

Preferred DNS: 172.18.5.1
Secondary DNS: 185.192.108.5

In YaST, under network card settings, I set the IP address, subnet mask and default gateway as above. In /etc/resolv.conf, I added the two DNS entries.

However, I still can't even ping the gateway (172.18.5.1). The way the network is setup, I need to access the gateway and login in order to access the internet.

Does anyone have any suggestions on what I can do to fix this? Any help would be appreciated. Thanks.

jsurles 03-17-2008 12:15 PM

Quote:

Originally Posted by Fournier (Post 3091622)
In Windows, all I had to do was go into the ethernet card's properties and set the following:

IP Address: 172.20.12.4
Subnet Mask: 255.255.0.0
Default Gateway: 172.18.5.1

Preferred DNS: 172.18.5.1
Secondary DNS: 185.192.108.5

Okay, I'm sick today.. so maybe my watery feverish eyes and/or mind are tricking me. But isn't the 172.20.0.0/16 network a different network than your gateway of 172.18.5.1?

Could be the cough medicine getting to me.. so beware.

Fournier 03-18-2008 06:58 AM

Yeah, it's actually set that way. I'm out in the Middle East and this ISP is run entirely by locals and they have to physically see your laptop and adjust the TCP/IP settings in order to connect to the network. Of course, they're only experienced with adjusting it on Windows and will look at you funny if you ask them to adjust the IP settings on Mac or Linux.

Anyone else have any ideas?


All times are GMT -5. The time now is 09:34 PM.