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