Need help configuring the network for my first colocated server.

Basically what the title says. Last night I hooked up my server in a data center, but I couldn’t get it to connect to the internet. I was given a network address, a usable IP, a netmask, and a gateway. I tried a number of different things with route and the various configs in /etc/sysconfig/network, but couldn’t seem to get it working. Running a traceroute confirmed that it was a local problem and not part of the network, since no packets left the box.

This is on a pretty stock text-only 12.3 install recently upgraded to 13.1; all of my testing until now has just been on my home LAN, which didn’t need additional configuration. I found some information on Novell’s site that detailed a sysconfig routes file, but it looks like that information might be dated.

Any tips? I’ll be heading back over there after work today to try and fix it up.

These will show any routes defined

ip route show
netstat -r

I assume you have /etc/sysconfig/network/ifcg-<name of interface> configured. Have you created /etc/sysconfig/network/ifroute-<name of interface> as well?

See if this helps:

How to setup persistent Static Routes in openSUSE 11.0 | SUSE & openSUSE

I believe I did configure /etc/sysconfig/network/ifcg-<name of interface>, but I don’t know about /etc/sysconfig/network/ifroute-<name of interface>. I’ll be sure to check that.

As far as getting the changes to take effect, is “service network restart” enough to reload any changes to the network sysconfig files?

As far as getting the changes to take effect, is “service network restart” enough to reload any changes to the network sysconfig files?

I think so. I know you can test the persistent route(s) immediately using

/etc/sysconfig/network/scripts/ifup-route

Even if you are running a “minimal server” configuration,
You can still run yast (not yast2 which is the GUI)

So,
logon locally to your colo server,
Then

yast

You should see a “text” (ncurses) version of YAST2 which you might be familiar with if you’ve run openSUSE at home before.
And, it works the same way, but of course without a mouse… You’d be using TAB and ALT-key commands plus arrow keys to navigate.

Once YAST is running, like any other openSUSE, just navigate to “Network Devices” and configure accordingly.

Except for some very unusual settings, you should not be messing around with /etc/sysconfig/network… It is more or less setup to interact with a lot of functionality which is supposed to setup automatically and with the wrong setting might be difficult to track down exactly where you went wrong. This file is only for <unusual> settings, not typical problems like simple network connectivity.

TSU